geo.dataset.convert --from FILE [--folder TEXT] [--filename TEXT] [--path TEXT] [--store TEXT] [--on-conflict error|skip|overwrite] [--layer TEXT] [--crs TEXT] [--hilbert] [--batch-size N] → datasetConvert a spatial dataset from one format to another. --from is a store key or a FileRef (read from the store it names), with its sidecar files: .gdb, .shp, .parquet, .geojson. Writes .parquet or .geojson, by the destination's extension (--folder, default geo; --filename, default <source>.parquet; or --path). --crs EPSG:4326 reprojects mid-stream; --layer picks one layer of a FileGDB; --hilbert sorts Parquet rows by bbox centroid; --batch-size sets the rows per row group. Adds dataset: { …FileRef…, crs, layer, feature_count, files } — crs is the declared CRS of the output, files every file written — and keeps the rest of the payload.
Flags
--from(required): The spatial file: a store key, or a FileRef through {{ }}.--folder: Store folder for the output (default: geo).--filename: Output name, .parquet or .geojson (default: <source>.parquet).--path: Exact store key for the output; overrides --folder and --filename.--store: The project store to write to:local, or the id of ans3credential. Saved explicitly when the pipeline is registered (default: the project's default store at that moment)--on-conflict: When the target already exists: overwrite, skip or error (default: error)--layer: The layer of a multi-layer source (FileGDB).--crs: The CRS of what is produced, reprojected mid-stream: EPSG:NNNN or NNNN (default: the source's).--hilbert: Hilbert-sort the output by bbox centroid (Parquet only).--batch-size: Rows per Parquet row group (default: 10000).
Examples
Shapefile to GeoParquet in WGS84
| geo.dataset.convert --from uploads/suburbs.shp --folder datasets --filename suburbs.parquet --crs EPSG:4326 --hilbertThen mapserver.layer.publish --name suburbs --route suburbs --from "{{ input.dataset }}".
It answers:
{ "dataset": { "__zf_type": "file_ref", "backend": "zebfs", "store": "local", "ref": "datasets/suburbs.parquet", "filename": "suburbs.parquet", "mime": "application/vnd.apache.parquet", "kind": "parquet", "size": 918233, "sha256": "sha256:…", "lifecycle": "durable", "origin": "geo.dataset.convert", "trust": "generated", "crs": { "kind": "epsg", "code": 4326 }, "layer": null, "feature_count": 312, "files": [ "…a FileRef for every file written" ] }}