首页 / 浏览问题 / 移动GIS / 问题详情
android 如何打开iservice 场景
2EXP 2021年08月13日
请问 android 打开iservice 给的在线url场景流程是怎样的?

1个回答

您好,Android打开在线服务场景使用的是scene.open()方法,需要传两个参数;1.iserver三维场景服务地址,节点到realspace  2.场景名称。
9,137EXP 2021年08月13日
初始化成功后调用如下代码
其中url是 
http://192.168.102.103:50300/iserver/services/{场景名称}/rest/realspace
sceneName 是{场景名称}

// 获取Scene
com.supermap.realspace.Scene scene = mControl.getScene();
// 根据url,通过已知的场景名称打开场景
boolean open = scene.open(url, sceneName);

但是open的返回值是 false

请问会是什么问题导致open失败

...