Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coenenstijn opened this issue Dec 22, 2020 · 1 comment

Comments

@coenenstijn
Copy link

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?

@tsmock
Copy link
Contributor

tsmock commented Oct 20, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants