atlas icon indicating copy to clipboard operation
atlas copied to clipboard

There is no way to access Node information of original OSM Ways (except for start and end Nodes)

Open coenenstijn opened this issue 4 years ago • 1 comments

Can anyone explain why the original Node information on a way is lost? Why is the osmId lost for these Nodes in between start and end nodes? Is there any way to get to that information somehow?

coenenstijn avatar Dec 22 '20 12:12 coenenstijn

About the only way to get node information right now is to have an atlas file that did not drop unnecessary nodes -- this includes nodes that have no tags AND are part of a way BUT NOT part of an intersection with another way.

There was a recent release of atlas-generator that added a new flag -keepAll that keeps those nodes. As of right now, the only way to get the original node information for a way is to iterate through the locations on the way and check and see if there is a point/node at that location in the atlas. If there is more than one point/node at that location, you won't be able to figure out which one is the actual node you want.

tsmock avatar Oct 20 '21 14:10 tsmock