Hello,
I am trying to convert a shape file to CZML to display in the Cesium viewer, but I am running into some issues. Basically, most of the polygon geometry is missing, and this is even true for the sample shapefiles provided in the converter.
Here is my process:
- Downloaded the source code for the czml-writer with the shape conversion library from here: https://github.com/AnalyticalGraphicsInc/czml-writer
- Wrote a little console app to run the converter code on a shape file
- Run the code on the sample file: 110m_ocean.shp
- Copy and paste the resulting polygons from the new czml file into this sandcastle URL: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=CZML%20Polygon.html&label=
Here is an image of what I’m getting in the online Cesium Viewer (polygons shown in red):
I know this isn’t correct because I looked at the shape file through ArcGis and it looks good:
It seems like the converter has issues files with large polygons, because it seemed to work fine for the other samples. Is it possible the converter has a bug? Is there any workarounds possible? Am I doing something wrong?
Thanks!
-Justin