OUT OF MEMORY error when I overlay data

1. A concise explanation of the problem you’re experiencing.

I am trying to overlay Vector data in GeoJSON format on elevation data in .terrain format. For the first time it displays but when I try to zoom, it throws up OUT OF MEMORY error.

Later I restarted my PC and commented

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

//Add terrain
var viewer = new Cesium.Viewer(‘cesiumContainer’);
var cesiumTerrainProviderMeshes = new Cesium.CesiumTerrainProvider({
url : ‘http://localhost:8079/tilesets/MyElevationData’,
requestWaterMask : true,
requestVertexNormals : true
viewer.terrainProvider = cesiumTerrainProviderMeshes;


viewer.scene.globe.depthTestAgainstTerrain = true;

//Load data - From toposheets in GeoJSON format

var dataSource = Cesium.GeoJsonDataSource.load(’…/GeoJSON/myTopodata.geojson’);

Cesium.GeoJsonDataSource.clampToGround = true;

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I have a set of Elevation, Topographic, Vector and Raster data of a particular Arear. I need to overlay all these on top of each other.

If you know a better way that would be great

4. The Cesium version you’re using, your operating system and browser.

Cesium “1.42.0”, Windows 10, IE11 and Chrome

Hi there,

Sounds like you are trying to load a lot of vector data. Is it possible to break up the files? The best solution would be to work with us to convert your data to 3D Tiles, as that handles loading in the data in a more memory-friendly way.



Is there any tool to convert the data to 3D tiles ?

Not publicly available from us yet, but see the link above and contact tim@agi.com.