Hi I am looking to display Geojson data on a Cesium map, I was wondering if there were any samples, or tutorials that display the process. I was able to work with the 3D tileset through this tutorial but from my understanding 3D tiles do not support GeoJson, and a lot of the documentation is in Javascript. Any guidance would be helpful!
@Kevin_Ring is it suggested to turn GeoJson data into 3d tiles, in order to visualize the data, or is it better to move the CesiumGlobeAnchor class to provided longitude and latitude?
I guess it depends on your needs. If the GeoJSON data makes sense to render as 3D Tiles, i.e., itās fundamentally triangles or a point cloud, thatās probably a good option. If not, then doing some custom rendering with Unity and then anchoring it to the globe with a CesiumGlobeAnchor is the way to go.
Thanks for checking in. Unfortunately no, we donāt support GeoJSON vector data. Weāre aware of the community requests for the feature, and itās on our radar. Mainly, we have to discuss the technical details of rendering vector data, which tends to be nontrivial. Weāll be sure to give updates when we make progress.
We recently added some GeoJSON support to Cesium for Unreal. Specifically, thereās a new raster overlay type that can be used to drape GeoJSON data over terrain. Unfortunately, we donāt have that in Unity just yet.
While we do plan to do this eventually, no one at Cesium is currently working on it. So weād welcome someone from the community implementing it. If youāre up for it, take a look at the PR that added it to Unreal:
Implementing the basic raster overlay, with every feature styled the same way, should be really straightforward. Most of the code and complexity exists to provide a way to control how the GeoJSON features are styled.