# 获取场景
GET https://api.bimface.com/scene/{sceneId}
# 说明
通过sceneId,获得场景相关信息。
# 参数
# Header
Authorization * | Bearer {accessToken} | string |
# Path
sceneId * | 场景ID | integer (int64) |
# 响应
HTTP代码 | 说明 | 类型 |
---|---|---|
200 | OK | GeneralResponse«SceneInfoResponse» |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
# 200响应参数
GeneralResponse«SceneInfoResponse»
名称 | 说明 | 类型 |
---|---|---|
code | 状态代码 | string |
data | 返回数据 | SceneInfoResponse |
message | 提示消息 | string |
# 生成
*/*
application/json
# HTTP请求示例
# 请求 path
https://api.bimface.com/scene/2017707858581568
# 请求 header
"Authorization: Bearer cn-e9725999-0b36-4c0e-bdca-38ea88888888"
# HTTP响应示例
# 响应 200
{
"code" : "success",
"data" : {
"appKey" : "odatvZYUSAWMbdUjTU8HoZXB9tFt6123",
"createTime" : "2021-09-07 14:38:12",
"projectId" : "10000620765434",
"sceneId" : "2017707858581568",
"resources" : [{
"config":null,
"coordSys":"",
"customId":null,
"databagId":"",
"fileName":null,
"id":"layer_map_1",
"isVisible":true,
"maxLevel":"18",
"modelId":null,
"modelType":"",
"name":"地图",
"parentId":"root",
"parentName":"",
"priority":1,
"protocol":"1",
"region":"",
"shadow":{"receiveShadow":false},
"style":{"opacity":1},
"transformation":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],
"typeName":"TileLayer",
"url":"https://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={x}&TILECOL={y}&tk=9fe0f60cd462f38c726d9a1256561234",
"viewToken":null
}],
"sceneName" : "BIMFACE场景",
"sceneSetting" : {
"baseLatLon":{
"lat":25.874096,"lon":119.588585
},
"homeView":{
"orientation":{
"pitch":-1.5707963267948966,
"roll":0,
"yaw":0
},
"position":{
"alt":1000,
"lat":25.874096,
"lon":119.588585
}
}
},
"sceneStatus" : "SUCCEEDED",
"updateTime" : "2021-09-08 15:34:59"
},
"message" : null
}