-
Notifications
You must be signed in to change notification settings - Fork 5
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
Point in polygon check failing #96
Comments
This isn't just "mutiple holes" its holes inside polygons inside holes! I don't know if anyone handles this? |
It's an example in the Hao-Sun paper |
Also earcut and Cairo, since Makie can display it |
Is this a valid polygon though? Everything post the first ring is supposed to be a hole. So really this should be "validated" and split into three polygons, the first two each having holes and the last being a circle... Thoughts @asinghvi17? Do we still want it to work for this or should the polygon just be validated (once we have that functionality 😢 ). |
Hmm that's a good point. By the even odd rule it should look like the first plot...let me check what the databases define this as first! |
So to go back full circle (haha) it looks like this is an invalid polygon by a conservative reading of GIS standards. We could warn or error if necessary, but we should have a fix that lifts these up to become multipolygons! |
For a polygon with multiple holes, the point in polygon check seems to be failing.
The text was updated successfully, but these errors were encountered: