Streaming massive 2D vectors layers

Hi! We are trying to find a workflow for streaming massive (gigabytes) 2D vectors layers with good performance on to the Cesium globe. If this has been covered elsewhere please send me a link.

We have been told to use 3D Tiles, but is there a specific workflow to convert our 2D GIS layers so that the tile rendering works.

Any help, much appreciated, as always :slight_smile:

Hi there,

What format are your 2D Vector layers in? We’ve added experimental support in Cesium for Vector Tiles.

Thanks,

Gabby

Hey Gabby

These can be any any format required. Currently they are in geojson

Any help, much appreciated.

Hi Tim,

You can load and style GeoJSON files into Cesium with the GeoJsonDataSource class.

var viewer = new Cesium.Viewer('cesiumContainer');
viewer.dataSources.add(Cesium.GeoJsonDataSource.load('../../SampleData/ne_10m_us_states.topojson', {
  stroke: Cesium.Color.HOTPINK,
  fill: Cesium.Color.PINK,
  strokeWidth: 3,
  markerSymbol: '?'
}));

``

Thanks,

Gabby

Hi Gabby

We can stream geojson, but these are huge and can sometimes crash the application. Can they be tiled similar to 3D Tiles?

Our tiling pipeline is currently in progress, but you can contact Tim Rivenbark, Cesium’s Business Development Director, at tim@agi.com to see about tiling your data.

Thanks Gabby, we know Tim so will drop him and Todd a line :slight_smile: