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

Fixed wrong intersections splitting #24

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

buma
Copy link
Contributor

@buma buma commented Jul 4, 2016

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.

@abyrd
Copy link
Member

abyrd commented Aug 10, 2016

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?

@buma
Copy link
Contributor Author

buma commented Aug 10, 2016

yes

@abyrd
Copy link
Member

abyrd commented Aug 10, 2016

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.
@buma
Copy link
Contributor Author

buma commented Mar 17, 2017

I fixed PR so that only non consecutive duplicated nodes are removed in intersection detection. I also added tests that test specifically that.

@abyrd
Copy link
Member

abyrd commented Mar 17, 2017

Thanks @buma !

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

Successfully merging this pull request may close these issues.

2 participants