AnalyticalGraphicsInc / czml-writer

A library for writing CZML content for use with Cesium.
Other
395 stars 142 forks source link

Polygon with Holes and Multi Geometries #130

Closed JanniePienaar77 closed 7 years ago

JanniePienaar77 commented 7 years ago

Hi,

We are building a proof of concept using Cesium and using the czml-writer. The latest version (master download (zip)), does not have the Polygon algorithms included and also the Shapefile projects have been removed from the project. Is the functionality like "eliminateHoles" to serialize data into a polygon with holes moved or how is this supported going forward with the project? I have read previous forum posts that this is supported, can you please give me direction regarding this.

Thanks Jannie

shunter commented 7 years ago

CZML does not yet support polygons with holes. See AnalyticalGraphicsInc/cesium#3826.

In the meantime, you are welcome to take ownership of the last version of the polygon algorithms code in your application:

https://github.com/AnalyticalGraphicsInc/czml-writer/blob/e951af7a950f4648749d964b21dc809adeca9e5b/DotNet/GeometricComputations/PolygonAlgorithms.cs

Alternatively, you may be able to find another geometry library which has more full-featured support for polygon hole elimination.

JanniePienaar77 commented 7 years ago

Thank you Scott.