Skip to content

Fix OverlayNG coordinate dimemsion handling for EMPTY geometries#1258

Merged
dr-jts merged 2 commits intolibgeos:mainfrom
dr-jts:fix-overlayng-coord-dim
Apr 21, 2025
Merged

Fix OverlayNG coordinate dimemsion handling for EMPTY geometries#1258
dr-jts merged 2 commits intolibgeos:mainfrom
dr-jts:fix-overlayng-coord-dim

Conversation

@dr-jts
Copy link
Copy Markdown
Contributor

@dr-jts dr-jts commented Apr 21, 2025

This fixes the OverlayNG semantics for computing the coordinate dimension when overlaying EMPTY geometries, and GEOMETRYCOLLECTIONs with EMPTY elements. This fixes a regression introduced in #1229.

Coordinate dimensions supported are 2 (XY), 3 (XYZ or XYM) and 4 (XYZM). The semantic used is that the coordinate dimension of an overlay result is the smallest of the coordinate dimensions of the inputs.

Fixes #1248

@dr-jts dr-jts added the Enhancement New feature or feature improvement. label Apr 21, 2025
@dr-jts dr-jts merged commit a0f13d8 into libgeos:main Apr 21, 2025
28 checks passed
@dr-jts dr-jts deleted the fix-overlayng-coord-dim branch April 21, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or feature improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3.13.1 regression: "POINT ZM EMPTY".Union("POINT ZM EMPTY") returns "POINT EMPTY" instead of "MULTIPOINT ZM EMPTY"

1 participant