1. 修改场景
请求方式:POST
请求地址:/bosgeoservice/{appKey}/geoScenes
1.1. 请求参数:
PathParas:
参数名 | 类型 | 示例 | 是否必填 | 参数含义 |
---|---|---|---|---|
appKey | string | xb05cd3a35614caa85c0f8f86c58fcc1 | 是 | 应用Key |
key | string | scene4caa85c0f8f86c58fcc1 | 是 | 场景key |
SearchParas:
参数名 | 类型 | 示例 | 是否必填 | 参数含义 |
---|---|---|---|---|
transactionCode | string | 3MD2XzN70VkcvbXllg7x7V | 否 | 业务事务编码 |
Body:
application/json:
{
"bosclass": "geoScenes",
"code": "xxx", //编码 ,
"name": "xxx", //场景名称(长度:50)
"description": "xxx", //场景简介(长度:200)
"shared": true, //分享场景
"icon": "xxx", //缩略图
"layers":
[ //图层信息
{
"groupName": "一级分组", //分组名称
"visible": true, //可见性
"focus": true, //聚焦
"layer": [
{
"dataName": "图层a", //数据名称
"dataKey": "111", //数据key
"diaphaneity": 70, //透明度 0~100
"visible": true, //可见性
"focus": true, //聚焦
"location":
{ //位置信息
"latitude": 80, //纬度 -90≤v≤90
"longitude": 120, //经度 -180≤v≤180
"elevation": 20, //高程 仅允许数值
"yawAngle": 100, //偏航角 -180≤v≤180
"pitchAngle": 80, //俯仰角 -90≤v≤90
"rollAngle": 120, //翻滚角 -180≤v≤180
"ratio": 1.2 //缩放比率 仅允许大于0的数值
}
} ],
"child": [ ]
}
]
}
1.2. 参数说明:
参数名 | 类型 | 示例 | 是否必填 | 参数含义 |
---|---|---|---|---|
NULL | NULL | NULL | NULL | NULL |
1.3. 正确返回:
Http Status Code:200
{
"code":"SUCCESS",
"message":"请求处理成功",
"data":"http://xxx.xxx.xxx/bosgeoservice/h5e4ff8257dc4e86a8042097f67d2718/geoScenes/{key}"
}
1.4. 状态码:
状态码 | code | message | data |
---|---|---|---|
200 | ENTITY_NOTFOUND | Key为{key}的{bosclass}实体对象不存在 | NULL |
200 | ENTITY_NAME_INVALID | 实体对象name属性值无效 | NULL |
1.5. 注意事项:
(1) 修改场景的基本信息和配置图层,只有在点击保存场景时才调用此接口
(2) 不允许场景同名
(3) 验证图层组、图层属性
(4) 验证数据是否存在,创建场景与数据的关联、删除已不再场景中的数据关联
(5) 成功返后场景url