Bug of drawing polygon with holes by GeoJSON

137 views
Skip to first unread message

cxc...@clustertech.com

unread,
Mar 8, 2016, 3:37:47 AM3/8/16
to cesium-dev
Hello,
When I load a polygon from geojson, the rendered geometry looks a bit confusing.
The polygon has two holes, if I remove one of the holes, the result becomes correct.


The geojson file is here:
https://drive.google.com/file/d/0B37g-6cOGS85cE0tR1ByRjFBQUE/view?usp=sharing

The screenshot of geometry is here:
https://drive.google.com/file/d/0B37g-6cOGS85V2xaNnM4VGF5ME0/view?usp=sharing

Could everyone help me, thanks a lot

Hannah Pinkos

unread,
Mar 8, 2016, 10:02:16 AM3/8/16
to cesium-dev, cxc...@clustertech.com
Hello,

There is a known issue with our polygon triangulation that causes errors for polygons with holes.  The issue is open here: https://github.com/AnalyticalGraphicsInc/cesium/issues/3044
Thanks for providing a sample GeoJSON file.  I've attached it to the GitHub issue so we can look into it.

Best,

Hannah
Reply all
Reply to author
Forward
0 new messages