# 获取场景

GET https://api.bimface.com/scene/{sceneId}

# 说明

通过sceneId,获得场景相关信息。

# 参数

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
sceneStatus 场景状态 string
createTime 创建时间 string
sceneName 场景名称 string
sceneId 场景ID int64
appKey appKey string
sceneSetting 场景配置信息 SceneSetting
homeView 场景初始视角 HomeView
orientation 相机姿态角 Orientation
roll 翻滚角,默认为0 BigDecimal
pitch 俯仰角,默认为-π/2 BigDecimal
yaw 偏航角,默认为0 BigDecimal
position 相机位置 Position
alt 相机高度 BigDecimal
lon 经度 BigDecimal
lat 纬度 BigDecimal
baseLatLon 项目基点 BaseLatLon
lon 经度 BigDecimal
lat 纬度 BigDecimal
updateTime 更新时间 string
resources 场景内图层资源信息 array
effects 场景内效果资源数据 array
projectId 项目ID int64
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
}