cityImage.district_to_nodes_from_polygons#

cityImage.district_to_nodes_from_polygons(nodes_gdf, partitions_gdf, column)[source]#

It assigns districts’ identifiers to the street junctions (nodes), from polygons representing district areas.

Parameters:
  • nodes_gdf (Point GeoDataFrame) – The nodes (junctions) GeoDataFrame.

  • partitions_gdf (Polygon GeoDataFrame) – The nodes (junctions) GeoDataFrame.

  • column (string) – The name of the column containing the district identifier.

Returns:

nodes_gdf – The updated street junctions GeoDataFrame.

Return type:

Point GeoDataFrame