-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fill Complex Polygons #1209
Comments
Improved in #3998. |
See #6238 for overlapping holes example |
Any new update for this problem? I'm having the problem regardless of drawing large complex polygons or loading json list of points into a multipolygon |
Hi @philpil, there hasn't been any activity on this item recently. If you'd like to add more information about your use case, that may help us prioritize. If you are interesting in contributing, please let us know and we'd be happy to discuss implementation or review a PR. Thanks! |
there are my location points for a polygon 0, 128.72375851502704 i set my polygons to all have the height of 0 and i'm setting the outline, outlinecolor and material to a default for all polygon points |
Also reported in #11502. |
Hi, I'm not sure if my problem is related to this issue, since I have a pretty complex polygon (157 holes in it), so I can't really see if what's happening is a filling problem, or something else. Here's a visual and the polygon in question : The polygon rendered in Cesium : The base geoJSON : |
Hi, CesiumJS should handle the holes correctly assuming they are all within the outermost polygon. In other words, the polygon can't self-intersect. We did fix an issue with holes in #11577. You can use a tool like Turf.js |
So my current problem is about self-intersections and not holes if I understand correctly? Is my current issue linked to this one, or isn't it? |
Yes, based on the results of the turf.js As a workaround, you can split the polygon into multiple simple polygons. Turf.js |
As originally reported in #1121 and started in #1163.
A few test files:
In particular, ne_10m_us_states.json has a complex polygon on the southeast coast of Texas just south of Sweeny.
Zoomed out:
The text was updated successfully, but these errors were encountered: