-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fixed wrong intersections splitting #24
base: master
Are you sure you want to change the base?
Conversation
Since it was used in two different places
Yes, OSM data often contains duplicate nodes within a way. When you say you added a check for duplicate nodeids to osm-lib, do you mean you made a separate change to the osm-lib project? Is that a pull request? |
yes |
Oh my mistake, I thought I was looking at a PR on R5, this is osm-lib. |
since non consecutive duplicated nodes are self intersection which are actual intersections.
I fixed PR so that only non consecutive duplicated nodes are removed in intersection detection. I also added tests that test specifically that. |
Thanks @buma ! |
I noticed when I was working on angles that there are some edges with 0 length. Most of those are because ways have duplicate nodeids. Same node ID appears twice one after another seems to be problem in OSM itself. In OTP there is also check for duplicate nodeids so I added one to osm-lib which fixes the problem with most 0-length edges.
Also added tests.