Terrain data is not loaded on browser.

Hi,

I have a terrain data in .tif format using ( https://github.com/geo-data/cesium-terrain-builder), i was able to convert the data into .terrain format.

I’m able to launch the terrain server (https://github.com/geo-data/cesium-terrain-server). I have placed the .terrain data generated from previous step in terrain server folder.

Server is able to server the .terrain files on request.

I’m unable to view the terrain data on browser. Globe is displayed on browser.

I have attached my html file.

Cesium folder is hosted on Apache server.

Terrain.html is placed in root directory of cesium folder.

Please help me out

Thanks and Regards

Vinay

Terrain.html (1 KB)

Hi, I don't think that there is an issue in your code, I don't know if this can help or not but try to check the error logs in the developer tool and see if you have an error like the one in the image. If so, then your server is not working properly (maybe something with the directories path)

best,

Mussab

Hi Mussb,

Server is working fine.

layer.json file content
{
  "tilejson": "2.1.0",
  "format": "quantized-mesh-1.0",
  "version": "1.0.0",
  "scheme": "tms",
  "tiles": ["terrain/{z}/{x}/{y}.terrain"]
}

error:
Failed to obtain tile x:1 y:o level 0
Failed to obtain tile x:0 y:o level 0

cesium terrain builder generates heightmap instead of quantized mesh. Your layer.json should be

{
“tilejson”: “2.1.0”,
“format”: “heightmap-1.0”,
“version”: “1.0.0”,
“scheme”: “tms”,
“tiles”: ["{z}/{x}/{y}.terrain"]
}

Hey man i actually need a support on angular-cesium . can you help me on this??

Thanks for the information