Saturday 6 April 2019

openstreetmap - Does OSM Road segments contain intersections - reg


I was searching for OSM documentation online, but I couldn't find one. This is my question,


In OSM(raw data format), does the road segment has intersections included in them. If so, are the intersections are identifiable?. Also, are there any detailed information available about OSM (WiKi is not complete)?.



Answer



In the OSM raw data, all ways (roads or else) are described as a sorted set of node numbers. Roads can be identified by a highway-tag, with some exceptions like highway=bus_stop, bridleway or footway.



A road junction is just a node, the roads don't have to be split up there. Roads crossing with bridges should not have a common node.


To identify a road junction, you have to take every node of a way, and look up all other ways that are tagged as roads if they share the same node.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...