cityImage.assign_height_from_dtm#

cityImage.assign_height_from_dtm(nodes_gdf, dtm_path, z_col='z', min_valid_elev=-50.0)[source]#

Sample a DTM raster to assign elevation to point nodes.

The raster must be a bare-earth terrain model (DTM): the sampled value is written to z_col and represents the ground under the node — e.g. the observer elevation used by the 3D sight lines. Values below min_valid_elev (nodata seas, voids) become NaN for the caller to fill.

Requires the optional height extra: rasterio.