spatialpack hash
# Compute BLAKE3 hashes for all layers and write to manifestspatialpack hash ./my-pack/
# Verify existing hashes (exits non-zero on mismatch)spatialpack hash --verify ./my-pack/What it does:
- Reads layer file paths from
spatialpack.json(manifest-driven, not filesystem scan) - Computes BLAKE3 hashes for each asset (
layers/*.parquet,layers/*.pmtiles,rasters/*.tif) - Writes hashes to
integrity.asset_hashesin the manifest (keys:layers/roads.parquet, etc.) --verifycompares computed vs stored; exits 1 on any mismatch, missing file, or unhashed asset
Description
Section titled “Description”Compute BLAKE3 integrity hashes for pack assets.
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
--verify | flag | false | Verify existing hashes; exits 1 on mismatch, missing file, or unhashed asset |
Installation
Section titled “Installation”Requires the blake3 package:
pip install blake3# or install all extraspip install -e ".[full]"