Expand description
Multi-Format DEM Ingestion & Chunking (GeoTIFF, Terrain-RGB, Terrarium).
Converts raw floating-point elevation rasters or compressed 24-bit elevation tiles
into cache-aligned $64 \times 64$ cell .m64 strata chunks in row-major order,
with a 2D Hilbert index recorded for each chunk.
Structs§
- CogIfd
Header - Cloud-Optimised GeoTIFF (COG) Image File Directory (IFD) header (GAP-13 / G66).
- Elevation
Raster - Raw raster elevation grid descriptor.
Enums§
- Compression
Codec - Codec identifiers for .m64 spatial chunks (stored in
compression_flags). The raster producer currently implements onlyUncompressedMmap; all other identifiers fail before output mutation rather than mislabelling raw bytes. - Ingestion
Error - Errors during raster ingestion and compilation.
Constants§
Functions§
- compile_
raster_ to_ m64 - Partitions a DEM raster into $64 \times 64$
.m64strata chunks in row-major order, retaining a Hilbert index in each directory entry. - compile_
raster_ to_ m64_ with_ codec - Partitions a DEM raster into $64 \times 64$
.m64strata chunks with an explicit compression codec. - compute_
canopy_ height_ model_ zero_ heap - Computes clamped non-negative canopy height model:
CHM = (DSM - DEM).max(0.0). - decode_
terrain_ rgb_ mm - Decodes Mapbox Terrain-RGB encoded pixel (R, G, B) into elevation in millimeters.
- decode_
terrarium_ mm - Decodes Mapzen Terrarium encoded pixel (R, G, B) into elevation in millimeters.
- encode_
terrain_ rgb - Encodes elevation in millimeters into Mapbox Terrain-RGB (R, G, B).
- extract_
cog_ f32_ window_ zero_ heap - Extracts floating-point elevation values from an uncompressed COG tile or strip with zero heap allocation.
- parse_
cog_ ifd_ header_ zero_ heap - Parses a TIFF / Cloud-Optimised GeoTIFF (COG) IFD0 header with zero heap allocation.