Display Geojson data on map

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!

Thank you!

Cesium for Unity does not yet have any support for GeoJSON rendering.

Ok thank you Kevin!

@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?

Thank you

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.

@Kevin_Ring

Any updates on GeoJSON Vector data in Unity?
An user contacted me and asked below;

"Can Cesium for Unity import GeoJSON (vector data)?

In our current project, we are using ArcGIS only for GeoJSON (vector data),
If possible, we would like to use Cesium for Unity for all data."

Hi @Mizuki0522,

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. :smile:

1 Like

Hi @Kevin_Ring @janine any update on this issue?

Hi @asaf.masa,

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.

1 Like