Edge 的关键属性表示 OSMNX

Edge's key attribute meaning OSMNX

我试图了解 key 列在 edges 地理数据框中代表什么,但我无法在网上找到任何内容。有人可以帮我解决这个问题吗?

geodatrafame 可以是例如:

根据 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 将网络建模为 NetworkX MultiDiGraph objects. MultiDiGraphs can have parallel 边。根据 NetworkX 文档,key 属性区分平行边。因此,边由 uvkey.

唯一标识

请注意,从 OSMnx v1.0.0 开始,边缘 GeoDataFrames 也将由 uvkey 索引以保持一致性。