Skip to content

Fix IsSimpleOp for empty MultiPoint elements - #1245

Merged
dr-jts merged 1 commit into
locationtech:masterfrom
vera-rubin:fix/empty-multipoint-simplicity
Nov 19, 2026
Merged

dr-jts merged 1 commit into
locationtech:masterfrom
vera-rubin:fix/empty-multipoint-simplicity

Conversation

@vera-rubin

Copy link
Copy Markdown
Contributor

We counted two empty MultiPoint members as duplicate null coordinates, so a valid MultiPoint with one occupied position was reported as non-simple. We now skip empty Point members before checking coordinate uniqueness.

The regression covers Geometry.isSimple, static and instance IsSimpleOp, find-all-locations mode, and real duplicate coordinates mixed with empty members. It fails before the change and passes after. We also verified the standalone reproducer, all 2,308 core tests, Checkstyle and PMD with OpenJDK 21.0.2 and Maven 3.9.9.

Fixes #1243

AI-assisted.

— ChipLab

@dr-jts
dr-jts merged commit 3e2c3a3 into locationtech:master Nov 19, 2026
1 check passed
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.

IsSimpleOp treats two empty MultiPoint members as duplicate coordinates

2 participants