Skip to content

spatialpack download

Terminal window
spatialpack download <command> [options]

Data download commands.

Download spatial data from registered public sources.

CommandDescription
download add-sourceAdd a custom data source to the registry (session only).
download fetchDownload data from a registered source.
download infoShow detailed information about a data source.
download listList available data sources.
Terminal window
# List available sources
spatialpack download list
# Show source details
spatialpack download info asris-soils-wa
# Download a source
spatialpack download fetch asris-soils-wa -o ./spatial-data/

Add a custom data source to the registry (session only).

Note: This only adds the source for the current session. For permanent additions, edit the DATA_SOURCES dict in download.py.

Terminal window
spatialpack download add-source SOURCE_ID [options]

SOURCE_ID — text (required)

Options:

OptionTypeDefaultDescription
--nametext-Source name
--urltext-Download URL
--licensetext-License identifier
--formattext-Data format (shapefile, geotiff, etc.)
--descriptiontext-Source description
--manualflagfalseRequires manual download
Terminal window
spatialpack download add-source my-source \
--name "My Data Source" \
--url "https://example.com/data.zip" \
--license "CC-BY-4.0" \
--format "shapefile"

Download data from a registered source.

Downloads the data and optionally extracts archives.

Terminal window
spatialpack download fetch SOURCE_ID [options]

SOURCE_ID — text (required)

Options:

OptionTypeDefaultDescription
-o, --outputpath-Output directory for downloaded data
--extractflagtrueExtract archives after download (default: yes)
--keep-archiveflagtrueKeep archive after extraction (default: keep)
Terminal window
# Download and extract
spatialpack download fetch asris-soils-wa -o ./spatial-data/
# Download without extraction
spatialpack download fetch asris-soils-wa -o ./spatial-data/ --no-extract

Show detailed information about a data source.

Terminal window
spatialpack download info SOURCE_ID

SOURCE_ID — text (required)

Terminal window
spatialpack download info asris-soils-wa

List available data sources.

Shows all registered data sources that can be downloaded or accessed.

Terminal window
spatialpack download list [options]

Options:

OptionTypeDefaultDescription
--json-outputflagfalseOutput as JSON
Terminal window
spatialpack download list
spatialpack download list --json-output