Skip to main content

Module terrain

Module terrain 

Source
Expand description

Drone-capture terrain pipeline: GeoTIFF DEM to Terrain-RGB PMTiles.

Consumes the DEM produced by a photogrammetry toolchain (drone video → frame extraction → OpenDroneMap --dsm/--dtm) and emits raster-dem PMTiles that MapLibre renders through setTerrain and hillshade.

Modules§

clip
Polygon mask for terrain tiles: pixels outside the polygon become nodata and tiles that miss it are not written.
cog
Windowed reader for tiled or stripped GeoTIFFs, including Cloud Optimized GeoTIFF overviews.
crs
Coordinate reference system transforms for DEM reprojection.
dem
GeoTIFF digital elevation model reader.
encoding
Elevation-to-RGB encodings for raster-dem tiles.
mosaic
A set of GeoTIFFs rendered as one elevation surface, read window by window so memory follows the output tile instead of the input size.
source
Elevation sources the terrain tiler can render: one in-memory Dem or a mosaic of GeoTIFFs read window by window (CogMosaic).
tiler
Render a DEM into Terrain-RGB raster tiles and pack them into PMTiles.

Structs§

ClipMask
A polygon mask in WGS84 longitude/latitude.
Cog
A GeoTIFF opened for windowed reads.
CogMosaic
GeoTIFFs rendered as one elevation surface.
Dem
An elevation raster with its georeferencing.
TerrainTileStats
Summary of a completed terrain tiling run.
TerrainTilerOptions
Options controlling terrain tile generation.

Enums§

Crs
A supported coordinate reference system.
TerrainEncoding
Elevation encoding for raster-dem tiles.

Traits§

ElevationSource
Elevation data the terrain tiler samples per output tile.

Functions§

run
Build Terrain-RGB PMTiles from the GeoTIFF DEMs in dems.
write_terrain_pmtiles
Render source across the configured zoom range into a PMTiles archive.

Type Aliases§

Bounds
Geographic bounds as (min_lon, min_lat, max_lon, max_lat).