# The DEM-ingest sub-tool: COP90 GeoTIFF tiles in, a per-map-tile `u16` # heightmap grid dataset out — the build half of WS-G's 3D terrain relief. # # DETACHED from both workspaces (the empty `[workspace]` table below), like every # other host tool under `scripts/maps`: it is built for the host with the host # toolchain, and being a member of either workspace would drag that workspace's # toolchain, profiles and lockfile into the other's build. # # NETWORK I/O LIVES IN build scripts, not here — the same division of labour every # tool under scripts/maps keeps: the shell syncs the COP90 tiles into # `inputs/cop90/` and this crate does the bytes-to-bytes work (GeoTIFF Float32 # decode, height resample, downsample). So the only raster dependency is `tiff`, # pure Rust with no native GDAL. `tilecodec` comes along for its slippy/pmtiles # tile id math and the `Heightmap` grid layout this dataset mirrors on the wire. [package] name = "dem_ingest" version = "0.1.0" edition = "2021" publish = false license = "GPL-2.0-only" description = "Decode AWS Terrain Tiles into per-tile u16 heightmap grids for the .mamaps terrain side table" [[bin]] name = "dem_ingest" path = "src/main.rs" [dependencies] tilecodec.workspace = true tiff.workspace = true rayon.workspace = true [profile.release] opt-level = 3