cityImage.append_edges_metrics#

cityImage.append_edges_metrics(edges_gdf, G, dicts, column_names)[source]#

” The function attaches edges centrality values at the edges_gdf GeoDataFrame.

Parameters:
  • edges_gdf (LineString GeoDataFrame) – The street segments GeoDataFrame.

  • G (Networkx graph) – The street network graph.

  • dicts (list) – The list of dictionaries resulting from centrality measures.

  • column_names (list) – The list of strings with the desired column names for the attributes to be attached.

Returns:

edges_gdf – The updated street segments GeoDataFrame.

Return type:

LineString GeoDataFrame