1. 根据3D Tiles数据编码获取3D Tiles数据key

1.1. 基本信息

Path

POST http://building-bos.rickricks.com/bosfoundationservice/{buildingId}/prototype/query/uoGISModel?noRelation=true

API描述

根据3D Tiles数据编码获取3D Tiles数据key

1.2. 请求参数

Request Headers

参数名称 介绍 举例
Authorization 用户令牌 abc
Content-Type media type application/json

Path Param

参数名称 介绍 举例
buildingId 建筑id abc

Request Body

application/json

{
    "condition": [
        {
            "field": "bosclass",
            "operator": "==",
            "value": "uoGISModel",
            "number": "false",
            "logic": "And"
        },
        {
            "field": "code",
            "operator": "==",
            "value": "{code}",//此处填入具体的3D Tiles数据编码
            "number": "false",
            "logic": "And"
        }
    ],
    "select": [
        "modelKey"
    ]
}

1.3. 返回内容

执行成功

{
  "message": "请求处理成功",
  "code": "SUCCESS",
  "data": {
    "data": [
      {
        "currentUserPermissions": "rwdc",
        "key": "5377a7630d7842129e262f909f6f7a91"
        "modelKey": "G1581219854084"  //3D Tiles数据key
      }
    ],
    "count": 1
  }
}

2. 获取指定3D Tiles数据详细信息

2.1. 基本信息

Path

GET http://building-bos.rickricks.com/buildingservice/{buildingId}/modelGIS/{key}/queryGISData

API描述

根据3D Tiles数据key获取其详细信息

2.2. 请求参数

Request Headers

参数名称 介绍 举例
Authorization token abc

Path Param

参数名称 介绍 举例
buildingId 建筑ID abc
key 3D Tiles数据key G123242422

2.3. 返回内容

执行成功

{
  "message": "请求处理成功",
  "code": "SUCCESS",
  "data": {
    "gmodeldb": "uc755c6a72064ba3bd3c629fc2e826e0",
    "name": "7",
    "code": "7",//3D Tiles数据编码
    "description": null,
    "mainPath": "tileset.json",
    "models": [
    "{\"bosclass\":\"uoModelDocument\",\"code\":\"M003\",\"createTime\":\"1581164402172\",\"creator\":\"daisy1\",\"fileName\":\"别墅-1(1)-测试轴网.zip\",\"gcategory\":\"2\",\"gcreatetime\":\"1581164448378\",\"gtime\":\"1581164448378\",\"guid\":\"3eeed3ca0e0546028c0a2cc99863baa9\",\"guser\":\"users/445289920\",\"id\":\"documents/3eeed3ca0e0546028c0a2cc99863baa9\",\"key\":\"3eeed3ca0e0546028c0a2cc99863baa9\",\"modelKey\":\"M1581164448372\",\"name\":\"别墅-1(1)-测试轴网\",\"parseStatus\":\"3\",\"permissionGroup\":[],\"rev\":\"_aAR-_HO---\",\"revision\":\"0\",\"size\":57626195}"
    ],//BIM模型列表
    "components": [],//BIM模型构件列表
    "locationInfo": {
      "latitude": 0,
      "longitude": 0,
      "height": 0,
      "heading": 0,
      "pitch": 0,
      "roll": 0,
      "originX": 0,
      "originY": 0,
      "originZ": 0,
      "ratio": 1,
      "originUpAxis": "Z"
    },//位置信息
    "renderingEffects": {
      "forceDoubleSide": false,
      "colorRatio": 1,
      "textureGeometricErrorFactor": 16,
      "light": "default",
      "simplifyFactor": 1,
      "simplifyMesh": "none",
      "minGeometricError": 0.001,
      "boxRadius2GeometricError": 1,
      "nextGeometricErrorFactor": 0.1
    },//渲染效果
    "sceneModule": {
      "tileMaxDataSize": 2000000,
      "splitPriority": "space",
      "splitMaxDataSize": 10000000,
      "splitUnit": "mesh"
    },//场景分块
    "modelKey": "G1581219854084", //3D Tiles数据key
    "status": 1
  }
}

3. 获取BIM模型对应的3D Tiles数据

3.1. 基本信息

Path

POST  http://building-bos.rickricks.com/bosfoundationservice/{buildingId}/prototype/linked/query?page={page}&per_page={per_page}

API描述

根据建筑BIM模型获取对应的3D Tiles数据

3.2. 请求参数

Request Headers

参数名称 介绍 举例
Authorization 用户令牌 abc
Content-Type 内容类型 application/json

Path Param

参数名称 介绍 举例
buildingId 建筑id abc

Query Param

参数名称 介绍 举例
page 页数 1
per_page 每页条数 10

Request Body

application/json

{
    "condition": [
        {
            "bosclass": "uoModelDocument",
            "alias": "e1",
            "subCondition": [
                {
                    "field": "_key",
                    "operator": "==",
                    "value": "{key}", //此处填入具体的BIM模型key
                    "number": "false",
                    "logic": "And"
                }
            ]
        },
        {
            "bosclass": "uoGISModel",
            "alias": "e2",
            "subCondition": []
        },
        {
            "bosclass": "uirModelGIS",
            "alias": "e3",
            "type": "relationship",
            "from": "e1",
            "to": "e2",
            "subCondition": []
        }
    ],
    "select": {
        "mainPath": "e2.mainPath",
        "description": "e2.description",
        "name": "e2.name",
        "code": "e2.code",
        "status": "e2.status",
        "remark": "e2.remark",
        "modelKey": "e2.modelKey"
    }
}

3.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "data": [
              {
                  "code": "new 3m code", //3D Tiles数据编码
                  "mainPath": "tileset.json",
                  "description": "new 3m desc",
                  "remark": "GEO模型解析成功",
                  "modelKey": "G1579577481295",
                  "name": "new 3m name",
                  "status": 1
                }
        ],
        "count": 1
    }
}
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-09-23 15:25:50

results matching ""

    No results matching ""