voxcity.geoprocessor.heights

Height extraction and complement utilities for building footprints.

Functions

extract_building_heights_from_gdf(→ geopandas.GeoDataFrame)

Extract building heights from one GeoDataFrame and apply them to another based on spatial overlap.

complement_building_heights_from_gdf(gdf_0, gdf_1[, ...])

Vectorized approach with GeoPandas to compute weighted heights and add non-intersecting buildings.

extract_building_heights_from_geotiff(geotiff_path, gdf)

Extract building heights from a GeoTIFF raster for building footprints in a GeoDataFrame.

Module Contents

voxcity.geoprocessor.heights.extract_building_heights_from_gdf(gdf_0: geopandas.GeoDataFrame, gdf_1: geopandas.GeoDataFrame) geopandas.GeoDataFrame[source]

Extract building heights from one GeoDataFrame and apply them to another based on spatial overlap.

voxcity.geoprocessor.heights.complement_building_heights_from_gdf(gdf_0, gdf_1, primary_id='id', ref_id='id')[source]

Vectorized approach with GeoPandas to compute weighted heights and add non-intersecting buildings. Returns a single combined GeoDataFrame.

voxcity.geoprocessor.heights.extract_building_heights_from_geotiff(geotiff_path, gdf)[source]

Extract building heights from a GeoTIFF raster for building footprints in a GeoDataFrame.