Skip to content

Fix IsSimpleOp for empty MultiPoint elements - #1245

Open
vera-rubin wants to merge 1 commit into
locationtech:masterfrom
vera-rubin:fix/empty-multipoint-simplicity
Open

vera-rubin wants to merge 1 commit into
locationtech:masterfrom
vera-rubin:fix/empty-multipoint-simplicity

Conversation

@vera-rubin

Copy link
Copy Markdown

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

This branch has not been deployed

No deployments
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.

IsSimpleOp treats two empty MultiPoint members as duplicate coordinates

1 participant