spatialpack download
Synopsis
Section titled “Synopsis”spatialpack download <command> [options]Description
Section titled “Description”Data download commands.
Download spatial data from registered public sources.
Commands
Section titled “Commands”| Command | Description |
|---|---|
download add-source | Add a custom data source to the registry (session only). |
download fetch | Download data from a registered source. |
download info | Show detailed information about a data source. |
download list | List available data sources. |
Examples
Section titled “Examples”# List available sourcesspatialpack download list
# Show source detailsspatialpack download info asris-soils-wa
# Download a sourcespatialpack download fetch asris-soils-wa -o ./spatial-data/Command Details
Section titled “Command Details”download add-source
Section titled “download add-source”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.
spatialpack download add-source SOURCE_ID [options]Arguments
Section titled “Arguments”SOURCE_ID — text (required)
Options:
| Option | Type | Default | Description |
|---|---|---|---|
--name | text | - | Source name |
--url | text | - | Download URL |
--license | text | - | License identifier |
--format | text | - | Data format (shapefile, geotiff, etc.) |
--description | text | - | Source description |
--manual | flag | false | Requires manual download |
spatialpack download add-source my-source \ --name "My Data Source" \ --url "https://example.com/data.zip" \ --license "CC-BY-4.0" \ --format "shapefile"download fetch
Section titled “download fetch”Download data from a registered source.
Downloads the data and optionally extracts archives.
spatialpack download fetch SOURCE_ID [options]Arguments
Section titled “Arguments”SOURCE_ID — text (required)
Options:
| Option | Type | Default | Description |
|---|---|---|---|
-o, --output | path | - | Output directory for downloaded data |
--extract | flag | true | Extract archives after download (default: yes) |
--keep-archive | flag | true | Keep archive after extraction (default: keep) |
# Download and extractspatialpack download fetch asris-soils-wa -o ./spatial-data/
# Download without extractionspatialpack download fetch asris-soils-wa -o ./spatial-data/ --no-extractdownload info
Section titled “download info”Show detailed information about a data source.
spatialpack download info SOURCE_IDArguments
Section titled “Arguments”SOURCE_ID — text (required)
spatialpack download info asris-soils-wadownload list
Section titled “download list”List available data sources.
Shows all registered data sources that can be downloaded or accessed.
spatialpack download list [options]Options:
| Option | Type | Default | Description |
|---|---|---|---|
--json-output | flag | false | Output as JSON |
spatialpack download listspatialpack download list --json-output