查询场景JSON信息

优质
小牛编辑
135浏览
2023-12-01

接口说明

查询场景JSON信息
如需调用,请访问 开发者文档 来查看详细的接口使用说明
该接口仅开放给已获取SDK的开发者

API地址

GET /wish3dearth/api/scene/v1.0.0/getSceneJsonInfo

是否需要登录

请求字段说明

参数类型请求类型是否必须说明
tokenstringheader当前登录用户的TOKEN
sceneIdstringquery场景ID
jsonTypestringqueryjson类型(1场景,2点线面,3单体化,4压平、5水面,6裁剪,7飞行)
shareIdstringquery场景分享ID

响应字段说明

响应成功示例

{
  "code": 0,
  "data": {
    "VERSION": "1.6.0.453",
    "Tree": [
      {
        "isFirstNode": true,
        "chkDisabled": false,
        "check_Focus": false,
        "isParent": false,
        "isHover": true,
        "level": 0,
        "isAjaxing": false,
        "checkedOld": true,
        "icon": "http://10.16.30.108:8000/Wish3DEarth/manage/images/sceneset/tree/icon-pushpanel.png",
        "pId": 0,
        "dropInner": false,
        "type": "pushpanel",
        "secondType": "pushpanel",
        "tId": "treeLayer_14",
        "isheight": "251.35",
        "editNameFlag": false,
        "name": "压平面",
        "checked": true,
        "isLastNode": false,
        "halfCheck": false,
        "check_Child_State": -1,
        "id": "59f155e5-90d9-4b2f-86e5-b0556abeee0d",
        "zAsync": true,
        "open": false
      },
      {
        "isFirstNode": false,
        "chkDisabled": false,
        "check_Focus": false,
        "isParent": false,
        "isHover": false,
        "level": 0,
        "isAjaxing": false,
        "checkedOld": true,
        "icon": "http://10.16.30.108:8000/Wish3DEarth/manage/images/sceneset/tree/icon-monomer.png",
        "pId": 0,
        "dropInner": false,
        "type": "monomer",
        "secondType": "polygon",
        "tId": "treeLayer_1",
        "editNameFlag": false,
        "name": "单体化面",
        "checked": true,
        "isLastNode": false,
        "halfCheck": false,
        "check_Child_State": -1,
        "id": "c11472e9-fc6e-43b0-ab58-f9ea29682197",
        "zAsync": true,
        "open": false
      },
      {
        "isFirstNode": false,
        "chkDisabled": false,
        "check_Focus": false,
        "isParent": false,
        "isHover": false,
        "level": 0,
        "isAjaxing": false,
        "checkedOld": true,
        "icon": "http://10.16.30.108:8000/Wish3DEarth/manage/images/sceneset/tree/icon-imagery.png",
        "pId": 0,
        "dropInner": false,
        "type": "imagery",
        "tId": "treeLayer_13",
        "editNameFlag": false,
        "name": "天地图道路标注",
        "checked": true,
        "isLastNode": true,
        "halfCheck": false,
        "check_Child_State": -1,
        "id": "skyLandImage",
        "zAsync": true,
        "open": false
      }
    ],
    "asset": {
      "date": "2019-12-12T05:07:59.05399999999644933Z",
      "version": "1.0.0"
    },
    "scene": {
      "terrainLayers": [],
      "date": "2019-12-11T07:14:57.12823000126809347Z",
      "pageLODLayers": [
        {
          "name": {
            "materialStatus": "1",
            "updateDate": "2019-12-12 08:35:12",
            "sceneNumber": 0,
            "startWaitingTime": "2019-12-12 08:35:22",
            "title": "osgb",
            "delDbTaskFlag": "0",
            "delFlag": "0",
            "delDiskTaskFlag": "0",
            "updateBy": "289baa7eb41a421c9014fb1a00c887de",
            "uploadType": "1",
            "handleStatus": "6",
            "id": "c2c03b92a4b747c3b4a2206c65de1775",
            "viewCount": 0,
            "handleStartTime": "2019-12-12 08:35:30",
            "createDate": "2019-12-12 08:35:12",
            "handleEndTime": "2019-12-12 08:36:49",
            "owner": "289baa7eb41a421c9014fb1a00c887de",
            "createByName": "test02",
            "materialType": "1",
            "dataType": "osgb",
            "dataSize": 252446449,
            "createBy": "289baa7eb41a421c9014fb1a00c887de",
            "delDbFlag": "0",
            "uploadFilePath": "upload/c2c03b92a4b747c3b4a2206c65de1775/zip/data.zip",
            "extraJson": {
              "tileStore": "Mongo",
              "chunks": "241",
              "jsonPath": "http://10.16.30.108:8000/wish3dearth/static/v1.0.0/c2c03b92a4b747c3b4a2206c65de1775/model.json"
            },
            "position": "120.409448619,31.318886374,0.00",
            "delDiskFlag": "0",
            "materialScope": "1",
            "teamPay": "0"
          },
          "show": true,
          "shadows": 1,
          "position": {
            "x": 120.40944861885437,
            "y": 31.318886373838254,
            "z": 0
          },
          "type": "pageLOD",
          "url": "http://10.16.30.108:8000/wish3dearth/static/v1.0.0/c2c03b92a4b747c3b4a2206c65de1775/model.json"
        },
        {
          "name": {
            "materialStatus": "1",
            "updateDate": "2019-12-12 09:26:59",
            "sceneNumber": 0,
            "startWaitingTime": "2019-12-12 09:27:02",
            "title": "model",
            "delDbTaskFlag": "0",
            "delFlag": "0",
            "delDiskTaskFlag": "0",
            "updateBy": "289baa7eb41a421c9014fb1a00c887de",
            "uploadType": "1",
            "handleStatus": "6",
            "id": "079b671cef5f476682ffd93332248957",
            "viewCount": 0,
            "handleStartTime": "2019-12-12 09:27:10",
            "createDate": "2019-12-12 09:26:59",
            "handleEndTime": "2019-12-12 09:27:33",
            "owner": "289baa7eb41a421c9014fb1a00c887de",
            "createByName": "test02",
            "materialType": "1",
            "dataType": "osgb",
            "dataSize": 68469758,
            "createBy": "289baa7eb41a421c9014fb1a00c887de",
            "delDbFlag": "0",
            "uploadFilePath": "upload/079b671cef5f476682ffd93332248957/zip/data.zip",
            "extraJson": {
              "tileStore": "Mongo",
              "chunks": "66",
              "jsonPath": "http://10.16.30.108:8000/wish3dearth/static/v1.0.0/079b671cef5f476682ffd93332248957/model.json"
            },
            "position": "120.000000000,30.000000000,0.00",
            "delDiskFlag": "0",
            "materialScope": "1",
            "teamPay": "0"
          },
          "show": true,
          "shadows": 1,
          "position": {
            "x": 120,
            "y": 30,
            "z": 0
          },
          "type": "pageLOD",
          "url": "http://10.16.30.108:8000/wish3dearth/static/v1.0.0/079b671cef5f476682ffd93332248957/model.json"
        }
      ],
      "datasources": [
        {
          "sourceUri": "",
          "name": "cutDataSource",
          "show": true,
          "type": "GeoJsonDataSource"
        },
        {
          "sourceUri": "",
          "name": "pushDataSource",
          "show": true,
          "type": "GeoJsonDataSource"
        },
        {
          "sourceUri": "",
          "name": "monomerDataSource",
          "show": true,
          "type": "GeoJsonDataSource"
        },
        {
          "sourceUri": "",
          "name": "waterDataSource",
          "show": true,
          "type": "GeoJsonDataSource"
        },
        {
          "sourceUri": "",
          "name": "drawDataSource",
          "show": true,
          "type": "GeoJsonDataSource"
        }
      ],
      "imageryLayers": [
        {
          "tilingScheme": {
            "numberOfLevelZeroTilesY": 1,
            "type": "GeographicTilingScheme",
            "numberOfLevelZeroTilesX": 1
          },
          "show": true,
          "name": "http://10.16.30.108:8000/Wish3DEarth/LSGlobe/Build/LSGlobe/Assets/Textures/GlobalBkLayer.jpg",
          "tileWidth": 1024,
          "url": "http://10.16.30.108:8000/Wish3DEarth/LSGlobe/Build/LSGlobe/Assets/Textures/GlobalBkLayer.jpg",
          "tileHeight": 512
        },
        {
          "subdomains": [
            "a",
            "b",
            "c"
          ],
          "tilingScheme": {
            "numberOfLevelZeroTilesY": 1,
            "type": "WebMercatorTilingScheme",
            "numberOfLevelZeroTilesX": 1
          },
          "show": true,
          "name": "skyLandImage",
          "type": "LSLRCImageryProvider",
          "url": "http://10.16.30.108:8000/Wish3DEarth/LSGlobe/lrc/skyLandMarker.lrc"
        },
        {
          "tilingScheme": {
            "numberOfLevelZeroTilesY": 1,
            "type": "WebMercatorTilingScheme",
            "numberOfLevelZeroTilesX": 1
          },
          "maximumLevel": 6,
          "show": true,
          "name": {
            "materialStatus": "1",
            "updateDate": "2019-12-11 14:43:05",
            "sceneNumber": 0,
            "startWaitingTime": "2019-12-11 14:43:06",
            "title": "shp_line",
            "delDbTaskFlag": "0",
            "delFlag": "0",
            "delDiskTaskFlag": "0",
            "updateBy": "289baa7eb41a421c9014fb1a00c887de",
            "uploadType": "1",
            "handleStatus": "6",
            "id": "5e6731d3cfb740228fc90dbaab7b73a5",
            "viewCount": 0,
            "handleStartTime": "2019-12-11 14:43:40",
            "createDate": "2019-12-11 14:43:05",
            "handleEndTime": "2019-12-11 14:43:50",
            "owner": "289baa7eb41a421c9014fb1a00c887de",
            "createByName": "test02",
            "materialType": "3",
            "dataType": "shp",
            "dataSize": 1365,
            "shptype": "LINESTRING",
            "createBy": "289baa7eb41a421c9014fb1a00c887de",
            "attachType": 0,
            "delDbFlag": "0",
            "uploadFilePath": "upload/5e6731d3cfb740228fc90dbaab7b73a5/zip/data.zip",
            "extraJson": {
              "tileStore": "Mongo",
              "chunks": "1",
              "bigshp": true,
              "jsonPath": "http://10.16.30.108:8000/wish3dearth/static/v1.0.0/5e6731d3cfb740228fc90dbaab7b73a5/metadata.json"
            },
            "position": "120,30,0",
            "delDiskFlag": "0",
            "materialScope": "1",
            "teamPay": "0"
          },
          "tileWidth": 512,
          "type": "VectorTileProvider",
          "url": "http://10.16.30.108:8000/wish3dearth/static/v1.0.0/5e6731d3cfb740228fc90dbaab7b73a5/metadata.json",
          "minimumLevel": 0,
          "tileHeight": 512
        }
      ],
      "layers": [],
      "properties": {
        "minimumDisableDepthTestDistance": 0,
        "shadows": false
      }
    }
  },
  "message": "成功"
}

响应失败示例

{
  "code": 500,
  "message": "未知错误,请及时联系管理人员进行处理"
}

响应接受类型

application/json

响应状态码

HTTP状态码原因
0成功
200OK
401Unauthorized
403Forbidden
404Not Found
10000token不能为空
10001token已失效,请重新登录
14006时间区间格式错误
14056场景ID不能为空
14057场景为空
14058场景数据JSON为空
14060场景数据JSON类型为空
14064场景没有访问权限
99998非法请求
99999服务器异常

示例代码

$.ajax({

    url: '/wish3dearth/api/scene/v1.0.0/getSceneJsonInfo?token=&sceneId=&jsonType=&shareId=',

    type: 'GET',

    data: '',

    dataType: 'text',

    cache: false,

    contentType: 'application/json',

    xhrFields: {

        withCredentials: true

    },

    crossDomain: true,

    success:function(data){

        // 成功返回值

    },

    error:function(XMLHttpRequest, textStatus, errorThrown){

    

    }

})