-
Notifications
You must be signed in to change notification settings - Fork 216
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
Sym difference may generate polygon with disconnected interior #869
Comments
Thanks! I confirm this is a bug. Reduced issue is that the result of
is a single polygon with two holes while it should've been 3 separate polygons. |
I agree with the fact that it is a bug. I remember that some polygons can have two valid representations, but probably not this one. http://www.gdmc.nl/publications/2004/Invalid_Valid_Clean_Polygons.pdf I'll assign it to myself but I'm not sure how to fix it yet. (EDITED) The generation with difference is wrong, but with intersection and union (resulting in the same spatial geometry) is fine. This will make it (hopefully) a bit easier to fix, somewhere a decision should be the other way round. To be continued. |
Thanks! Adding this testcase |
I've a working solution concept and will change it a bit, test it more, and create a PR next week |
In review: #887 |
Maybe bit unrelated question, but, how can I check out boost geometry only ? |
See link Adam for the official way. |
Please see this example:
https://wandbox.org/permlink/Ib8ZrLmUlRI8UZEU
Expected output is a valid polygon, output is:
Geometry is not valid: Geometry has disconnected interior
MULTIPOLYGON(((50 70,50 90,70 90,70 70,90 70,90 50,70 50,70 10,10 10,10 70,50 70),(50 70,50 50,70 50,70 70,50 70),(50 50,30 50,30 30,50 30,50 50)))
The text was updated successfully, but these errors were encountered: