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

Try to preserve polygons while making them valid #66

Merged
merged 3 commits into from
Sep 16, 2016

Conversation

zerebubuth
Copy link
Member

The issue is that using the buffer(0) technique on invalid polygons can sometimes return only part of the original polygon, and discards the rest. This can lead to large areas being lost. This patch attempts to address that by unioning the result of making the reverse of the polygon valid.

Connects to tilezen/vector-datasource#1030.

@rmarianski could you review, please?

@coveralls
Copy link

coveralls commented Sep 16, 2016

Coverage Status

Coverage decreased (-1.8%) to 93.19% when pulling 777e45f on zerebubuth/1030-broken-water-land-z5 into 28fb332 on master.

@rmarianski
Copy link
Member

👍

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.

3 participants