Edge's Key Attribute Meaning Osmnx
Solution 1:
Per the OSMnx documentation:
Using OSMnx’s graph module, you can retrieve any spatial network data (such as streets, paths, canals, etc) from the Overpass API and model them as NetworkX MultiDiGraphs. OSMnx automatically processes network topology from the original raw OpenStreetMap data such that nodes represent intersections/dead-ends and edges represent the street segments that link them. MultiDiGraphs are nonplanar directed graphs with possible self-loops and parallel edges.
OSMnx models networks as NetworkX MultiDiGraph objects. MultiDiGraphs can have parallel edges. Per the NetworkX docs, the key
attribute differentiates between parallel edges. Thus, edges are uniquely identified by u
, v
, and key
.
Note that starting with OSMnx v1.0.0, edge GeoDataFrames will also be indexed by u
, v
, and key
for consistency.
Post a Comment for "Edge's Key Attribute Meaning Osmnx"