1. dem数据

使用dem.tif就行
2. Dem转地形
2.1 使用cesium-trerrain-builder
源工程地址:https://github.com/geo-data/cesium-terrain-builder(没有编译,需要自己编译)
说明文档:https://www.cnblogs.com/jiujiubashiyi/p/17104115.html(很详细)
步骤:
可以使用https://github.com/tum-gis/cesium-terrain-builder-docker
yaml
docker run -it --name ctb -v "d:/docker/terrain:/data" tumgis/ctb-quantized-mesh
下一次可以直接启动Docker start
yaml
docker start ctb
docker exec -it ctb bash
然后使用,生成切片
yaml
ctb-tile --output-dir ./terrain-tiles dem.tif
生成layer.json
yaml
ctb-tile --output-dir /data/tilesets/terrain/test -l /data/rasters/ASTER_GDEM_V2_30m.tif

3. 配置服务器
使用nginx
https://github.com/geo-data/cesium-terrain-builder/issues/96