Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rouault opened this issue Mar 5, 2025 · 0 comments

Comments

@rouault
Copy link
Contributor

rouault commented Mar 5, 2025

Caught by GDAL autotest suite: https://github.com/OSGeo/gdal/actions/runs/13681199663/job/38265852044?pr=11924

41:     @pytest.mark.require_geos(3, 12)
41:     def test_ogr_geos_pointzm_empty():
41:     
41:         g1 = ogr.CreateGeometryFromWkt("POINT ZM EMPTY")
41:     
41:         g2 = g1.Union(g1)
41:     
41:         # GEOS 3.12 returns MULTIPOINT ZM EMPTY, but also accept POINT ZM EMPTY
41:         # to be future proof...
41: >       assert g2.ExportToIsoWkt() in ("MULTIPOINT ZM EMPTY", "POINT ZM EMPTY")
41: E       AssertionError: assert 'POINT EMPTY' in ('MULTIPOINT ZM EMPTY', 'POINT ZM EMPTY')

This passed with 3.13.0

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

No branches or pull requests

1 participant