Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / scripts / maps / dem_ingest / Cargo.toml
Cargo.toml34 lines · 1.3 KiBRaw
| 1 | # The DEM-ingest sub-tool: COP90 GeoTIFF tiles in, a per-map-tile `u16` |
| 2 | # heightmap grid dataset out — the build half of WS-G's 3D terrain relief. |
| 3 | # |
| 4 | # DETACHED from both workspaces (the empty `[workspace]` table below), like every |
| 5 | # other host tool under `scripts/maps`: it is built for the host with the host |
| 6 | # toolchain, and being a member of either workspace would drag that workspace's |
| 7 | # toolchain, profiles and lockfile into the other's build. |
| 8 | # |
| 9 | # NETWORK I/O LIVES IN build scripts, not here — the same division of labour every |
| 10 | # tool under scripts/maps keeps: the shell syncs the COP90 tiles into |
| 11 | # `inputs/cop90/` and this crate does the bytes-to-bytes work (GeoTIFF Float32 |
| 12 | # decode, height resample, downsample). So the only raster dependency is `tiff`, |
| 13 | # pure Rust with no native GDAL. `tilecodec` comes along for its slippy/pmtiles |
| 14 | # tile id math and the `Heightmap` grid layout this dataset mirrors on the wire. |
| 15 | |
| 16 | [package] |
| 17 | name = "dem_ingest" |
| 18 | version = "0.1.0" |
| 19 | edition = "2021" |
| 20 | publish = false |
| 21 | license = "GPL-2.0-only" |
| 22 | description = "Decode AWS Terrain Tiles into per-tile u16 heightmap grids for the .mamaps terrain side table" |
| 23 | |
| 24 | [[bin]] |
| 25 | name = "dem_ingest" |
| 26 | path = "src/main.rs" |
| 27 | |
| 28 | [dependencies] |
| 29 | tilecodec.workspace = true |
| 30 | tiff.workspace = true |
| 31 | rayon.workspace = true |
| 32 | |
| 33 | [profile.release] |
| 34 | opt-level = 3 |