-
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
Mixed winding order confuses MapNik renderer #11
Comments
Open question is whether it's worth fixing. The workaround is clear, and not too expensive in cases where this manifests, just wrap the geometry in |
This was canvassed in mapnik community https://github.com/mapbox/tilemill/issues/2110#issuecomment-75897323 and a fix applied mapnik#2371 (comment) |
For @rochoa to review. It's tiny, but it's really deep in the stack, could have some unexpected effects in unexpected places. |
Unexpected effects in unexpected places sounds like a doble negation, so ... what could go wrong? |
Fill polygons irrespective of winding order (closes #11)
The complex polygon in this KML file has a mixture of winding orders, which cause MapNik to render the holes as filled (one hole is probably reversed relative to the others).
When the polygon is "fixed" by using
ST_ForceRHR
on it, it renders correctly (as seen above).The text was updated successfully, but these errors were encountered: