首页 / 浏览问题 / WebGIS / 问题详情
加载发布服务中的Config不显示倾斜摄影模型
13EXP 2021年07月26日

使用产品:iserver 8c 810 操作系统:win10 x64
数据类型: 文件型
问题详细描述:参照教程操作后html上始终不显示发布出来的倾斜摄影模型
问题重现步骤: 

我的页面部分代码:var promise = scene.addS3MTilesLayerByScp('http://localhost:8090/iserver/services/3D-QiuMianChangJing01/rest/realspace/datas/Config/config',{
                name : 'OSGBFile'
            });
            Cesium.when(promise,function(layer){
                scene.camera.setView({
                    destination : Cesium.Cartesian3.fromDegrees(1562.736206, 1413.699951, 10)
                });

http://localhost:8090/iserver/services/3D-QiuMianChangJing01/rest/realspace/datas/Config/config中的数据:

1.00000 OSGBFile 1562.736206 1413.699951 0.000000 0.000000 0.000000 ./Tile_+001_+001/Tile_+001_+001.s3m -3061.031616 686.000000 1463.098572 30.683330 ./Tile_+001_+002/Tile_+001_+002.s3m -3071.000000 736.000000 1458.826660 38.995199 ./Tile_+001_+003/Tile_+001_+003.s3m -3071.000000 786.000000 1452.496094 37.086782 ./Tile_+001_+004/Tile_+001_+004.s3m -3071.000000 836.000000 1458.913269 37.071262 ./Tile_+001_+005/Tile_+001_+005.s3m -3071.000000 886.000000 1477.121338 40.428355 ./Tile_+001_+006/Tile_+001_+006.s3m -3071.000000 936.000000 1499.733704 39.741569 ./Tile_+001_+007/Tile_+001_+007.s3m -3070.997803 986.000000 1506.019714 37.167787 。。。。。。

转化为S3M类型后的config文件:<?xml version="1.0" encoding="UTF-8"?>
<SuperMapCache xmlns:sml="http://www.supermap.com/SuperMapCache/vectorltile">
<sml:Version>1.00000</sml:Version>
<sml:FileType>OSGBFile</sml:FileType>
<sml:HeightRange>
<sml:MaxHeight>1562.736206</sml:MaxHeight>
<sml:MinHeight>1413.699951</sml:MinHeight>
</sml:HeightRange>
<sml:Position>
<sml:X>0.000000</sml:X>
<sml:Y>0.000000</sml:Y>
<sml:Z>0.000000</sml:Z>
</sml:Position>
<sml:OSGFiles>
<sml:Files>

。。。。

参考的教程地址:http://support.supermap.com.cn:8090/webgl/examples/TopicDOC/LoadObliqueModel_OperateTopic.html

访问发布服务中的 scene 可以看到倾斜摄影的三维模型,但是在html页面中修改为自己的一些配置后就不行

1个回答

您好, destination : Cesium.Cartesian3.fromDegrees(1562.736206, 1413.699951, 10) 定位点这里面应该要传经纬度进去哈,阈值是【-180,180】、【-90,90】,你这个地方填的是最大高度和最小高度 <sml:MaxHeight>1562.736206</sml:MaxHeight>
<sml:MinHeight>1413.699951</sml:MinHeight> ,需要填的是配置文件里面的X、Y、Z  <sml:X>0.000000</sml:X>
<sml:Y>0.000000</sml:Y>
<sml:Z>0.000000</sml:Z>
6,077EXP 2021年07月26日
...