Server for Cesium Terrain And 3D Tiles
npm i && npm start
example: open http://localhost:8000/terrain/1.html
地形生成工具 Cesium Terrain Builder gdal2cesium
#合并处理nodata=>-999999999
gdal_merge -dstnodata -999999999 -r bilinear -ot Int16 -of GTiff /data/tif/*.tif /data/merge/dem.tif
#生成tiles.vrt索引
gdalbuildvrt -resolution highest -srcnodata -999999999 -vrtnodata "0 0 255" /data/srtm/tiles.vrt /data/merge/dem.tif
#生成瓦片
docker run -it --rm -v /data:/data soxueren/busybox-gdal:ctb ctb-tile -f Mesh -C -N -o /data/srtm /data/srtm/tiles.vrt
#生成layer.json
docker run -it --rm -v /data:/data soxueren/busybox-gdal:ctb ctb-tile -f Mesh -C -N -l -o /data/srtm /data/srtm/tiles.vrt
#不合并生成tiles.vrt索引,需要,处理nodata=>-999999999,-vrtnodata =>"0 0 255"
gdalbuildvrt -resolution highest -srcnodata -999999999 -vrtnodata "0 0 255" -r bilinear tiles.vrt -input_file_list files.txt
模型工具