Add Elevation data with no internet connection

Hello,

I'm looking for a solution that allows to add elevation data on Cesium without using an internet connection.

After some research, I found and followed a tutorial that used the tool : Cesium Terrain Builder. So I generated the .terrain files, added the folder to the TerrainProvider parameter, and finally created a layer.json file.

Content of layer.json file :

  {
    "tilejson": "2.1.0",
    "format": "heightmap-1.0",
    "version": "1.0.0",
    "scheme": "tms",
    "tiles": ["{z}/{x}/{ReverseY}"]
  }

And I also edited Wamp's .htaccess to add:

<IfModule mod_headers.c>
   <FilesMatch ".terrain$">
      SetEnvIf Origin ":" IS_CORS
      Header set Access-Control-Allow-Origin "*" env=IS_CORS
   </FilesMatch>
</IfModule>

However, on the desired area, there is no elevation data and I have no log on the browser console.

Any help would be appreciated.

Thanks.
Happy Christmas.
Best Regards,
Matthieu Gorce.

Hi Matthieu,

The cesium-terrain-builder project is not one we are related to or support, perhaps you could ask the maintainers of that project.

AGI, the company that created Cesium, does offer the STK Terrain Server for creating terrain data that can be used in Cesium.

Thanks!

Gabby