cityImage.join_nodes_edges_by_coordinates#

cityImage.join_nodes_edges_by_coordinates(nodes_gdf, edges_gdf)[source]#

The function merge the u-v nodes information, from the nodes GeoDataFrame, with the edges_gdf GeoDataFrame. The process exploits coordinates pairs of the edges for finding the relative nodes in the nodes GeoDataFrame.

Parameters:
  • nodes_gdf (Point GeoDataFrame) – Nodes (junctions) GeoDataFrame.

  • edges_gdf (LineString GeoDataFrame) – Street segments GeoDataFrame.

Returns:

nodes_gdf, edges_gdf – The junction and street segment GeoDataFrames.

Return type:

tuple