Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
translate ▾

Modern-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]
17name = "dem_ingest"
18version = "0.1.0"
19edition = "2021"
20publish = false
21license = "GPL-2.0-only"
22description = "Decode AWS Terrain Tiles into per-tile u16 heightmap grids for the .mamaps terrain side table"
23
24[[bin]]
25name = "dem_ingest"
26path = "src/main.rs"
27
28[dependencies]
29tilecodec.workspace = true
30tiff.workspace = true
31rayon.workspace = true
32
33[profile.release]
34opt-level = 3