Skip to content

Use GeometryFixer for DouglasPeuckerSimplifier and Densifier repairs - #1235

Merged
dr-jts merged 1 commit into
locationtech:masterfrom
bjornharrtell:bjornharrtell-implement-issue-888
Sep 23, 2026
Merged

dr-jts merged 1 commit into
locationtech:masterfrom
bjornharrtell:bjornharrtell-implement-issue-888

Conversation

@bjornharrtell

Copy link
Copy Markdown
Contributor

Invalid polygonal output from Douglas-Peucker simplification and densification was still repaired with the legacy buffer(0) workaround. This can discard valid geometry that GeometryFixer is designed to preserve.

This change routes both validation paths through GeometryFixer, keeps the existing validation opt-outs, and preserves Douglas-Peucker's historical POLYGON EMPTY result for collapsed polygonal output. Regression coverage verifies preserved lobes and holes outside a shell.

Tests: mvn -q -pl modules/core test

Fixes: #888

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@dr-jts
dr-jts merged commit 44dac88 into locationtech:master Sep 23, 2026
2 checks passed
@dr-jts dr-jts changed the title Use GeometryFixer for simplifier and densifier repairs Use GeometryFixer for DouglasPeuckerSimplifier and Densifier repairs Sep 23, 2026
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.

Use GeometryFixer in DouglasPeuckerSimplifier

2 participants