You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In fact, osm2gmns has had the intersection consolidation function implemented from the very beginning. We can also generate a meso movement-based network to connect with signal timing data. We will compare our consolidation results with OSMnx. If you have any particular findings from your comparisons between OSMnx and osm2gmns's consolidated results, using a sample network, please let us know as well. Thank you!
https://osm2gmns.readthedocs.io/en/latest/quick-start.html
Consolidate Intersections
In OpenStreetMap, one large intersection is often represented by multiple nodes. This structure brings some difficulties when performing traffic-oriented modelings. osm2gmns enables users to consolidate intersections that are originally represented by multiple nodes into a single node. Note that osm2gmns only identifies and consolidates signalized intersections.
net = og.getNetFromFile('asu.osm')
og.consolidateComplexIntersections(net, auto_identify=True)
og.outputNetToCSV(net)
--Generate Multi-Resolution Networks
osm2gmns can generate the corresponding mesoscopic and microscopic network for any macroscopic networks in GMNS format.
Generate multi-resolution networks from an osm file.
net = og.getNetFromFile('asu.osm', default_lanes=True)
og.consolidateComplexIntersections(net, auto_identify=True)
og.buildMultiResolutionNets(net)
og.outputNetToCSV(net)
I don't think (?) there is a need to re-implement the graph simplification that osmnx has?
The text was updated successfully, but these errors were encountered: