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

Building multipolygons with intersecting segments #152

Closed
joto opened this issue Apr 28, 2016 · 1 comment
Closed

Building multipolygons with intersecting segments #152

joto opened this issue Apr 28, 2016 · 1 comment

Comments

@joto
Copy link
Member

joto commented Apr 28, 2016

When building multipolygons, Osmium detects intersections between way segments and doesn't build the multipolygons in these cases. This is because valid polygons aren't allowed to have intersections and having only valid polygons makes further processing much easier.

Ideally all those cases will be fixed in the OSM data and Osmium can report where those intersections are to help in fixing them. We want to manually look at those places and fix them, because most often the intersections are a sign of a bigger problem with the data.

But at least as an option it would be nice to be able to fix those polygons by introducing "pseudo nodes" at the places where the intersections are. This will at least make the polygons valid allowing further processing. Implementation should not be too difficult, but there are a lot of corner cases to be done correctly. A "proper" intersection in the form of an X is probably easy, but what about segments that are on the same line, etc.

@joto
Copy link
Member Author

joto commented Aug 10, 2019

Two years later and nobody has shown interest in this. It seems this is not needed. Closing.

@joto joto closed this as completed Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant