Skip to content

Commit

Permalink
ogr_geos.py: GEOS 3.13.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Mar 5, 2025
1 parent 46f3542 commit e873236
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion autotest/ogr/ogr_geos.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,13 @@ def test_ogr_geos_pointzm_empty():

# GEOS 3.12 returns MULTIPOINT ZM EMPTY, but also accept POINT ZM EMPTY
# to be future proof...
assert g2.ExportToIsoWkt() in ("MULTIPOINT ZM EMPTY", "POINT ZM EMPTY")
# Also accept "POINT EMPTY", as returned by GEOS 3.13.1
# (cf https://github.com/libgeos/geos/issues/1248)
assert g2.ExportToIsoWkt() in (
"POINT EMPTY",
"MULTIPOINT ZM EMPTY",
"POINT ZM EMPTY",
)


###############################################################################
Expand Down

0 comments on commit e873236

Please sign in to comment.