Closed buganini closed 3 months ago
I'm not able to reproduce.
What is the version of geos you are using?
I'm using geos 3.12.2 (via conda-forge). With a pip installation you probably won't be able to get to geos 3.12.2 yet (this is for shapely 2.1), but if you install shapely 2.0.5 you should get version 3.11.4 of geos which might help.
I was using 3.11.3-CAPI-1.17.3 Upgrading to shapely 2.0.5 fixes this issue.
This might have been a case of https://github.com/shapely/shapely/issues/2066 (which we indeed fixed in shapely 2.0.5)
This might have been a case of #2066 (which we indeed fixed in shapely 2.0.5)
My test was with shapely 2.0.4 with GEOS 3.12.2 which didn't have the problem...
The issue was specific to MacOS 14+ with numpy 2.0 installed from wheels, so you probably didn't run into it while testing
Expected behavior and actual behavior.
T1 and T2 works, T3 leads to exception, T2 and T3 are just different by one vertex so I am not sure if it's a float precision issue
Steps to reproduce the problem.
Operating system
Apple M2 macOS Sonoma 14.3
Shapely version and provenance
2.0.4 installed from PyPI using pip