dwg文件发布mvt服务接口,会自动适配dwg中的layer生成合理的也样式
| categoryId required | ref 专题分类ID |
| projectId required | ref 项目ID |
request
| categoryId | integer <int64> 专题id |
| description | string 服务描述 |
| dirId | integer <int64> 目录id |
| fileVersionId | string dwg文件versionId |
| id | integer <int64> 服务id, 预发布时候的服务id, 如果直接发布可以为空 |
| name | string 服务名称 |
| serviceTags | Array of strings 服务标签 |
{- "categoryId": 0,
- "description": "string",
- "dirId": 0,
- "fileVersionId": 100001,
- "id": 0,
- "name": "string",
- "serviceTags": [
- "string"
]
}预发布mvt服务,获得可以临时使用的mvt服务
| categoryId required | ref 专题分类ID |
| projectId required | ref 项目ID |
request
| featureClassIds | Array of integers <int64> [ items <int64 > ] 要素类id数组 |
| name | string 服务名称 |
{- "featureClassIds": [
- 1,
- 2,
- 3,
- 4,
- 5
], - "name": "mvt服务"
}发布mvt服务
| categoryId required | ref 专题分类ID |
| projectId required | ref 项目ID |
request
| categoryId | integer <int64> 专题id |
| description | string 服务描述 |
| dirId | integer <int64> 目录id |
| id | integer <int64> 服务id, 预发布时候的服务id, 如果直接发布可以为空 |
| initCache | boolean 是否初始化缓存 |
| name | string 服务名称 |
| serviceTags | Array of strings 服务标签 |
| style | string 样式json字符串 |
| styleExtConfig | string 样式扩展配置, json字符串 |
Array of objects (MVTPublishReqSubLayer) 子服务列表 |
{- "categoryId": 0,
- "description": "string",
- "dirId": 0,
- "id": 0,
- "initCache": true,
- "name": "string",
- "serviceTags": [
- "string"
], - "style": "string",
- "styleExtConfig": "string",
- "subLayers": [
- {
- "featureClassId": 0,
- "id": "string",
- "name": "string"
}
]
}编辑mvt服务
| categoryId required | ref 专题分类ID |
| projectId required | ref 项目ID |
| id required | integer <int64> id |
request
| description | string 服务描述 |
| dirIds | string 专题id-目录id,英文逗号隔开 |
| maxZoom | integer <int32> 最大层级 |
| minZoom | integer <int32> 最小层级 |
| name | string 服务名称 |
| oldDirIds | string 专题id-目录id,英文逗号隔开 |
| serviceTags | Array of strings 标签,json数组格式 |
| style | string 样式json字符串 |
| styleExtConfig | string 样式扩展配置, json字符串 |
Array of objects (MVTPublishReqSubLayer) 子服务列表, 如不修改传入原来的数据 |
{- "description": "abc",
- "dirIds": "3-1,2-3,4-7",
- "maxZoom": 0,
- "minZoom": 0,
- "name": "mvt服务",
- "oldDirIds": "3-1,2-3",
- "serviceTags": [
- "a",
- "b"
], - "style": "string",
- "styleExtConfig": "string",
- "subLayers": [
- {
- "featureClassId": 0,
- "id": "string",
- "name": "string"
}
]
}查询项目下的所有场景接口
| projectId required | ref 项目ID |
| createTimeFrom | ref 创建时间(开始) |
| createTimeTo | ref 创建时间(结束) |
| isCreate | string Default: "true" 是否按创建时间排序,false就按更新时间 |
| isDesc | string Default: "true" 是否按降序排序 |
| name | string 场景名称(包含) |
| sceneSubjectId | ref 场景主题ID |
| x-tenant-id required | integer <int64> x-tenant-id |
| x-user-id required | string x-user-id |
通过服务ID获取图层属性接口
| projectId required | ref 项目ID |
reqList
| dataServiceId | integer <int64> 服务ID;group true |
| folderName | string group时为true,该字段不能为空 |
| group | boolean 是否是获取组信息,默认false;group时为true |
[- {
- "dataServiceId": 2419001822200000,
- "folderName": "文件夹1",
- "group": false
}
]通过服务ID获取图层属性接口
| projectId required | ref 项目ID |
reqList
| dataServiceId | integer <int64> 服务ID;group true |
| folderName | string group时为true,该字段不能为空 |
| group | boolean 是否是获取组信息,默认false;group时为true |
| layerType | integer <int32> 图层类型 |
[- {
- "dataServiceId": 2419001822200000,
- "folderName": "文件夹1",
- "group": false,
- "layerType": 3
}
]跨场景主题移动场景接口
| projectId required | ref 项目ID |
| sceneId required | ref 场景ID |
sceneReq
| sceneSubjectId required | integer <int64> 场景主题ID,不传入后台使用项目默认场景主题ID |
{- "sceneSubjectId": 2410285784358944
}查询项目下的所有场景接口
| projectId required | ref 项目ID |
| createTimeFrom | ref 创建时间(开始) |
| createTimeTo | ref 创建时间(结束) |
| isCreate | string Default: "true" 是否按创建时间排序,false就按更新时间 |
| isDesc | string Default: "true" 是否按降序排序 |
| name | string 场景名称(包含) |
| pageIndex | string 当前页 |
| pageSize | string 每页数量 |
| sceneSubjectId | ref 场景主题ID |
| x-tenant-id required | integer <int64> x-tenant-id |
| x-user-id required | string x-user-id |
查询场景详情(场景信息和配置详情)接口
| projectId required | ref 项目ID |
| sceneId required | ref 场景ID |
| from | boolean Default: false 获取详情接口调用来源:枚举值: edit-编辑 get-预览 share-共享 simple-只是获取基础信息(不包含config),edit时需要对整个场景做一个缓存,用于取消时还原场景配置;share时需要传入viewToken |
| viewToken | ref 分享获取场景要加viewToken:场景查看校验用的token |
更新场景(场景保存和场景发布调用,通过partSave区分来源,true代表是场景图层面板的局部保存;false代表场景发布接口,默认false)
| projectId required | ref 项目ID |
| sceneId required | ref 场景ID |
sceneReq
object (SceneConfig) 场景参数 | |
| description | string 项目名称 |
| layersSupportQuery | string 场景支持查询的服务ID,用逗号分割;新增和更新均为全量设置,如果传入为空''、或者null,可移执行,代表删除 |
| name | string 场景名称 |
| partSave | boolean true代表是场景图层面板的局部保存;false代表场景发布接口,默认false |
| sceneSubjectId required | integer <int64> 场景主题ID,不传入不需要更新 |
| supportQuery | boolean true代表是设置、修改或者删除支持查询的服务ID类型的更新;false代表普通场景更新接口,默认false |
{- "config": {
- "defaultView": {
- "flyAnimation": {
- "delayTime": 0,
- "enable": true,
- "flyTime": 2
}, - "heading": 0,
- "height": 500,
- "lat": 39.765888,
- "lon": 116.89877,
- "maxSightDistance": 50000000,
- "minSightDistance": 1,
- "pitch": 1,
- "roll": 2
}, - "globalSettings": {
- "HDR": false,
- "ambientOcclusion": {
- "enable": false,
- "intensity": 1
}, - "atmosphere": false,
- "bloom": {
- "brightness": -0.3,
- "contrast": 128,
- "delta": 1,
- "enable": true,
- "sigma": 5,
- "stepSize": 3.78
}, - "colorDisplay": {
- "brightness": 116.89877,
- "contrast": 0,
- "gamma": 1,
- "hue": 500,
- "saturation": 39.765888
}, - "colorMode": "string",
- "cutRegion": "\"cutRegion\": [\n {\n \"name\": \"裁剪1\",\n \"region\": [\n {\n \"lon\": 1.0,\n \"lat\": 2.0,\n \"height\": 3.0\n },\n {\n \"lon\": 1.0,\n \"lat\": 2.0,\n \"height\": 3.0\n },\n {\n \"lon\": 1.0,\n \"lat\": 2.0,\n \"height\": 3.0\n }\n ]\n }\n ]",
- "defaultTerrain": false,
- "depthTest": false,
- "dynamicVolumetricSky": "SUMMER",
- "environmentReflection": "SKY",
- "fov": 90,
- "globalLabel": false,
- "hardwareAA": false,
- "lightColor": "string",
- "lightIntensity": 0.1,
- "lightingTime": 660,
- "logDepthBuffer": false,
- "moon": false,
- "realisticRendering": {
- "bloom": {
- "enable": true,
- "intensity": 0.1
}, - "enable": true,
- "exponentialHeightFog": {
- "density": 0.1,
- "enable": true,
- "height": 0.1
}, - "origin": [
- 0.1
], - "skyAtmosphere": {
- "atmosphereHeight": 0.1,
- "enable": true,
- "mieAbsorptionScale": 0.1,
- "mieScatteringScale": 0.1,
- "rayleighExponentialDistribution": 0,
- "rayleighScattering": "string"
}, - "skylight": {
- "color": "string",
- "enable": true,
- "intensity": 0.1
}, - "volumetricClouds": {
- "bottomRadiusKm": 0.1,
- "cloudColor": "string",
- "cloudCoverage": 0.1,
- "cloudDirection": 0.1,
- "cloudShadowIntensity": 0.1,
- "cloudShadowSoftness": 0.1,
- "cloudSpeed": 0.1,
- "enable": true,
- "heightKm": 0.1
}
}, - "shadowEffect": {
- "color": "string",
- "intensity": 0.1,
- "shadows": true,
- "softShadows": false,
- "terrainShadows": {
- "castShadow": true,
- "receiveShadow": true
}, - "visualRange": 0
}, - "skybox": "BLUESKY",
- "storage": 16,
- "waterEffect": {
- "alpha": 1,
- "amplitude": 0.1,
- "animationSpeed": 0.1,
- "color": false,
- "frequency": 0.1,
- "mixFactor": "0.5,阈值范围:0-1"
}
}, - "mapLayers": [
- { }
], - "toolConfig": {
- "attribute": false,
- "bimTool": false,
- "fullScreen": false,
- "heightLimit": false,
- "home": true,
- "layerTree": true,
- "mapLegend": false,
- "measure": false,
- "modelCutting": false,
- "sceneRoaming": false,
- "skyline": false,
- "underGround": false,
- "viewShed": false,
- "viewSwitch": false,
- "visibility": false
}
}, - "description": "活动场景",
- "layersSupportQuery": "2415730200543424,2418965879554240",
- "name": "场景一",
- "partSave": false,
- "sceneSubjectId": 2410285784358944,
- "supportQuery": false
}用于查询任何节点所包含的所有构件id集合, 主要适用于构件集合的显隐:
| projectId required | ref Example: 11111 项目id |
| serviceId required | ref 服务id |
| categoryId | ref 类型id |
| familyId | string 构件类型(族类型)id |
| familyTypeId | ref 构建类别(族类别)id |
| floorId | ref 楼层id |
| specialtyId | ref 专业id |
| systemId | ref 系统id |
| treeType required | string Default: "1" Enum: "1-按楼层" "2-按专业" "3-按类型" "4-按系统" Example: treeType=1 构件树类型 |
tree的末级几点关联的构件列表获取接口, 不同的树类型要传入不同的id:
| projectId required | ref Example: 11111 项目id |
| serviceId required | ref 服务id |
| categoryId | ref 类型id |
| familyId | string 构件类型(族类型)id |
| familyTypeId | ref 构建类别(族类别)id |
| floorId | ref 楼层id |
| specialtyId | ref 专业id |
| systemId | ref 系统id |
| treeType required | string Default: "1" Enum: "1-按楼层" "2-按专业" "3-按类型" "4-按系统" Example: treeType=1 构件树类型 |
获取构件id集合接口
| serviceId required | ref 服务id |
| projectId required | integer <int64> projectId |
| viewToken | string Example: viewToken=5cc338d9ad5e459e85129d816224f898 token |
req
| key | string |
| values | Array of strings |
{- "key": "string",
- "values": [
- "string"
]
}| projectId required | ref 项目ID |
reqList
required | object (ClashDetectiveConfigReq) 碰撞检测配置请求体 |
| index required | integer <int32> 数据所在下标 |
required | object (ClashDetectiveSourceReq) 碰撞源请求体 |
required | object (ClashDetectiveSourceReq) 碰撞源请求体 |
[- {
- "config": {
- "clearanceTolerance": 0,
- "deviation": -10,
- "id": 123,
- "majorA": 1,
- "majorAName": 1,
- "majorB": 1,
- "majorBName": 1,
- "type": 1,
- "typeName": "硬碰撞",
- "unit": "mm"
}, - "index": 0,
- "selectionA": {
- "fileId": 10001,
- "fileName": "rvt01.rvt",
- "integrateId": 10001
}, - "selectionB": {
- "fileId": 10001,
- "fileName": "rvt01.rvt",
- "integrateId": 10001
}
}
]| projectId required | ref 项目ID |
request
| callback | string 回调url |
| clashType required | string Enum: "Hard" "Clearance" "Duplicates" 碰撞类型,"Hard"为硬碰撞,"Clearance"为间隙碰撞,"Duplicates"为副本碰撞 |
required | object (ClashDetectiveSource) |
required | object (ClashDetectiveSource) |
| tolerance | number <double> 公差,单位为毫米,当碰撞类型为"Clearance"时,需要设置公差 |
{- "callback": "string",
- "clashType": "Clearance",
- "selectionA": {
- "fileId": 1938888813662976,
- "integrateId": 0,
- "objectData": [
- {
- "categoryId": "-2001330"
}
], - "objectIds": [
- "272828"
]
}, - "selectionB": {
- "fileId": 1938888813662976,
- "integrateId": 0,
- "objectData": [
- {
- "categoryId": "-2001330"
}
], - "objectIds": [
- "272828"
]
}, - "tolerance": 0.01
}批量启动/停止数据服务接口
| categoryId required | integer <int64> categoryId |
| projectId required | integer <int64> projectId |
serviceBatchStartStopReq
| serviceIds | Array of integers <int64> [ items <int64 > ] 服务id列表 |
| start | boolean 是否启动 |
{- "serviceIds": [
- 1,
- 2,
- 3
], - "start": true
}发布新的本地服务接口
| categoryId required | ref 分类ID |
| projectId required | ref 项目ID |
servicePublishReq
object (UVMap) uv纹理贴图效果(只针对矢量白模数据,该参数和dynamic、Style互斥) | |
| coordSystem | string 本地服务-坐标系:默认值:CGCS2000 |
| dataType | integer <int32> 数据类型:1 正射影像图; 2 数字高程模型;3 倾斜摄影数据;4 矢量数据;5 精细模型数据;6 BIM模型数据;7 点云数据;8 其他数据; |
| databagId | string minio:dir path and translate record databagId |
| description | string 服务描述 |
| dirIds | string 专题id-目录id,英文逗号隔开 |
object (DistanceDisplay) 按视距显示图层 | |
| epsg | string 空间参考值 |
| featureId | integer <int64> 要素类ID:如果是矢量数据,该字段为必填字段 |
| fileId | integer <int64> 模型文件id:发布转换类型的服务时,该字段必填, 注意使用file.fileVersionId |
| format | string 本地服务-格式:数据源为倾斜、BIM、精细模型为:b3dm 当数据源为点云:pnts |
| hasElevation | boolean 是否支持三维地形表达 |
| id | integer <int64> 服务ID |
| initCache | boolean 是否初始化缓存-mvt专属 |
object (Label) 注记(注记默认字体风格font family:宋体) | |
| lcStyleId | integer <int64> 样式id:矢量类型的服务支持设置样式,矢量转换的白模类型也支持设置样式(新增需求)、点云也支持样式设置 |
| maximumLevel | integer <int32> 第三方服务注册/本地服务-最大缩放层级 |
| minimumLevel | integer <int32> 第三方服务注册/本地服务-最小缩放层级 |
| modelIntegrateResultFileVersionId | string 模型集成服务替换的数据源 |
| name | string 服务名称 |
| offset | Array of numbers <double> [ items <double > ] 本地服务-偏移值:[X,Y,Z],保留3位小数 |
| oldDirIds | string 专题id-目录id,英文逗号隔开 |
| origin | Array of numbers <double> [ items <double > ] 本地服务-中心坐标:模型当前中心坐标,经度、维度、高度 [lat,lon,height],经纬度数值保留6位小数,高度保留2位小数 |
| pgTableName | string 矢量表名:如果是发布shp数据服务此字段必须传 |
| projectId required | integer <int64> 所属项目id |
object (Rectangle) 第三方服务注册-四至范围请求实体 | |
| rotation | Array of numbers <double> [ items <double > ] 本地服务-旋转值:[X,Y,Z],保留3位小数 |
| scale | number <float> 本地服务-缩放比例:默认:1 |
| serviceTags | Array of strings 标签,json数组格式 |
| serviceType required | integer <int32> 服务类型 |
| serviceUrl | string 服务地址 |
| shpTableAlias | string 矢量表别名 |
| subServiceIds | Array of integers <int64> [ items <int64 > ] 3dtiles服务数据集合[数组] |
| tileCached | boolean 是否开启wms切片缓存 |
| tileFormats | Array of strings 是否开启wms切片缓存 |
object (TileInfo) 切片信息 | |
| tileSchemeId | integer <int64> 切片方案id |
| transId | integer <int64> |
| transform | Array of numbers <double> [ items <double > ] 新的旋转矩阵, 如果有修改中心坐标|偏移|旋转|缩放, 则传入新的transform值, 16位数组 |
object (VisualEffect) 可视化特效(只针对本地服务发布的矢量白模数据) | |
| whiteModel | boolean 是否是白模 |
{- "UVMap": {
- "enable": false,
- "facade": "string",
- "top": "string"
}, - "coordSystem": 18,
- "dataType": 1,
- "databagId": "string",
- "description": "abc",
- "dirIds": "3-1,2-3,4-7",
- "distanceDisplay": {
- "enable": false,
- "maxDistance": 10000,
- "minDistance": 0
}, - "epsg": "EPSG:3857",
- "featureId": 12,
- "fileId": 123,
- "format": 18,
- "hasElevation": true,
- "id": 0,
- "initCache": true,
- "label": {
- "anchor": "center",
- "avoidance": {
- "enable": false,
- "threshold": 20
}, - "backgroundColor": "yellow",
- "bold": false,
- "color": "rgba(0,0,0,1)",
- "distanceDisplay": {
- "enable": false,
- "maxDistance": 10000,
- "minDistance": 0
}, - "enable": false,
- "family": "微软雅黑",
- "field": "type",
- "outlineColor": "red",
- "outlineWidth": 0,
- "showBackground": false,
- "size": 12,
- "style": 0,
- "xOffset": 0,
- "yOffset": 0
}, - "lcStyleId": 123,
- "maximumLevel": 18,
- "minimumLevel": 1,
- "modelIntegrateResultFileVersionId": 123123,
- "name": "wms服务",
- "offset": 18,
- "oldDirIds": "3-1,2-3",
- "origin": 18,
- "pgTableName": "pg_gyd",
- "projectId": 123,
- "rectangle": {
- "east": 98.9939,
- "north": 108.9939,
- "south": 108.3639,
- "west": 98.3639
}, - "rotation": 18,
- "scale": 18,
- "serviceTags": [
- "a",
- "b"
], - "serviceType": 1,
- "shpTableAlias": "河流",
- "subServiceIds": [
- 123,
- 345,
- 567
], - "tileCached": true,
- "tileFormats": [
- "string"
], - "tileInfo": {
- "crs": "EPSG:4326",
- "format": "image/png",
- "layer": "WMTS测试",
- "layers": "WMTS测试",
- "srs": "EPSG:4326",
- "style": "default",
- "styles": "default",
- "tileMatrixLabels": [
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "7",
- "8",
- "9",
- "10",
- "11",
- "12",
- "13",
- "14",
- "15",
- "16",
- "17",
- "18",
- "19"
], - "tileMatrixSetID": "22,33",
- "tiled": true,
- "tilingScheme": "Geographic",
- "transparent": true
}, - "tileSchemeId": 0,
- "transId": 0,
- "transform": [
- 1,
- 0,
- 0,
- 0,
- 0,
- 1,
- 0,
- 0,
- 0,
- 0,
- 1,
- 0,
- 0,
- 0,
- 0,
- 1
], - "visualEffect": {
- "breath": {
- "color": "#000080",
- "duration": 1.5,
- "enable": false,
- "endHeight": 100,
- "startHeight": 0
}, - "gradient": {
- "enable": false,
- "endColor": "rgba(66,200,255,1)",
- "endHeight": 60,
- "startColor": "rgba(26,75,123,1)",
- "startHeight": 0
}, - "halo": {
- "color": "#299CFF",
- "duration": 2,
- "enable": false,
- "endHeight": 100,
- "mode": "up",
- "startHeight": 0,
- "thickness": 1,
- "topGlow": true
}
}, - "whiteModel": true
}发布类服务(本地服务)编辑接口
| categoryId required | integer <int64> categoryId |
| id required | integer <int64> id |
| projectId required | integer <int64> projectId |
servicePublishReq
object (UVMap) uv纹理贴图效果(只针对矢量白模数据,该参数和dynamic、Style互斥) | |
| coordSystem | string 本地服务-坐标系:默认值:CGCS2000 |
| dataType | integer <int32> 数据类型:1 正射影像图; 2 数字高程模型;3 倾斜摄影数据;4 矢量数据;5 精细模型数据;6 BIM模型数据;7 点云数据;8 其他数据; |
| databagId | string minio:dir path and translate record databagId |
| description | string 服务描述 |
| dirIds | string 专题id-目录id,英文逗号隔开 |
object (DistanceDisplay) 按视距显示图层 | |
| epsg | string 空间参考值 |
| featureId | integer <int64> 要素类ID:如果是矢量数据,该字段为必填字段 |
| fileId | integer <int64> 模型文件id:发布转换类型的服务时,该字段必填, 注意使用file.fileVersionId |
| format | string 本地服务-格式:数据源为倾斜、BIM、精细模型为:b3dm 当数据源为点云:pnts |
| hasElevation | boolean 是否支持三维地形表达 |
| id | integer <int64> 服务ID |
| initCache | boolean 是否初始化缓存-mvt专属 |
object (Label) 注记(注记默认字体风格font family:宋体) | |
| lcStyleId | integer <int64> 样式id:矢量类型的服务支持设置样式,矢量转换的白模类型也支持设置样式(新增需求)、点云也支持样式设置 |
| maximumLevel | integer <int32> 第三方服务注册/本地服务-最大缩放层级 |
| minimumLevel | integer <int32> 第三方服务注册/本地服务-最小缩放层级 |
| modelIntegrateResultFileVersionId | string 模型集成服务替换的数据源 |
| name | string 服务名称 |
| offset | Array of numbers <double> [ items <double > ] 本地服务-偏移值:[X,Y,Z],保留3位小数 |
| oldDirIds | string 专题id-目录id,英文逗号隔开 |
| origin | Array of numbers <double> [ items <double > ] 本地服务-中心坐标:模型当前中心坐标,经度、维度、高度 [lat,lon,height],经纬度数值保留6位小数,高度保留2位小数 |
| pgTableName | string 矢量表名:如果是发布shp数据服务此字段必须传 |
| projectId required | integer <int64> 所属项目id |
object (Rectangle) 第三方服务注册-四至范围请求实体 | |
| rotation | Array of numbers <double> [ items <double > ] 本地服务-旋转值:[X,Y,Z],保留3位小数 |
| scale | number <float> 本地服务-缩放比例:默认:1 |
| serviceTags | Array of strings 标签,json数组格式 |
| serviceType required | integer <int32> 服务类型 |
| serviceUrl | string 服务地址 |
| shpTableAlias | string 矢量表别名 |
| subServiceIds | Array of integers <int64> [ items <int64 > ] 3dtiles服务数据集合[数组] |
| tileCached | boolean 是否开启wms切片缓存 |
| tileFormats | Array of strings 是否开启wms切片缓存 |
object (TileInfo) 切片信息 | |
| tileSchemeId | integer <int64> 切片方案id |
| transId | integer <int64> |
| transform | Array of numbers <double> [ items <double > ] 新的旋转矩阵, 如果有修改中心坐标|偏移|旋转|缩放, 则传入新的transform值, 16位数组 |
object (VisualEffect) 可视化特效(只针对本地服务发布的矢量白模数据) | |
| whiteModel | boolean 是否是白模 |
{- "UVMap": {
- "enable": false,
- "facade": "string",
- "top": "string"
}, - "coordSystem": 18,
- "dataType": 1,
- "databagId": "string",
- "description": "abc",
- "dirIds": "3-1,2-3,4-7",
- "distanceDisplay": {
- "enable": false,
- "maxDistance": 10000,
- "minDistance": 0
}, - "epsg": "EPSG:3857",
- "featureId": 12,
- "fileId": 123,
- "format": 18,
- "hasElevation": true,
- "id": 0,
- "initCache": true,
- "label": {
- "anchor": "center",
- "avoidance": {
- "enable": false,
- "threshold": 20
}, - "backgroundColor": "yellow",
- "bold": false,
- "color": "rgba(0,0,0,1)",
- "distanceDisplay": {
- "enable": false,
- "maxDistance": 10000,
- "minDistance": 0
}, - "enable": false,
- "family": "微软雅黑",
- "field": "type",
- "outlineColor": "red",
- "outlineWidth": 0,
- "showBackground": false,
- "size": 12,
- "style": 0,
- "xOffset": 0,
- "yOffset": 0
}, - "lcStyleId": 123,
- "maximumLevel": 18,
- "minimumLevel": 1,
- "modelIntegrateResultFileVersionId": 123123,
- "name": "wms服务",
- "offset": 18,
- "oldDirIds": "3-1,2-3",
- "origin": 18,
- "pgTableName": "pg_gyd",
- "projectId": 123,
- "rectangle": {
- "east": 98.9939,
- "north": 108.9939,
- "south": 108.3639,
- "west": 98.3639
}, - "rotation": 18,
- "scale": 18,
- "serviceTags": [
- "a",
- "b"
], - "serviceType": 1,
- "shpTableAlias": "河流",
- "subServiceIds": [
- 123,
- 345,
- 567
], - "tileCached": true,
- "tileFormats": [
- "string"
], - "tileInfo": {
- "crs": "EPSG:4326",
- "format": "image/png",
- "layer": "WMTS测试",
- "layers": "WMTS测试",
- "srs": "EPSG:4326",
- "style": "default",
- "styles": "default",
- "tileMatrixLabels": [
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "7",
- "8",
- "9",
- "10",
- "11",
- "12",
- "13",
- "14",
- "15",
- "16",
- "17",
- "18",
- "19"
], - "tileMatrixSetID": "22,33",
- "tiled": true,
- "tilingScheme": "Geographic",
- "transparent": true
}, - "tileSchemeId": 0,
- "transId": 0,
- "transform": [
- 1,
- 0,
- 0,
- 0,
- 0,
- 1,
- 0,
- 0,
- 0,
- 0,
- 1,
- 0,
- 0,
- 0,
- 0,
- 1
], - "visualEffect": {
- "breath": {
- "color": "#000080",
- "duration": 1.5,
- "enable": false,
- "endHeight": 100,
- "startHeight": 0
}, - "gradient": {
- "enable": false,
- "endColor": "rgba(66,200,255,1)",
- "endHeight": 60,
- "startColor": "rgba(26,75,123,1)",
- "startHeight": 0
}, - "halo": {
- "color": "#299CFF",
- "duration": 2,
- "enable": false,
- "endHeight": 100,
- "mode": "up",
- "startHeight": 0,
- "thickness": 1,
- "topGlow": true
}
}, - "whiteModel": true
}发布新的模型集成服务
| projectId required | integer <int64> projectId |
modelIntegrateServicePublishReq
object 完整的配置信息 | |
| description | string 服务描述 |
| dirIds required | string 专题id-目录id,英文逗号隔开 |
| fileIds required | Array of integers <int64> [ items <int64 > ] BIM模型文件id集合[数组], 注意是fileVersionId |
| height | number 高度 |
| latitude | number 纬度 |
| longitude | number 经度 |
| name required | string 服务名称 |
object 文本框输入的配置信息 | |
| projectId required | integer <int64> 所属项目id |
| serviceTags | Array of strings 标签,json数组格式 |
| topRebuild | boolean 是否性能优化 |
{- "config": {
- "property1": "string",
- "property2": "string"
}, - "description": "abc",
- "dirIds": "3-1,2-3,4-7",
- "fileIds": [
- 123,
- 345,
- 567
], - "height": 10001.111211,
- "latitude": 35.111211,
- "longitude": 118.111211,
- "name": "模型集成服务",
- "originTranslateConfig": {
- "property1": "string",
- "property2": "string"
}, - "projectId": 123,
- "serviceTags": [
- "a",
- "b"
], - "topRebuild": true
}注册新的第三方数据服务接口
| categoryId required | integer <int64> categoryId |
| projectId required | integer <int64> projectId |
serviceRegisterReq
| coordSystem | string 本地服务-坐标系:默认值:CGCS2000 |
| description | string 服务描述 |
| dirIds | string 所属目录id,英文逗号隔开 |
| format | string 第三方服务注册-WMTS/WMS:切片格式(切片的格式,如:image/png、tiles);当imageryType=WMS,默认:image/png |
| layer | string 第三方服务注册-图层名称(WMTS请求的图层名,注意区分:和服务名没关系,服务名是具有实际业务含义) |
| layers | string 第三方服务注册-WMS请求的图层组 |
| maximumLevel | integer <int32> 第三方服务注册/本地服务-最大缩放层级 |
| minimumLevel | integer <int32> 第三方服务注册/本地服务-最小缩放层级 |
| name | string 服务名称 |
| offset | Array of numbers <double> [ items <double > ] 第三方服务3dtiles-偏移值:[X,Y,Z],保留3位小数 |
| oldDirIds | string 专题id-目录id,英文逗号隔开 |
| origin | Array of numbers <double> [ items <double > ] 第三方服务3dtiles-中心坐标:模型当前中心坐标,经度、维度、高度 [lat,lon,height],经纬度数值保留6位小数,高度保留2位小数 |
| projectId | integer <int64> 所属项目id |
object (Rectangle) 第三方服务注册-四至范围请求实体 | |
| rotation | Array of numbers <double> [ items <double > ] 第三方服务3dtiles-旋转值:[X,Y,Z],保留3位小数 |
| scale | number <float> 第三方服务3dtiles-缩放比例:默认:1 |
| serviceTags | Array of strings 标签,json数组格式 |
| serviceType | integer <int32> 第三方服务类型 |
| serviceUrl | string 服务URL |
| style | string 第三方服务注册-图层样式 默认:default |
| subdomains | string 第三方服务注册-子域名(负载均衡时使用,示例:["t1","t2","t3"]) |
object (TileInfo) 切片信息 | |
| tileMatrixLabels | string 第三方服务注册-WMTS请求的切片层级(["1","2","3"]) |
| tileMatrixSetID | string 第三方服务注册-切片矩阵集标识符 |
| tilingScheme | string 第三方服务注册-切片方案(默认为地理切片方案 Geographic ) |
| tkName | string 第三方服务注册-token名称 |
| tpServiceSource | integer <int32> 第三方服务来源 |
| tpServiceToken | string 服务token |
| tpServiceTokenPosition | string 服务鉴权方式 |
| transparent | boolean 第三方服务注册-WMS:是否透明、默认true、布尔;默认:true |
{- "coordSystem": 18,
- "description": "Archgis服务",
- "dirIds": "1-1,2-5,3-6",
- "format": "image/png",
- "layer": "道路红线",
- "layers": "cva,cvb",
- "maximumLevel": 18,
- "minimumLevel": 1,
- "name": "wms服务",
- "offset": 18,
- "oldDirIds": "3-1,2-3",
- "origin": 18,
- "projectId": 123,
- "rectangle": {
- "east": 98.9939,
- "north": 108.9939,
- "south": 108.3639,
- "west": 98.3639
}, - "rotation": 18,
- "scale": 18,
- "serviceTags": [
- "a",
- "b"
], - "serviceType": 1,
- "style": "default",
- "subdomains": [
- "t1",
- "t2",
- "t3"
], - "tileInfo": {
- "crs": "EPSG:4326",
- "format": "image/png",
- "layer": "WMTS测试",
- "layers": "WMTS测试",
- "srs": "EPSG:4326",
- "style": "default",
- "styles": "default",
- "tileMatrixLabels": [
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "7",
- "8",
- "9",
- "10",
- "11",
- "12",
- "13",
- "14",
- "15",
- "16",
- "17",
- "18",
- "19"
], - "tileMatrixSetID": "22,33",
- "tiled": true,
- "tilingScheme": "Geographic",
- "transparent": true
}, - "tileMatrixLabels": [
- "1",
- "2",
- "3"
], - "tileMatrixSetID": "切片矩阵集标识符",
- "tilingScheme": "Geographic",
- "tkName": "token",
- "tpServiceSource": 1,
- "tpServiceToken": 960400064,
- "tpServiceTokenPosition": "header",
- "transparent": true
}搜索数据服务接口
| categoryId required | integer <int64> categoryId |
| projectId required | integer <int64> projectId |
serviceSearchReq
| authorized | boolean 公开:false,私有:true |
| crs | string 坐标系 |
| dateEnd | string 发布日期-结束 |
| dateStart | string 发布日期-开始 |
| dirId | integer <int64> 当前目录id |
| includeSub | boolean 是否包含下级服务 |
| isCreate | boolean 是否创建时间降序 |
| isDesc | boolean 是否降序 |
| name | string 服务名称或者ID |
| onOffStatus | integer <int32> 上下架状态, 1上架 2下架 |
| pageIndex | integer <int32> 分页页码,默认1 |
| pageSize | integer <int32> 每页数据数,默认10 |
| projectId | integer <int64> 所属项目id |
| serviceStatus | integer <int32> 服务状态 |
| serviceType | integer <int32> 服务类型 |
| tpServiceSource | integer <int32> 服务来源 |
{- "authorized": false,
- "crs": "EPSG:4326",
- "dateEnd": "2021-01-14",
- "dateStart": "2021-01-14",
- "dirId": 123,
- "includeSub": true,
- "isCreate": true,
- "isDesc": true,
- "name": "abc",
- "onOffStatus": 1,
- "pageIndex": 1,
- "pageSize": 10,
- "projectId": 123,
- "serviceStatus": 1,
- "serviceType": 1,
- "tpServiceSource": 1
}更新本地服务的要素类(必须是同一文件不同的版本文件入库的要素类)
| categoryId required | ref 专题分类ID |
| id required | ref 服务ID |
| projectId required | ref 项目ID |
req
| featureClassId | integer <int64> 要素类id |
{- "featureClassId": 2197945560260649
}发布类服务(本地服务)编辑接口
| categoryId required | integer <int64> categoryId |
| id required | integer <int64> id |
| projectId required | integer <int64> projectId |
servicePublishReq
object (UVMap) uv纹理贴图效果(只针对矢量白模数据,该参数和dynamic、Style互斥) | |
| coordSystem | string 本地服务-坐标系:默认值:CGCS2000 |
| dataType | integer <int32> 数据类型:1 正射影像图; 2 数字高程模型;3 倾斜摄影数据;4 矢量数据;5 精细模型数据;6 BIM模型数据;7 点云数据;8 其他数据; |
| databagId | string minio:dir path and translate record databagId |
| description | string 服务描述 |
| dirIds | string 专题id-目录id,英文逗号隔开 |
object (DistanceDisplay) 按视距显示图层 | |
| epsg | string 空间参考值 |
| featureId | integer <int64> 要素类ID:如果是矢量数据,该字段为必填字段 |
| fileId | integer <int64> 模型文件id:发布转换类型的服务时,该字段必填, 注意使用file.fileVersionId |
| format | string 本地服务-格式:数据源为倾斜、BIM、精细模型为:b3dm 当数据源为点云:pnts |
| hasElevation | boolean 是否支持三维地形表达 |
| id | integer <int64> 服务ID |
| initCache | boolean 是否初始化缓存-mvt专属 |
object (Label) 注记(注记默认字体风格font family:宋体) | |
| lcStyleId | integer <int64> 样式id:矢量类型的服务支持设置样式,矢量转换的白模类型也支持设置样式(新增需求)、点云也支持样式设置 |
| maximumLevel | integer <int32> 第三方服务注册/本地服务-最大缩放层级 |
| minimumLevel | integer <int32> 第三方服务注册/本地服务-最小缩放层级 |
| modelIntegrateResultFileVersionId | string 模型集成服务替换的数据源 |
| name | string 服务名称 |
| offset | Array of numbers <double> [ items <double > ] 本地服务-偏移值:[X,Y,Z],保留3位小数 |
| oldDirIds | string 专题id-目录id,英文逗号隔开 |
| origin | Array of numbers <double> [ items <double > ] 本地服务-中心坐标:模型当前中心坐标,经度、维度、高度 [lat,lon,height],经纬度数值保留6位小数,高度保留2位小数 |
| pgTableName | string 矢量表名:如果是发布shp数据服务此字段必须传 |
| projectId required | integer <int64> 所属项目id |
object (Rectangle) 第三方服务注册-四至范围请求实体 | |
| rotation | Array of numbers <double> [ items <double > ] 本地服务-旋转值:[X,Y,Z],保留3位小数 |
| scale | number <float> 本地服务-缩放比例:默认:1 |
| serviceTags | Array of strings 标签,json数组格式 |
| serviceType required | integer <int32> 服务类型 |
| serviceUrl | string 服务地址 |
| shpTableAlias | string 矢量表别名 |
| subServiceIds | Array of integers <int64> [ items <int64 > ] 3dtiles服务数据集合[数组] |
| tileCached | boolean 是否开启wms切片缓存 |
| tileFormats | Array of strings 是否开启wms切片缓存 |
object (TileInfo) 切片信息 | |
| tileSchemeId | integer <int64> 切片方案id |
| transId | integer <int64> |
| transform | Array of numbers <double> [ items <double > ] 新的旋转矩阵, 如果有修改中心坐标|偏移|旋转|缩放, 则传入新的transform值, 16位数组 |
object (VisualEffect) 可视化特效(只针对本地服务发布的矢量白模数据) | |
| whiteModel | boolean 是否是白模 |
{- "UVMap": {
- "enable": false,
- "facade": "string",
- "top": "string"
}, - "coordSystem": 18,
- "dataType": 1,
- "databagId": "string",
- "description": "abc",
- "dirIds": "3-1,2-3,4-7",
- "distanceDisplay": {
- "enable": false,
- "maxDistance": 10000,
- "minDistance": 0
}, - "epsg": "EPSG:3857",
- "featureId": 12,
- "fileId": 123,
- "format": 18,
- "hasElevation": true,
- "id": 0,
- "initCache": true,
- "label": {
- "anchor": "center",
- "avoidance": {
- "enable": false,
- "threshold": 20
}, - "backgroundColor": "yellow",
- "bold": false,
- "color": "rgba(0,0,0,1)",
- "distanceDisplay": {
- "enable": false,
- "maxDistance": 10000,
- "minDistance": 0
}, - "enable": false,
- "family": "微软雅黑",
- "field": "type",
- "outlineColor": "red",
- "outlineWidth": 0,
- "showBackground": false,
- "size": 12,
- "style": 0,
- "xOffset": 0,
- "yOffset": 0
}, - "lcStyleId": 123,
- "maximumLevel": 18,
- "minimumLevel": 1,
- "modelIntegrateResultFileVersionId": 123123,
- "name": "wms服务",
- "offset": 18,
- "oldDirIds": "3-1,2-3",
- "origin": 18,
- "pgTableName": "pg_gyd",
- "projectId": 123,
- "rectangle": {
- "east": 98.9939,
- "north": 108.9939,
- "south": 108.3639,
- "west": 98.3639
}, - "rotation": 18,
- "scale": 18,
- "serviceTags": [
- "a",
- "b"
], - "serviceType": 1,
- "shpTableAlias": "河流",
- "subServiceIds": [
- 123,
- 345,
- 567
], - "tileCached": true,
- "tileFormats": [
- "string"
], - "tileInfo": {
- "crs": "EPSG:4326",
- "format": "image/png",
- "layer": "WMTS测试",
- "layers": "WMTS测试",
- "srs": "EPSG:4326",
- "style": "default",
- "styles": "default",
- "tileMatrixLabels": [
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "7",
- "8",
- "9",
- "10",
- "11",
- "12",
- "13",
- "14",
- "15",
- "16",
- "17",
- "18",
- "19"
], - "tileMatrixSetID": "22,33",
- "tiled": true,
- "tilingScheme": "Geographic",
- "transparent": true
}, - "tileSchemeId": 0,
- "transId": 0,
- "transform": [
- 1,
- 0,
- 0,
- 0,
- 0,
- 1,
- 0,
- 0,
- 0,
- 0,
- 1,
- 0,
- 0,
- 0,
- 0,
- 1
], - "visualEffect": {
- "breath": {
- "color": "#000080",
- "duration": 1.5,
- "enable": false,
- "endHeight": 100,
- "startHeight": 0
}, - "gradient": {
- "enable": false,
- "endColor": "rgba(66,200,255,1)",
- "endHeight": 60,
- "startColor": "rgba(26,75,123,1)",
- "startHeight": 0
}, - "halo": {
- "color": "#299CFF",
- "duration": 2,
- "enable": false,
- "endHeight": 100,
- "mode": "up",
- "startHeight": 0,
- "thickness": 1,
- "topGlow": true
}
}, - "whiteModel": true
}注册类服务(第三方服务)编辑接口
| categoryId required | integer <int64> categoryId |
| id required | integer <int64> id |
| projectId required | integer <int64> projectId |
serviceRegisterReq
| coordSystem | string 本地服务-坐标系:默认值:CGCS2000 |
| description | string 服务描述 |
| dirIds | string 所属目录id,英文逗号隔开 |
| format | string 第三方服务注册-WMTS/WMS:切片格式(切片的格式,如:image/png、tiles);当imageryType=WMS,默认:image/png |
| layer | string 第三方服务注册-图层名称(WMTS请求的图层名,注意区分:和服务名没关系,服务名是具有实际业务含义) |
| layers | string 第三方服务注册-WMS请求的图层组 |
| maximumLevel | integer <int32> 第三方服务注册/本地服务-最大缩放层级 |
| minimumLevel | integer <int32> 第三方服务注册/本地服务-最小缩放层级 |
| name | string 服务名称 |
| offset | Array of numbers <double> [ items <double > ] 第三方服务3dtiles-偏移值:[X,Y,Z],保留3位小数 |
| oldDirIds | string 专题id-目录id,英文逗号隔开 |
| origin | Array of numbers <double> [ items <double > ] 第三方服务3dtiles-中心坐标:模型当前中心坐标,经度、维度、高度 [lat,lon,height],经纬度数值保留6位小数,高度保留2位小数 |
| projectId | integer <int64> 所属项目id |
object (Rectangle) 第三方服务注册-四至范围请求实体 | |
| rotation | Array of numbers <double> [ items <double > ] 第三方服务3dtiles-旋转值:[X,Y,Z],保留3位小数 |
| scale | number <float> 第三方服务3dtiles-缩放比例:默认:1 |
| serviceTags | Array of strings 标签,json数组格式 |
| serviceType | integer <int32> 第三方服务类型 |
| serviceUrl | string 服务URL |
| style | string 第三方服务注册-图层样式 默认:default |
| subdomains | string 第三方服务注册-子域名(负载均衡时使用,示例:["t1","t2","t3"]) |
object (TileInfo) 切片信息 | |
| tileMatrixLabels | string 第三方服务注册-WMTS请求的切片层级(["1","2","3"]) |
| tileMatrixSetID | string 第三方服务注册-切片矩阵集标识符 |
| tilingScheme | string 第三方服务注册-切片方案(默认为地理切片方案 Geographic ) |
| tkName | string 第三方服务注册-token名称 |
| tpServiceSource | integer <int32> 第三方服务来源 |
| tpServiceToken | string 服务token |
| tpServiceTokenPosition | string 服务鉴权方式 |
| transparent | boolean 第三方服务注册-WMS:是否透明、默认true、布尔;默认:true |
{- "coordSystem": 18,
- "description": "Archgis服务",
- "dirIds": "1-1,2-5,3-6",
- "format": "image/png",
- "layer": "道路红线",
- "layers": "cva,cvb",
- "maximumLevel": 18,
- "minimumLevel": 1,
- "name": "wms服务",
- "offset": 18,
- "oldDirIds": "3-1,2-3",
- "origin": 18,
- "projectId": 123,
- "rectangle": {
- "east": 98.9939,
- "north": 108.9939,
- "south": 108.3639,
- "west": 98.3639
}, - "rotation": 18,
- "scale": 18,
- "serviceTags": [
- "a",
- "b"
], - "serviceType": 1,
- "style": "default",
- "subdomains": [
- "t1",
- "t2",
- "t3"
], - "tileInfo": {
- "crs": "EPSG:4326",
- "format": "image/png",
- "layer": "WMTS测试",
- "layers": "WMTS测试",
- "srs": "EPSG:4326",
- "style": "default",
- "styles": "default",
- "tileMatrixLabels": [
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "7",
- "8",
- "9",
- "10",
- "11",
- "12",
- "13",
- "14",
- "15",
- "16",
- "17",
- "18",
- "19"
], - "tileMatrixSetID": "22,33",
- "tiled": true,
- "tilingScheme": "Geographic",
- "transparent": true
}, - "tileMatrixLabels": [
- "1",
- "2",
- "3"
], - "tileMatrixSetID": "切片矩阵集标识符",
- "tilingScheme": "Geographic",
- "tkName": "token",
- "tpServiceSource": 1,
- "tpServiceToken": 960400064,
- "tpServiceTokenPosition": "header",
- "transparent": true
}全量数据服务查询接口
serviceSearchReq
| authorized | boolean 公开:false,私有:true |
| crs | string 坐标系 |
| dateEnd | string 发布日期-结束 |
| dateStart | string 发布日期-开始 |
| dirId | integer <int64> 当前目录id |
| includeSub | boolean 是否包含下级服务 |
| isCreate | boolean 是否创建时间降序 |
| isDesc | boolean 是否降序 |
| name | string 服务名称或者ID |
| onOffStatus | integer <int32> 上下架状态, 1上架 2下架 |
| pageIndex | integer <int32> 分页页码,默认1 |
| pageSize | integer <int32> 每页数据数,默认10 |
| projectId | integer <int64> 所属项目id |
| serviceStatus | integer <int32> 服务状态 |
| serviceType | integer <int32> 服务类型 |
| tpServiceSource | integer <int32> 服务来源 |
{- "authorized": false,
- "crs": "EPSG:4326",
- "dateEnd": "2021-01-14",
- "dateStart": "2021-01-14",
- "dirId": 123,
- "includeSub": true,
- "isCreate": true,
- "isDesc": true,
- "name": "abc",
- "onOffStatus": 1,
- "pageIndex": 1,
- "pageSize": 10,
- "projectId": 123,
- "serviceStatus": 1,
- "serviceType": 1,
- "tpServiceSource": 1
}支持通过指定范围区域,查询相应的图纸元素(点、线、面)
| projectId required | integer <int64> 项目ID |
queryReq
| featureType | integer <int32> 要素类型(点、线、面) |
| geometry | object 空间范围(geojson) |
| serviceId | integer <int64> 服务ID |
{- "featureType": "1:点, 2:线, 3:面",
- "geometry": { },
- "serviceId": 0
}shp文件入库接口-目前只支持新增入库和增量入库
| projectId required | ref 项目ID |
request
| callBackUrl | string 入库成功后的回调地址, 会将数据post到指定地址 |
| datasetId required | integer <int64> 数据集ID, 应该是项目上指定的集合id |
| featureAlias | string 要素类别名 |
| featureId | integer <int64> 要素类ID, 增量入库时传入 ,传入该字段,要素类名称和alias都不能传入 |
| featureName required | string 要素类名称, 不可为空 |
| fileId required | string 文件id |
| type required | string 新建入库: new、增量入库: incremental |
{- "datasetId": 14,
- "featureAlias": "控规",
- "featureId": 150,
- "featureName": "控规-面0426",
- "fileId": "string",
- "type": "new、incremental"
}要素类原始数据列表-数据批量更新
| projectId required | ref 项目ID |
| featureId required | ref 要素类ID |
mapList
| property name* additional property | object |
[- {
- "property1": { },
- "property2": { }
}
]要素类基本信息分页列表查询接口
| projectId required | ref 项目ID |
| containsAlias | boolean 查询类型是否包含名称和别名,如果为true名称和别名任意一个匹配就会有结果,默认为false |
| featureSetId | ref 要素集ID |
| featureType | ref 要素类型 |
| maxSize | ref 最大要素个数过滤 |
| name | string 要素类名称或者别名(包含) |
| pageIndex | ref 页码 |
| pageSize | ref 每页数量 |
| publishStatus | ref 发布状态 |
| x-tenant-id required | integer <int64> x-tenant-id |
| x-user-id required | string x-user-id |
更新要素类接口
| featureId required | ref 要素ID |
| projectId required | ref 项目ID |
featureClassReq
| alias | string 要素类别名 |
object 要素类配置 | |
| id | integer <int64> 要素类ID |
| name | string 要素类名称 |
{- "alias": "BHXCZTGH_KFBJ",
- "config": {
- "geomType": "MultiLineString",
- "attributes": [
- "OBJECTID",
- "LEFT_FID",
- "RIGHT_FID",
- "TYPE",
- "Shape_Leng"
]
}, - "id": 15565656,
- "name": "BHXCZTGH_KFBJ"
}要素查询接口
| projectId required | integer <int64> 项目ID |
queryReq
| bufferDistance | number 缓冲区距离(点就是半径,线、面就是距离),默认为0,单位:米 |
| bufferRule | string 缓冲区规则,指定缓冲区构造的形式,可参见:http://postgis.net/docs/ST_Buffer.html |
| featureClassId | integer <int64> 要素类id |
| geometry | string 查询的几何,即:输入的空间查询范围(jsonString类型) |
| limit | integer <int32> limit, 如果不填写(可为空)则是所有(慎用) |
| offset | integer <int32> offset, 下标从0开始, 如果是0可不填 |
| orderBy | string 排序字段和方式, 例如 fid ASC |
| outFields | Array of strings 要查询的字段, 为空则查询所有字段, 如果指定字段 |
| spatialRelationShip | string Enum: "contains" "intersects" "within" "overlaps" "crosses" "disjoint" "touches" 枚举,空间关系 |
| where | string 属性查询,条件语句 |
{- "bufferDistance": 1.2,
- "bufferRule": "join=bevel",
- "featureClassId": 0,
- "geometry": "string",
- "limit": 10,
- "offset": 0,
- "orderBy": "id ASC",
- "outFields": [
- "string"
], - "spatialRelationShip": "contains",
- "where": "属性查询,条件语句[postgres语法],如:\"name\" = 'luo' and \"AGE\" >30 '"
}分页要素查询接口
| projectId required | integer <int64> 项目ID |
queryPagerReq
| bufferDistance | number 缓冲区距离(点就是半径,线、面就是距离),默认为0,单位:米 |
| bufferRule | string 缓冲区规则,指定缓冲区构造的形式,可参见:http://postgis.net/docs/ST_Buffer.html |
| featureClassId | integer <int64> 要素类id |
| geometry | string 查询的几何,即:输入的空间查询范围(jsonString类型) |
| orderBy | string 排序字段和方式, 例如 fid ASC |
| outFields | Array of strings 要查询的字段, 为空则查询所有字段 |
| pageIndex | integer <int32> 分页页码,默认1 |
| pageSize | integer <int32> 每页数据数,默认10 |
| spatialRelationShip | string Enum: "contains" "intersects" "within" "overlaps" "crosses" "disjoint" "touches" 枚举,空间关系 |
| where | string 属性查询,条件语句 |
{- "bufferDistance": 1.2,
- "bufferRule": "join=bevel",
- "featureClassId": 0,
- "geometry": "string",
- "orderBy": "id ASC",
- "outFields": [
- "string"
], - "pageIndex": 1,
- "pageSize": 10,
- "spatialRelationShip": "contains",
- "where": "属性查询,条件语句[postgres语法],如:\"name\" = 'luo' and \"AGE\" >30 '"
}上传文件接口
| projectId required | ref 项目ID |
| autoPublished | boolean 是否自动发布 |
| crs | string Example: crs=EPSG:4490 坐标系 |
| hasMetaFile | boolean 是否有元数据文件, 针对影像成果数据 |
| name | string Example: name=2197945560260640 文件名称 |
| parentId | string Example: parentId=2229541555036320 父文件夹ID |
| resultData | boolean 是否成果数据 |
| serviceType | ref Example: serviceType=12 切片类型, 针对影像成果数据(7-XYZ, 13-TMS) |
| bbox | string 切片范围, json字符串, 针对影像成果数据 |
| file | ref 文件 |
中间取消上传,建议调用取消请求
| projectId required | ref 项目ID |
abortReuqest
| id | string 初始化分片上传时返回的 id |
| parentId | string 上传的文件夹 id,(parentId 和 parentPath必须二选一) |
| parentPath | string 上传的文件夹路径,(parentId 和 parentPath 必须二选一) |
{- "id": "string",
- "parentId": "string",
- "parentPath": "string"
}分片上传成功请求
| projectId required | ref 项目ID |
| resultData | boolean Default: false 是否是成果数据 |
| autoPublished | boolean autoPublished |
| crs | string Default: "EPSG:4490" crs |
completeRequest
| autoPublished | boolean |
| bbox | string |
| crs | string |
| hasMetaFile | boolean |
| id | string 初始化分片上传时返回的 id |
| parentId | string 上传的文件夹 id,(parentId 和 parentPath必须二选一) |
| parentPath | string 上传的文件夹路径,(parentId 和 parentPath 必须二选一) |
| resultData | boolean |
| serviceType | integer <int32> |
{- "autoPublished": true,
- "bbox": "string",
- "crs": "string",
- "hasMetaFile": true,
- "id": "string",
- "parentId": "string",
- "parentPath": "string",
- "resultData": true,
- "serviceType": 0
}创建分片上传文件口,fileMerge模式
| projectId required | ref 项目ID |
createRequest
| length | integer <int64> 文件大小 |
| name | string 文件名 |
| parentId | string 上传的文件夹 id,(parentId 和 parentPath必须二选一) |
| parentPath | string 上传的文件夹路径,(parentId 和 parentPath 必须二选一) |
| sourceId | string 源数据 fileId, 来自于业务方. 可以不传递. |
{- "length": 0,
- "name": "string",
- "parentId": "string",
- "parentPath": "string",
- "sourceId": "string"
}获取分片上传的指定片的put请求url
| projectId required | ref 项目ID |
urlRequest
| expiredTime | integer <int32> 外链的有效期, 单位是秒. 默认 3600s. 用户可以采用默认值 |
| id | string 初始化分片上传时返回的 id |
| partNum | integer <int32> 表示第几片 |
| type | string Enum: "PRIVATE" "PUBLIC" "INTERNAL" 外链类型, 默认 PUBLIC. 用户可以采用默认值 |
{- "expiredTime": 0,
- "id": "string",
- "partNum": 0,
- "type": "PRIVATE"
}模糊搜索指定目录下的资源(包含子目录,只返回叶子结点)
| projectId required | ref 项目ID |
fileSearchReq
| checkVersionStatus | boolean checkVersionStatus |
| dbStatus | string Enum: "error" "success" "prepare" "processing" "failed" 矢量数据入库状态 |
| folderFileId | string 所属文件夹Id, 可为空, 为空则搜索所有当前项目的数据 |
| name | string 文件名称 |
| pageIndex | integer <int32> 分页页码,默认1 |
| pageSize | integer <int32> 每页数据数,默认10 |
| projectId required | integer <int64> 所属项目id |
| publishStatus | integer <int32> 发布状态 |
| serviceType | integer <int32> 服务类型 |
| translateStatus | string Enum: "success" "prepare" "processing" "failed" 文件转换状态 |
| uploadTimeFrom | string <date-time> 上传时间时间戳(始, 13位, 带毫秒) |
| uploadTimeTo | string <date-time> 上传时间时间戳(终, 13位, 带毫秒) |
{- "checkVersionStatus": true,
- "dbStatus": "success",
- "folderFileId": 123,
- "name": "影像",
- "pageIndex": 1,
- "pageSize": 10,
- "projectId": 123,
- "publishStatus": 1,
- "serviceType": 1,
- "translateStatus": "success",
- "uploadTimeFrom": 1648447566000,
- "uploadTimeTo": 1648447590000
}上传文件接口
| projectId required | ref 项目ID |
| autoPublished | boolean 是否自动发布 |
| crs | string Example: crs=EPSG:4490 坐标系 |
| hasMetaFile | boolean 是否有元数据文件, 针对影像成果数据 |
| name | string Example: name=2197945560260640 文件名称 |
| parentId | string Example: parentId=2229541555036320 父文件夹ID |
| resultData | boolean 是否成果数据 |
| serviceType | ref Example: serviceType=12 切片类型, 针对影像成果数据(7-XYZ, 13-TMS) |
| bbox | string 切片范围, json字符串, 针对影像成果数据 |
| file | ref 文件 |
文件所有版本
| fileId required | string Example: 2229541555036320 主文件ID |
| projectId required | ref 项目ID |
| serviceType | string Example: serviceType=1 服务类型 |
| translateStatus | string Default: "success" Enum: "success" "prepare" "processing" "failed" Example: translateStatus=success 文件转换状态 |
上传版本文件
| fileId required | string Example: 2229541555036320 主文件ID |
| projectId required | ref 项目ID |
| name | string Example: name=1212.fbx 文件名称 |
| resultData | boolean 是否成果数据,默认false |
| autoPublished | boolean autoPublished |
| crs | string Default: "EPSG:4490" crs |
| file | ref 文件 |
查询文件夹下文件列表接口
| fileId required | string 文件夹ID |
| projectId required | ref 项目ID |
| checkVersionStatus | string 是否检测历史版本文件的转换状态.默认不检测,[只支持translateStatus=success并且指定服务类型的时候]如果检测的话, 如果历史版本有符合转换状态的信息,也会将当前最新版本文件返回 |
| name | string 文件名称(包含) |
| pageIndex | integer <int32> Example: pageIndex=1 分页页码,默认1 |
| pageSize | integer <int32> Example: pageSize=10 每页数据数,默认10 |
| serviceType | string Example: serviceType=1 服务类型 |
| translateStatus | string Default: "success" Enum: "success" "prepare" "processing" "failed" Example: translateStatus=success 文件转换状态 |
| uploadTimeFrom | ref 上传时间(开始) |
| uploadTimeTo | ref 上传时间(结束) |
查询文件夹下文件列表接口
| fileId required | string 文件ID |
| projectId required | ref 项目ID |
| checkVersionStatus | string 是否检测历史版本文件的转换状态.默认不检测,如果检测的话, 如果历史版本有符合转换状态的信息,也会将当前最新版本文件返回 |
| name | string 文件名称(包含) |
| pageIndex | ref Default: "1" 页码 |
| pageSize | ref Default: "10" 每页数量 |
| serviceType | string Example: serviceType=1 服务类型 |
| translateStatus | string Default: "success" Enum: "success" "prepare" "processing" "failed" Example: translateStatus=success 文件转换状态 |
| uploadTimeFrom | ref 上传时间(开始) |
| uploadTimeTo | ref 上传时间(结束) |
查询文件夹下文件列表接口, 基本信息不包含文件夹路径, bim分析项, 空间编码等信息
| fileId required | string 文件夹ID |
| projectId required | ref 项目ID |
| checkVersionStatus | string 是否检测历史版本文件的转换状态.默认不检测,[只支持translateStatus=success并且指定服务类型的时候]如果检测的话, 如果历史版本有符合转换状态的信息,也会将当前最新版本文件返回 |
| name | string 文件名称(包含) |
| pageIndex | integer <int32> Example: pageIndex=1 分页页码,默认1 |
| pageSize | integer <int32> Example: pageSize=10 每页数据数,默认10 |
| serviceType | string Example: serviceType=1 服务类型 |
| translateStatus | string Default: "success" Enum: "success" "prepare" "processing" "failed" Example: translateStatus=success 文件转换状态 |
| uploadTimeFrom | ref 上传时间(开始) |
| uploadTimeTo | ref 上传时间(结束) |
查询文件夹下文件列表接口, 基本信息不包含文件夹路径, bim分析项, 空间编码等信息
| fileId required | string 文件ID |
| projectId required | ref 项目ID |
| checkVersionStatus | string 是否检测历史版本文件的转换状态.默认不检测,如果检测的话, 如果历史版本有符合转换状态的信息,也会将当前最新版本文件返回 |
| name | string 文件名称(包含) |
| pageIndex | ref Default: "1" 页码 |
| pageSize | ref Default: "10" 每页数量 |
| serviceType | string Example: serviceType=1 服务类型 |
| translateStatus | string Default: "success" Enum: "success" "prepare" "processing" "failed" Example: translateStatus=success 文件转换状态 |
| uploadTimeFrom | ref 上传时间(开始) |
| uploadTimeTo | ref 上传时间(结束) |
批量发起净高分析
| projectId required | ref 项目ID |
reqList
| analysisConfigId required | integer <int64> 分析配置ID |
| fileVersionId required | string 文件ID |
[- {
- "analysisConfigId": 0,
- "fileVersionId": "string"
}
]查询项目下的所有场景接口
| projectId required | ref 项目ID |
| createTimeFrom | ref 创建时间(开始) |
| createTimeTo | ref 创建时间(结束) |
| isCreate | string Default: "true" 是否按创建时间排序,false就按更新时间 |
| isDesc | string Default: "true" 是否按降序排序 |
| name | string 场景名称(包含) |
| sceneSubjectId | ref 场景主题ID |
| x-tenant-id required | integer <int64> x-tenant-id |
| x-user-id required | string x-user-id |
通过服务ID获取图层属性接口
| projectId required | ref 项目ID |
reqList
| dataServiceId | integer <int64> 服务ID;group true |
| folderName | string group时为true,该字段不能为空 |
| group | boolean 是否是获取组信息,默认false;group时为true |
| layerType | integer <int32> 图层类型 |
[- {
- "dataServiceId": 2419001822200000,
- "folderName": "文件夹1",
- "group": false,
- "layerType": 3
}
]跨场景主题移动场景接口
| projectId required | ref 项目ID |
| sceneId required | ref 场景ID |
sceneReq
| sceneSubjectId required | integer <int64> 场景主题ID,不传入后台使用项目默认场景主题ID |
{- "sceneSubjectId": 2410285784358944
}查询项目下的所有场景接口
| projectId required | ref 项目ID |
| createTimeFrom | ref 创建时间(开始) |
| createTimeTo | ref 创建时间(结束) |
| isCreate | string Default: "true" 是否按创建时间排序,false就按更新时间 |
| isDesc | string Default: "true" 是否按降序排序 |
| name | string 场景名称(包含) |
| pageIndex | string 当前页 |
| pageSize | string 每页数量 |
| sceneSubjectId | ref 场景主题ID |
| x-tenant-id required | integer <int64> x-tenant-id |
| x-user-id required | string x-user-id |
通过服务ID获取图层属性接口
| projectId required | ref 项目ID |
reqList
| dataServiceId | integer <int64> 服务ID;group true |
| folderName | string group时为true,该字段不能为空 |
| group | boolean 是否是获取组信息,默认false;group时为true |
[- {
- "dataServiceId": 2419001822200000,
- "folderName": "文件夹1",
- "group": false
}
]查询场景详情(场景信息和配置详情)接口
| projectId required | ref 项目ID |
| sceneId required | ref 场景ID |
| from | boolean Default: false 获取详情接口调用来源:枚举值: edit-编辑 get-预览 share-共享 simple-只是获取基础信息(不包含config),edit时需要对整个场景做一个缓存,用于取消时还原场景配置;share时需要传入viewToken |
| viewToken | ref 分享获取场景要加viewToken:场景查看校验用的token |
更新场景(场景保存和场景发布调用,通过partSave区分来源,true代表是场景图层面板的局部保存;false代表场景发布接口,默认false)
| projectId required | ref 项目ID |
| sceneId required | ref 场景ID |
sceneReq
object (SceneConfig) 场景参数 | |
| description | string 项目名称 |
| layersSupportQuery | string 场景支持查询的服务ID,用逗号分割;新增和更新均为全量设置,如果传入为空''、或者null,可移执行,代表删除 |
| name | string 场景名称 |
| partSave | boolean true代表是场景图层面板的局部保存;false代表场景发布接口,默认false |
| sceneSubjectId required | integer <int64> 场景主题ID,不传入不需要更新 |
| supportQuery | boolean true代表是设置、修改或者删除支持查询的服务ID类型的更新;false代表普通场景更新接口,默认false |
{- "config": {
- "defaultView": {
- "flyAnimation": {
- "delayTime": 0,
- "enable": true,
- "flyTime": 2
}, - "heading": 0,
- "height": 500,
- "lat": 39.765888,
- "lon": 116.89877,
- "maxSightDistance": 50000000,
- "minSightDistance": 1,
- "pitch": 1,
- "roll": 2
}, - "globalSettings": {
- "HDR": false,
- "ambientOcclusion": {
- "enable": false,
- "intensity": 1
}, - "atmosphere": false,
- "bloom": {
- "brightness": -0.3,
- "contrast": 128,
- "delta": 1,
- "enable": true,
- "sigma": 5,
- "stepSize": 3.78
}, - "colorDisplay": {
- "brightness": 116.89877,
- "contrast": 0,
- "gamma": 1,
- "hue": 500,
- "saturation": 39.765888
}, - "colorMode": "string",
- "cutRegion": "\"cutRegion\": [\n {\n \"name\": \"裁剪1\",\n \"region\": [\n {\n \"lon\": 1.0,\n \"lat\": 2.0,\n \"height\": 3.0\n },\n {\n \"lon\": 1.0,\n \"lat\": 2.0,\n \"height\": 3.0\n },\n {\n \"lon\": 1.0,\n \"lat\": 2.0,\n \"height\": 3.0\n }\n ]\n }\n ]",
- "defaultTerrain": false,
- "depthTest": false,
- "dynamicVolumetricSky": "SUMMER",
- "environmentReflection": "SKY",
- "fov": 90,
- "globalLabel": false,
- "hardwareAA": false,
- "lightColor": "string",
- "lightIntensity": 0.1,
- "lightingTime": 660,
- "logDepthBuffer": false,
- "moon": false,
- "realisticRendering": {
- "bloom": {
- "enable": true,
- "intensity": 0.1
}, - "enable": true,
- "exponentialHeightFog": {
- "density": 0.1,
- "enable": true,
- "height": 0.1
}, - "origin": [
- 0.1
], - "skyAtmosphere": {
- "atmosphereHeight": 0.1,
- "enable": true,
- "mieAbsorptionScale": 0.1,
- "mieScatteringScale": 0.1,
- "rayleighExponentialDistribution": 0,
- "rayleighScattering": "string"
}, - "skylight": {
- "color": "string",
- "enable": true,
- "intensity": 0.1
}, - "volumetricClouds": {
- "bottomRadiusKm": 0.1,
- "cloudColor": "string",
- "cloudCoverage": 0.1,
- "cloudDirection": 0.1,
- "cloudShadowIntensity": 0.1,
- "cloudShadowSoftness": 0.1,
- "cloudSpeed": 0.1,
- "enable": true,
- "heightKm": 0.1
}
}, - "shadowEffect": {
- "color": "string",
- "intensity": 0.1,
- "shadows": true,
- "softShadows": false,
- "terrainShadows": {
- "castShadow": true,
- "receiveShadow": true
}, - "visualRange": 0
}, - "skybox": "BLUESKY",
- "storage": 16,
- "waterEffect": {
- "alpha": 1,
- "amplitude": 0.1,
- "animationSpeed": 0.1,
- "color": false,
- "frequency": 0.1,
- "mixFactor": "0.5,阈值范围:0-1"
}
}, - "mapLayers": [
- { }
], - "toolConfig": {
- "attribute": false,
- "bimTool": false,
- "fullScreen": false,
- "heightLimit": false,
- "home": true,
- "layerTree": true,
- "mapLegend": false,
- "measure": false,
- "modelCutting": false,
- "sceneRoaming": false,
- "skyline": false,
- "underGround": false,
- "viewShed": false,
- "viewSwitch": false,
- "visibility": false
}
}, - "description": "活动场景",
- "layersSupportQuery": "2415730200543424,2418965879554240",
- "name": "场景一",
- "partSave": false,
- "sceneSubjectId": 2410285784358944,
- "supportQuery": false
}关键字查询数据集列表
| projectId required | ref 项目ID |
| datasetId | string 数据集ID |
| keyword | string 搜索关键字 |
| pageIndex | ref 分页页码 |
| pageSize | ref 每页数量 |
| publishStatues | ref 发布状态 |
| type | string Default: "name" 查询类型,1.默认name (关键字会在name字段中查询);2.alias(关键字会在alias别名字段中查询); 3.either关键字会在name和alias中查询,有一个命中就会返回; 4.fullMatch 名称全匹配查询 |
| serviceType | integer <int32> serviceType |
创建新的工程项目接口
| projectId required | ref 项目Id |
srcBimProjectReq
| id | integer <int64> id |
Array of objects (SrcBimLabelDataReq) 标签值列表 | |
| name | string 工程项目名称 |
| parentId | integer <int64> bim数据目录在bdfs中的fileId |
| projectAddr | string 工程项目地址 |
| projectCode | string 工程项目统一代码 |
| projectId | integer <int64> 所属数管cim项目id |
| projectTypeCode | string 工程项目类型编码 |
{- "id": 123,
- "labelDataList": [
- {
- "entityId": 123,
- "entityType": 1,
- "enumTableId": "a",
- "labelId": 123,
- "value": "a1"
}
], - "name": "某项目",
- "parentId": 123,
- "projectAddr": "a",
- "projectCode": "a1",
- "projectId": 123,
- "projectTypeCode": "a1"
}创建新的工程单元接口
| bpId required | string 工程项目fileId |
| projectId required | ref cim项目Id |
srcBimUnitReq
| bimProjectId | integer <int64> 所属bim类源数据工程项目id |
| id | integer <int64> id |
Array of objects (SrcBimLabelDataReq) 标签值列表 | |
| name | string 工程单元名称 |
| projectId | integer <int64> 所属数管cim项目id |
| unitCode | string 工程单元编码 |
| unitStructTypeCode | string 工程单元结构类型编码 |
{- "bimProjectId": 123,
- "id": 123,
- "labelDataList": [
- {
- "entityId": 123,
- "entityType": 1,
- "enumTableId": "a",
- "labelId": 123,
- "value": "a1"
}
], - "name": "某单元",
- "projectId": 123,
- "unitCode": "a1",
- "unitStructTypeCode": "a1"
}样式列表查询接口
| projectId required | ref 项目Id |
| isCreate | string Default: "true" 是否按创建时间排序,false就按更新时间 |
| isDesc | string Default: "true" 是否按降序排序 |
| name | string 样式名称 |
| pageIndex | ref 页码 |
| pageSize | ref 每页数量 |
| styleSource | ref 样式来源 |
| styleType | ref 样式类型 |
| x-tenant-id required | integer <int64> x-tenant-id |
| x-user-id required | string x-user-id |
添加样式接口
| projectId required | ref 项目Id |
req
| content | string 样式具体内容[json字符串] |
| description | string 样式描述 |
| exConfig | string 样式额外配置[json字符串] |
object (SpriteReq) | |
| name | string 样式名称 |
| projectId | integer <int64> 所属项目id |
{- "content": "string",
- "description": "专题图样式",
- "exConfig": "string",
- "generateSprite": {
- "isGenerate": true,
- "sprites": [
- {
- "height": 0,
- "symbolName": "string",
- "symbolUrl": "string",
- "width": 0
}
]
}, - "name": "特殊点",
- "projectId": 123
}更新样式接口
| projectId required | ref 项目Id |
| styleId required | ref 样式Id |
req
| content | string 样式具体内容[json字符串] |
| description | string 样式描述 |
| exConfig | string 样式额外配置[json字符串] |
object (SpriteReq) | |
| name | string 样式名称 |
| projectId | integer <int64> 所属项目id |
{- "content": "string",
- "description": "专题图样式",
- "exConfig": "string",
- "generateSprite": {
- "isGenerate": true,
- "sprites": [
- {
- "height": 0,
- "symbolName": "string",
- "symbolUrl": "string",
- "width": 0
}
]
}, - "name": "特殊点",
- "projectId": 123
}坐标转换接口
req
| coordinates required | Array of numbers[ items ] 坐标点集合 |
| sourceCRS required | string 源坐标系 |
| targetCRS required | string 目标坐标系 |
{- "coordinates": [
- [
- 0
]
], - "sourceCRS": "string",
- "targetCRS": "string"
}请求体参见模型 OpenApiTranslateReq(含 sources、config、callback 等字段)
| projectId required | ref 项目ID |
translateReq
| autoPublished | boolean 是否自动发布 |
| callback | string 回调地址 |
object 完整的配置信息 | |
object 文本框输入的配置信息 | |
| serviceType | integer <int32> 服务类型 |
Array of objects (TranslateSourceReq) 源文件信息 |
{- "autoPublished": true,
- "config": {
- "property1": "string",
- "property2": "string"
}, - "originTranslateConfig": {
- "property1": "string",
- "property2": "string"
}, - "serviceType": 1,
- "sources": [
- {
- "compressed": false,
- "fileId": 2197945560260640,
- "fileVersionId": 2,
- "folder": false,
- "rootName": "root"
}
]
}