s3mb 外部有个 .scp 文件。我在github 示例中看到 CBD的cesium 加载,但是里面有段cesium 参数,与.scp 的配置是怎么对应的,麻烦解答下。
代码如下
layer.readyPromise.then(function() {
scene.camera.setView({
destination : new Cesium.Cartesian3(-2181968.890329965, 4385313.17843029, 4072712.8241634783),
orientation : {
heading : 3.1756648661534443,
pitch : -0.3715184468182904
}
});
}).otherwise(function(error) {
console.log(error);
});
这里的数值与 .scp 里面那些数值有关系,该怎么解读。我的功能只是cesium 预览超图s3mb文件。
.scp 文件内容如下
{"asset":"SuperMap",
"crs":"epsg:0",
"dataType":"BIM",
"extensions":{
"attachFiles":[],
"hasSpatialIndex":"TRUE",
"levels":[],
"pointCloudLayers":[],
"processType":"Normal",
"renderMode":"Batch",
"s3m:FileType":"OSGBCacheFile",
"s3m:TextureSharing":"FALSE",
"s3m:TileSplitType":"GLOBAL",
"s3m:TransparencyOptimization":"TRUE",
"s3m:VertexWeightMode":"DatasetField",
"scales":[{"caption":"4485","tilewidth":"303.84","value":"0.0002229272308896519"}],
"vol":[]},
"geoBounds":{"bottom":39.90288464646415,"left":116.4444634480989,"right":116.4717575064941,"top":39.92171235599680},
"heightRange":{"max":335.4868469248145,"min":3.812862395528483},
"lodType":"Replace",
"position":{
"units":"Degree",
"x":116.4581104772965,
"y":39.91229850123048,
"z":0.0
},
"pyramidSplitType":"QuadTree",
"tiles":[{
"boundingbox":{
"max":{"x":184.1859636656495,"y":355.6962626403032,"z":310.4428908230186},
"min":{"x":-264.5320684642847,"y":-93.0217694896310,"z":-138.2751413069156}},
"url":"./Tile_-14624_42667_0000/Tile_-14624_42667_0000.s3mb"
}],
"version":1.0,
"wDescript":{
"category":"",
"range":{"max":335.4868469248145,"min":3.812862395528483}
}}