spatialpack convert
Synopsis
Section titled “Synopsis”spatialpack convert INPUT_PATH [options]Description
Section titled “Description”Convert spatial data between formats.
Currently supports: Shapefile to GeoParquet
Arguments
Section titled “Arguments”INPUT_PATH — path (required)
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
--to | geoparquet | geoparquet | Output format (currently only geoparquet supported) |
-o, --output | path | - | Output file path (auto-generated if not specified) |
--crs | text | EPSG:4326 | Target CRS (default: EPSG:4326 WGS84) |
--validate | flag | true | Validate and repair geometries (default: enabled) |
--compression | snappy | gzip | zstd | lz4 | snappy | Compression codec (default: snappy) |
--batch | flag | false | Batch mode: convert all matching files in directory |
--pattern | text | *.shp | File pattern for batch mode (default: *.shp) |
--normalize | flag | true | CRS normalization with provenance tracking (default: enabled) |
Examples
Section titled “Examples”# Convert single shapefilespatialpack convert input.shp
# Convert with custom output pathspatialpack convert input.shp -o output.parquet
# Convert all shapefiles in directoryspatialpack convert ./shapefiles/ --batch
# Convert with custom CRSspatialpack convert input.shp --crs EPSG:4326
# Convert without CRS normalization (skip provenance tracking)spatialpack convert input.shp --no-normalize