cityImage.barriers_along#
- cityImage.barriers_along(ix_line, edges_gdf, barriers_gdf, edges_gdf_sindex, offset=100)[source]#
The function returns list of barrierIDs along the edgeID of a street segment, given a certain offset. Touching and intersecting barriers are ignored.
- Parameters:
ix_line (int) – Index street segment
edges_gdf (LineString GeoDataFrame) – The street segmentes GeoDataFrame.
barriers_gdf (LineString GeoDataFrame) – The barriers GeoDataFrame.
edges_gdf_sindex (Spatial Index) – Spatial index on edges_gdf.
offset (int) – Offset along the street segment considered.
- Returns:
barriers_along – A list of barriers along a given street segment.
- Return type:
List