-
Notifications
You must be signed in to change notification settings - Fork 363
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
BUG: polygon intersection sensitive to winding order since GEOS 3.10 #827
Comments
Confirmed this is also a bug in JTS. I'll investigate there. |
Here is an XML test to help with diagnosing the issue. geos-gh-827.xml.txt](https://github.com/libgeos/geos/files/10845933/issue-geos-gh-827.xml.txt) (added .txt so GitHub will allow it) I looked into it a bit and found the breaking commit in GEOS is 3320d96. In JTS, changing the corresponding object from a |
Is there any outlook on this being fixed? Thank you! |
Possibly related to #741 ? |
First reported at Shapely #1767.
Given the attached WKB geometries: wkbs.zip
Intersection should produce a polygon output.
The first polygon has clockwise winding order, the second is counterclockwise. Intersection used to work as expected for GEOS 3.9, and only works properly for GEOS >= 3.10 if both polygons are oriented the same way.
Reversing the first so they have the same winding order produces valid results:
Note that testing with WKT does not work, because it slightly modifies the precision and produces expected outputs rather than the errors above.
The text was updated successfully, but these errors were encountered: