Reputation: 11
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?
Upvotes: 1
Views: 935
Reputation: 681
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.
Upvotes: 1