Skip to content

Handle mixed coordinate types in OverlayNG results - #1242

Open
Boulea7 wants to merge 1 commit into
locationtech:masterfrom
Boulea7:fix/overlayng-mixed-coordinates-1238
Open

Boulea7 wants to merge 1 commit into
locationtech:masterfrom
Boulea7:fix/overlayng-mixed-coordinates-1238

Conversation

@Boulea7

@Boulea7 Boulea7 commented Oct 11, 2026

Copy link
Copy Markdown

OverlayNG can throw Invalid ordinate index: 2 when an overlay result mixes CoordinateXY with coordinates carrying Z. Copy and normalize coordinates before constructing result rings and lines, including diagnostic edge output, so elevation population can fill missing Z values without modifying input coordinates. Determine spatial dimensions and measures separately to choose the correct coordinate type.

Fixes #1238.

Validated on Java 21: all 30 OverlayNGZTest cases and all 2321 core tests pass, along with core Checkstyle and PMD checks. Core production sources also compile with javac --release 8.

Signed-off-by: boulea7 <zln1905391059@163.com>

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.

OverlayNG throws IllegalArgumentException: Invalid ordinate index: 2 when one input has CoordinateXY coordinates and the other has Z

1 participant