21b4c4e616d0f53d4bb9800259174be3d4f243d6,osmnx/projection.py,,project_graph,#Any#Any#,108

Before Change


    G_proj : networkx.MultiDiGraph
        the projected graph
    
    gdf_nodes, gdf_edges = utils_graph.graph_to_gdfs(G)

    // create new lat-lng columns just to save that data for later reference
    // if they do not already exist (i.e., don"t overwrite in subsequent re-projections)

After Change


        // if not, you don"t have to project these edges because the nodes
        // contain all the spatial data in the graph (unsimplified edges have
        // no geometry attributes)
        gdf_edges_proj = utils_graph.graph_to_gdfs(G, nodes=False, fill_edge_geometry=False)
        gdf_edges_proj = gdf_edges_proj.drop(columns=["geometry"])

    // STEP 3: REBUILD GRAPH
    // turn projected node/edge gdfs into a graph
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: gboeing/osmnx
Commit Name: 21b4c4e616d0f53d4bb9800259174be3d4f243d6
Time: 2020-06-07
Author: boeing@usc.edu
File Name: osmnx/projection.py
Class Name:
Method Name: project_graph


Project Name: gboeing/osmnx
Commit Name: cb357e90338afa0e482a25531b501d25f39c42ce
Time: 2017-03-02
Author: gboeing@berkeley.edu
File Name: osmnx/plot.py
Class Name:
Method Name: plot_figure_ground


Project Name: gboeing/osmnx
Commit Name: 1633b83ed6fcd1021889ecd867581a5400aa6a2d
Time: 2020-06-16
Author: boeing@usc.edu
File Name: osmnx/simplification.py
Class Name:
Method Name: _consolidate_intersections_rebuild_graph