Cesium(八)加载倾斜摄影测量数据
2020-08-04 本文已影响0人
我爱福尔摩斯呀
一、数据准备
在网上下载的倾斜摄影测量数据。

数据下载地址https://pan.baidu.com/s/1i6N8J1UEBrJRKVQ_ROYZHQ 提取码:4llo
倾斜摄影测量数据.osgb格式,不能直接用于Cesium之中。
二、数据转换
在CesiumLab中选择
数据处理-->倾斜模型转换-->选择数据

选择到刚才下载的数据目录

开始转换

转换完成

三、数据加载
var tileset = new Cesium.Cesium3DTileset({
url:"http://localhost/data/tileset/tileset.json",
});
viewer.scene.primitives.add(tileset);
效果如下:

