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

Fix TopologyPreservingSimplifier to prevent jumping components causing incorrect topology #1012

Merged
merged 6 commits into from
Dec 8, 2023

Conversation

@pramsey pramsey merged commit 725f297 into libgeos:main Dec 8, 2023
28 checks passed
pramsey added a commit that referenced this pull request Dec 8, 2023
…g incorrect topology (#1012)

Fixes a long-standing bug in TopologyPreservingSimplifier which created incorrect output due to simplified edges "jumping" over components in the input geometry.

The fix handles both polygonal and linear inputs. (Previously, polygonal inputs with "jumps" produced invalid results. Linear inputs produced results whose topology did not match the input).

See locationtech/jts#1024
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.

TopologyPreservingSimplifier doesn't guarantee valid geometry
1 participant