Skip to main content

render_tile

Function render_tile 

Source
pub fn render_tile<S>(
    source: &S,
    coord: TileCoord,
    options: &TerrainTilerOptions,
) -> Result<Option<Vec<u8>>, GeolithError>
where S: ElevationSource + ?Sized,
Expand description

Render one tile, returning None when no pixel has elevation data.

Skipping fully empty tiles keeps the archive to the DEM footprint instead of padding the whole zoom level with sea-level tiles.

§Errors

Returns an error when the source raster cannot be read.