-
Notifications
You must be signed in to change notification settings - Fork 92
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
vector::ops::transformations::tests::test_simplify_preserve_topology
macOS test regression
#443
Comments
I can only conclude that your MacOS GDAL is cursed 🥲. |
I'll try rolling back to an earlier version. |
CC @rouault does this look like an expected output for Possible repro: >>> from osgeo import gdal, ogr
>>> print(gdal.VersionInfo("BUILD_INFO")
... )
PAM_ENABLED=YES
OGR_ENABLED=YES
CURL_ENABLED=YES
CURL_VERSION=7.81.0
GEOS_ENABLED=YES
GEOS_VERSION=3.10.2-CAPI-1.16.0
PROJ_BUILD_VERSION=9.2.1
PROJ_RUNTIME_VERSION=9.2.1
COMPILER=GCC 11.3.0
>>> poly = ogr.CreateGeometryFromWkt("POLYGON ((20 35,10 30,10 10,30 5,45 20,20 35),(30 20,20 15,20 25,30 20))")
# "good" output
>>> poly.SimplifyPreserveTopology(100).ExportToWkt()
'POLYGON ((20 35,10 10,30 5,45 20,20 35),(30 20,20 15,20 25,30 20))'
# "bad" output is POLYGON ((45 20,10 10,30 5,45 20),(30 20,20 15,20 25,30 20)) |
According to @dr-jts, this is a know but in GEOS. We should drop the hole or use another polygon (from JTS?). But keeping the outer ring is probably enough. We might still get a different answer though. |
Yup, that sounds good. |
The test
vector::ops::transformations::tests::test_simplify_preserve_topology
is failing on macOS under GDAL3.7.1
.Output
Build Details
The text was updated successfully, but these errors were encountered: