Skip to content

spatialpack convert

Terminal window
spatialpack convert INPUT_PATH [options]

Convert spatial data between formats.

Currently supports: Shapefile to GeoParquet

INPUT_PATH — path (required)

OptionTypeDefaultDescription
--togeoparquetgeoparquetOutput format (currently only geoparquet supported)
-o, --outputpath-Output file path (auto-generated if not specified)
--crstextEPSG:4326Target CRS (default: EPSG:4326 WGS84)
--validateflagtrueValidate and repair geometries (default: enabled)
--compressionsnappy | gzip | zstd | lz4snappyCompression codec (default: snappy)
--batchflagfalseBatch mode: convert all matching files in directory
--patterntext*.shpFile pattern for batch mode (default: *.shp)
--normalizeflagtrueCRS normalization with provenance tracking (default: enabled)
Terminal window
# Convert single shapefile
spatialpack convert input.shp
# Convert with custom output path
spatialpack convert input.shp -o output.parquet
# Convert all shapefiles in directory
spatialpack convert ./shapefiles/ --batch
# Convert with custom CRS
spatialpack convert input.shp --crs EPSG:4326
# Convert without CRS normalization (skip provenance tracking)
spatialpack convert input.shp --no-normalize