Skip to content

Fix DepthSegment comparator #1132

Merged
dr-jts merged 3 commits intolocationtech:masterfrom
dr-jts:fix-depthsegment-comparator
May 26, 2025
Merged

Fix DepthSegment comparator #1132
dr-jts merged 3 commits intolocationtech:masterfrom
dr-jts:fix-depthsegment-comparator

Conversation

@dr-jts
Copy link
Contributor

@dr-jts dr-jts commented May 26, 2025

This provides new logic for the DepthSegment.compareTo method. It fixes the issue in #1131. It replaces the implementation of #920, which turned out to have failure cases.

The DepthSegmentStressTest is upgraded to provide a more thorough test of the comparator contract correctness.

Fixes #1131.

@dr-jts dr-jts merged commit aee6998 into locationtech:master May 26, 2025
2 checks passed
@dr-jts dr-jts deleted the fix-depthsegment-comparator branch May 26, 2025 18:44
@maximusgrey
Copy link

Also verified fix on our end. Thank you for the quick response!

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.

Buffer by zero loses some elements of MultiPolygon

2 participants