cityImage.compute_3d_sight_lines#
- cityImage.compute_3d_sight_lines(nodes_gdf, buildings_gdf, distance_along=200, distance_min_observer_target=300)[source]#
Computes the 3D sight lines between observer points in a Point GeoDataFrame and target buildings, based on a given distance along the buildings’ exterior and a minimum distance between observer and target (e.g. lines will not be constructed for observer points and targets whose distance is lower than “distance_min_observer_target”)
- Parameters:
nodes_gdf (Point GeoDataFrame) – A GeoDataFrame containing the observer nodes, with at least a Point geometry column.
buildings_gdf (Polygon GeoDataFrame) – A GeoDataFrame containing the target buildings, with at least a Polygon geometry column.
distance_along (float) – The distance along the exterior of the buildings for selecting target points.
distance_min_observer_target (float) – The minimum distance between observer and target.
Returns –
---------- –
sight_lines (LineString GeoDataFrame) – The visibile sight lines GeoDataFrame.