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

Hi @Kevin_Ring

Thanks for the clarification, this is exactly the feature I was looking for.

I’m currently working on implementing VectorDocumentRasterOverlay (GeoJSON raster draping) for Cesium for Unity, based on the Unreal PR and the corresponding cesium-native changes.

I’d like to contribute this directly to the main Cesium for Unity repository so it can be reviewed and potentially upstreamed. Would it be possible to grant me permission to push a feature branch (or otherwise advise on the preferred contribution workflow)?

I already filled and sent the Contributor License Agreements.

If direct push access isn’t possible, I’m happy to follow whatever process you recommend (fork + PR, draft PR, design review, etc.). My goal is to align the Unity implementation closely with Cesium’s coding standards and architecture.

Thanks again, and I’m excited to contribute this to the Unity community.

Best regards

Hi,
@Kevin_Ring, @janine I saw that @Baruch_Haivatov opened a pull request that adds this functionality to cesiun-unity.

What is this PR status?

Can you please review it, as it will help me with my app implementation?