-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
iD sometimes creates ways with duplicated nodes (way lenght = 0) #3211
Comments
What you describe is not an error by itself or necessarily a duplicated node, circular ways must have the same initial and final nodes. This particular case is an error because it's a two node ways where both nodes are the same. |
^ That does give me a clue though.. Maybe it's a circular way that got simplified down to just its start/end point. I feel like I saw this recently in another recent issue. |
Sure, my description was incomplete, sorry. |
The needle replacement in way.js will be a source of duplicated nodes if it is called for a way containing replacement as one of the neighbors of needle.
I'm not sure if this can really happen. I will make a pull request to prevent this if desired. |
Can you add a failing test for this to |
The functions updateNode and addNode do have the same potential issue. The issue might be prevented from occuring by the calling code, but I think such basic functions should be more robust. @bhousel I have a set of aditional tests and new implementations ready, but there is one existing test left. |
While fixing some geometries I found that sometimes people editing with iD are creating ways with duplicated nodes (ie, the initial and final nodes are the same)
For example, https://www.openstreetmap.org/api/0.6/way/427739762
Is it possible to avoid this, please?
The text was updated successfully, but these errors were encountered: