'How to create terrain files with points in Cesium?

I have a DEM file with XYZ points (file sample image), and I want to use it to create terrain in Cesium with it. I tried to translate it to GeoTiff by ArcMap, but it is not supported by cesium terrain builder.

How could I create terrain files with points in Cesium?



Solution 1:[1]

Cesium is able to consume Quantized Mesh tiles but not GTIFF or XYZ directly.

First, you will have to convert your XYZ file to e.g. GTIFF and transform it to WGS84 coordinate reference system. Both can be done using gdal.

Second, convert your transformed GTIFF files to quantized-mesh format.

I created a Docker image for that purpose. Check out the Github page of tumgis/cesium-terrain-builder-docker for a detailed documentation of the entire process.

Finally, you will need a service like CesiumTerrainServer to serve the tiles to a Cesium application.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 bwibo