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

Check for invalid polygonal geometry before fixing #656

Merged
merged 1 commit into from
Dec 24, 2020

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Dec 23, 2020

Some algorithms (including DouglasPeuckerSimplifier, VWSimplifier, Densifier) may produce invalid polygonal topology, and so include a cleaning step to ensure the result value is valid.

This PR adds a test to see if the result is actually invalid before running the potentially expensive cleaning process.

Signed-off-by: Martin Davis <mtnclimb@gmail.com>
@dr-jts dr-jts self-assigned this Dec 23, 2020
@dr-jts dr-jts merged commit 4c9c1ef into locationtech:master Dec 24, 2020
@dr-jts dr-jts deleted the avoid-buffer-fix-if-valid branch January 29, 2021 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant