GISBox(GIS 工具箱)支持使用 API 接口,打开 GISBox 软件后,我们可以在左侧工具栏中点击“设置”栏目,选择“集成开发”,然后点击右上角的“创建密钥”按钮添加 API 接口,其中“密钥ID”和“安全密钥”作为 Auth 参数,用于验证用户身份或应用程序的合法性,点击查看相应教程 →Auth 参数。

“密钥名称”指的是用于传递特定信息的键名,它通常出现在请求参数、HTTP 头部或响应数据中,当我们新增 key 时需要填写相应的“密钥名称”,如下图所示:

在右侧的操作中,我们可以更改“密钥名称”,如下图所示:

【温馨提示】GISBox 的 API 功能需要购买“企业版”套餐才能使用,如需使用,请点击“升级”按钮购买套餐。

所有 API 接口请求的基础 URL 为:
主账号SaaS访问地址 + /api/v1
“主账号 SaaS 访问地址”可以在 GISBox 软件的“设置”→“域名端口”中进行查看,如下图所示:

例如,假设主账号 SaaS 访问地址为:
http://192.168.31.122:42225
那么 API 接口的前置 URL 即为:
http://192.168.31.122:42225/api/v1
为确保接口访问的安全性,每个接口请求都需要拼接以下参数进行校验,包括“密钥ID”和“安全密钥(secret)”:
| 名称 | 类型 | 必选 | 说明 |
|---|---|---|---|
| key | string | 是 | 生成的 key |
| timestamp | string | 是 | 当前时间戳(毫秒) |
| sign | string | 是 | 使用md5 对(key、secret、timestamp)拼接起来的字符串进行加密生成字符串(32位,不区分大小写) |
示例如下:
http://192.168.31.122:42225/api/v1/task/list?key=06150cad-131c-4a13-88cf-90b7c4e76056×tamp=1736835697953&sign=1D1802A6A4BB9C8A603F696E1E0E3644
API 接口的响应数据遵循统一的格式,包含以下字段:
| 名称 | 类型 | 必选 | 说明 |
|---|---|---|---|
| success | boolean | 是 | 是否成功 |
| msg | string | 是 | 成功提示或错误描述 |
| data | object | 否 | 响应核心数据 |
task/<id>/info| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| id | string | 是 | 任务 id |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| id | string | 是 | 任务 id |
| name | string | 是 | 任务名 |
| status | string | 是 | 任务状态(“pending”、“running”、“finished”、“failed”、“canceled”) |
| type | string | 是 | 任务类型(枚举值,详见创建任务接口) |
| inputPath | string | 是 | 输入路径 |
| outputPath | string | 是 | 输出路径 |
| settings | object | 是 | 任务设置 |
| startTime | integer | 开始时间戳 | |
| progress | float | 当前进度(%) | |
| spentTime | integer | 已花费的时间(ms) | |
| remainTime | integer | 预估剩余时间(ms) | |
| endTime | integer | 结束时间戳 |
{
"success": true,
"data": {
"id": "ngcxb8xzf41x",
"name": "我的倾斜模型",
"status": "failed",
"type": "GeneralModelSlicing",
"inputPath": "C:\\Users\\admin\\AppData\\Local\\Temp\\6349b52ac052f1100a0099f56ae1360d",
"outputPath": "C:\\Users\\admin\\Desktop\\rubbish\\大场景",
"settings": {
"fileRange": [2, 20],
"sceneTree": true,
"is3DTiles1_1": true,
"enableLOD": true,
"textureCompressionFormat": "webp",
"vertexCompress": false,
"vertexCompressionLevel": 5,
"x": 120.14757537841797,
"y": 30.274856567382812,
"z": 0,
"name": "西湖区建筑模型",
"imageRatio": 0.5
},
"startTime": 1736838996442,
"endTime": 1736841982291
},
"msg": "请求成功"
}task/list| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| page | integer | 页码 | |
| pageSize | integer | 每页条数 | |
| status | enum | 任务状态(“pending”、“running”、“finished”、“failed”、“canceled”) |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| taskList | array | 是 | 任务列表 |
| totalCount | integer | 是 | 任务总数 |
{
"success": true,
"data": {
taskList: [
{
"id": "ngcxb8xzf41x",
"name": "我的倾斜模型",
"status": "running",
"type": "GeneralModelSlicing",
"inputPath": "C:\\Users\\admin\\AppData\\Local\\Temp\\6349b52ac052f1100a0099f56ae1360d",
"outputPath": "C:\\Users\\admin\\Desktop\\rubbish\\大场景",
"settings": {
"fileRange": [
2,
20
],
"sceneTree": true,
"is3DTiles1_1": true,
"enableLOD": true,
"textureCompressionFormat": "webp",
"vertexCompress": false,
"vertexCompressionLevel": 5,
"x": 120.14757537841797,
"y": 30.274856567382812,
"z": 0,
"name": "西湖区建筑模型",
"imageRatio": 0.5
},
"startTime": 1736838996442,
"progress": 0,
"spentTime": 0,
"remainTime": 0
},
{
"id": "xoeqj7jrw9fl",
"name": "我的倾斜模型",
"status": "finished",
"type": "GeneralModelSlicing",
"inputPath": "C:\\Users\\admin\\AppData\\Local\\Temp\\c8f9e1d5c211b16dc34c5181922dc911",
"outputPath": "C:\\Users\\admin\\Desktop\\rubbish\\新建文件夹 (2)",
"settings": {
"fileRange": [
2,
20
],
"sceneTree": true,
"is3DTiles1_1": true,
"enableLOD": true,
"textureCompressionFormat": "webp",
"vertexCompress": false,
"vertexCompressionLevel": 5,
"x": 120.19058749999999,
"y": 30.280553849999997,
"z": 0,
"name": "上城区建筑模型",
"imageRatio": 0.5
},
"startTime": 1736838648314,
"endTime": 1736838670124
},
],
totalCount: 100
}
"msg": "请求成功"
}task/createBody 类型:
application/json| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| options | object | 是 | |
| type | string | 是 | 任务类型,枚举值如下: "ImageSlicing" "TerrainSlicing" "TiltModelSlicing" "GeneralModelSlicing" "RvtModelSlicing" "Tiles2OsgbSlicing" "PointCloudSlicing" "GaussianSplattingSlicing" "I3S2OSGB" "S3m2OsgbSlicing" "Hash2Compact" "Compact2Hash" "IFC23DTiles" "Osgb2GlbSlicing" "GaussianSplattingPly2Glb3dTiles" "TilesOptimize" |
| name | string | 是 | 任务名称 |
| inputPath | string | 是 | 输入路径 |
| outputPath | string | 是 | 输出路径 |
| autoStart | boolean | 是否立即开始任务(默认为 true) | |
| isPublish | boolean | 是否在处理完成后自动发布为分发服务(默认为false) | |
| isCompact | boolean | 是否输出紧凑格式(.gbp文件) | |
| settings | object | 各类型任务的特有设置项(不同类型的settings各不相同,下面会介绍) |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| tilesize | integer | 默认为256 | |
| minzoom | integer | 最小级别(默认为0) | |
| maxzoom | integer | 最大级别(为空时自动计算) | |
| service | string | 是 | 服务类型("TMS" | "WMTS") |
| toSrs | integer | 是 | 投影参数(3857、4326) |
| background | string | 背景透明(“auto”、“255,255,255”) | |
| colorStretching | object | 颜色拉伸配置 | |
| type | string | 颜色拉伸类型("deviationAndZoom"-偏移缩放,"theMostValuable"-最值,"percent"-百分比) | |
| deviation | number | 偏移量(偏移缩放时填写,默认为0) | |
| zoom | number | 缩放系数(偏移缩放时填写,默认为0不缩放) | |
| min | number | 最小值(最值模式填写) | |
| max | number | 最大值(最值模式填写) | |
| minPercent | number | 低阈值(%)(百分比模式填写)) | |
| maxPercent | number | 高阈值(%)(百分比模式填写) | |
| hasWaterMark | boolean | 是否生成水印 | |
| waterMark | object | 水印设置 | |
| type | string | 水印类型("image" | "text") | |
| text | string | 水印文本 | |
| fontSize | number | 水印文本字号(px) | |
| fontColor | string | 水印文本颜色(如"#000000") | |
| opacity | number | 水印透明度(0-1) | |
| rotate | number | 水印旋转(deg) | |
| position | string | 水印位置("topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "center") | |
| imagePath | string | 水印图片路径 | |
| imageWidthRatio | number | 水印图片宽度比例(0-1) | |
| fromSrs | integer | string | 空间参考(epsg-code如3857或wkt字符串;为空时自动识别,识别失败时按照3857处理) (.tiff格式可填写该设置项,非tiff格式不用填) | |
| topLeft | [number,number] | 是 | 左上角经纬度(非tiff格式时必填,tiff格式不用填) |
| topRight | [number,number] | 是 | 右上角经纬度(非tiff格式时必填,tiff格式不用填) |
| bottomRight | [number,number] | 是 | 右下角经纬度(非tiff格式时必填,tiff格式不用填) |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| waterFilePath | string | 水面文件路径 |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| srs | string | 空间参考(为空时自动识别) | |
| srsOrigin | string | 零点坐标(为空时自动识别) | |
| isRebuildTop | boolean | 是否重建顶层 | |
| maxConcurrency | integer | 顶层重建最大并发数(为空自动计算) | |
| textureFormat | string | 纹理压缩类别("default" | "webp" | "uastc" | "etc1s") | |
| vertexCompress | boolean | 是否压缩顶点 | |
| vertexCompressionLevel | integer | 顶点压缩级别(0|5|10,默认为5) | |
| backFaceCulling | boolean | 是否背面裁剪 | |
| computedNormal | boolean | 是否计算法线 | |
| mandatoryDoubleSide | boolean | 是否强制双面 | |
| unlit | boolean | 是否开启无光照 | |
| is3DTiles1_1 | boolean | 是否输出3dtiles1.1 |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| coordinateSystemConversion | boolean | 是否转换坐标系 | |
| srs | string | 空间参考(默认为"EPSG:3857") | |
| x | number | 零点坐标(默认120) | |
| y | number | 零点坐标(默认38) | |
| z | number | 零点坐标(默认0) | |
| enableLOD | boolean | 是否生成lod | |
| fileRange | [number, number] | 大小参数(MB)(默认为[2,20]) | |
| textureCompressionFormat | enum | 纹理压缩类型("default" | "webp" | "avif" | "uastc" | "etc1s") | |
| vertexCompress | boolean | 是否压缩顶点 | |
| filpNormals | boolean | 是否翻转法线 | |
| mandatoryDoubleSide | boolean | 是否强制双面 | |
| unlit | boolean | 是否开启无光照 | |
| is3DTiles1_1 | boolean | 是否输出3DTiles1.1 |
无
无
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| srs | string | 空间参考(默认为"EPSG:4547") | |
| srsOrigin | string | 零点坐标(默认为"0,0,0") | |
| upAxis | enum | 向上轴("X" | "Y" | "Z")(默认为"Y") | |
| maxConcurrency | integer | 最大并发数(为空时自动计算) |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| colorIpt | number | 颜色偏移量(颜色计算公式(color+colorIpt) * colorType / dividendColor)(默认为0) | |
| colorType | enum | 颜色类型(255 | 65535)(默认255) | |
| dividendColor | number | 颜色除数(默认65535) | |
| srs | string | 空间参考(默认"EPSG:3857") | |
| srsOrigin | string | 零点坐标(默认"0,0,0") | |
| isSaveColor | boolean | 是否存储颜色 | |
| vertexCompress | boolean | 是否压缩顶点 | |
| vertexCompressionLevel | enum | 顶点压缩级别(0|5|10)(默认5) | |
| isSelectAttribute | boolean | 是否拾取属性 | |
| isX | boolean | 是否拾取X | |
| isY | boolean | 是否拾取Y | |
| isZ | boolean | 是否拾取Z | |
| isIntensity | boolean | 是否拾取Intensity | |
| isClassification | boolean | 是否拾取classification | |
| repairDiscreteData | boolean | 是否修复离散化 | |
| is3DTiles1_1 | boolean | 是否输出3dtiles1.1 |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| srs | string | 空间参考(默认"ENU:30.282788,120.157471") | |
| srsOrigin | string | 零点坐标(默认"0,0,0") | |
| is3DTiles1_1 | boolean | 是否输出3dtiles1.1 |
无
无
无
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| isRebuildTop | boolean | 是否重建顶层 | |
| maxConcurrency | integer | 顶层重建最大并发数(为空自动计算) | |
| handledTopLayerWay | enum | ("default" | "continue")(默认为"default") | |
| textureFormat | enum | ("default" | "webp" | "uastc" | "etc1s") | |
| vertexCompress | boolean | 是否压缩顶点 | |
| vertexCompressionLevel | enum | 顶点压缩级别(0 | 5 | 10)(默认为5) | |
| backFaceCulling | boolean | 是否裁剪背面 | |
| computedNormal | boolean | 是否计算法线 | |
| mandatoryDoubleSide | boolean | 是否双面显示 | |
| unlit | boolean | 是否开启无光照 | |
| is3DTiles1_1 | boolean | 是否输出3DTiles1.1 |
无
无
/task/<id>/startbody参数
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| isResume | boolean | 是否为继续处理(目前仅支持倾斜摄影切片、3DTiles再处理) |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| id | string | 是 | 任务 id |
{
"success": true,
"data": {
"id": "4gtfbeg794p7"
},
"msg": "请求成功"
}/task/<id>/stop| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| id | string | 是 | 任务 id |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| id | string | 是 | 任务id |
{
"success": true,
"data": {
"id": "4gtfbeg794p7"
},
"msg": "请求成功"
}/task/<id>/stop| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| id | string | 是 | 任务 id |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| id | string | 是 | 任务 id |
{
"success": true,
"data": {
"id": "4gtfbeg794p7"
},
"msg": "请求成功"
}service/create| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| name | string | 是 | |
| type | ServiceEnum | 是 | |
| connectionOptions | object | 是 | 数据源连接参数(见各类服务数据源连接参数) |
| gstyleInline | object | 自定义样式(矢量服务可设置) |
{
"name": "测试矢量服务",
"type": "Vector",
"connectionOptions": {
"type": "File",
"dataPath": "C:/test.geojson"
},
"gstyleInline": {
"format": "MBStyle",
"dataSource": "FilePath",
"filePath": "C:/MBStyle.json",
}
}
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| id | string | 是 | 服务id |
{
"success": true,
"data": {
"id": "m1w81k0n0joa"
},
"msg": "请求成功"
}
service/delete/{ids}注:ids是逗号分隔的服务id序列。
无Body参数
无
{
"success": true,
"msg": "请求成功"
}
service/edit/{id}| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| name | string | 是 | 服务名称 |
| connectionOptions | 见各类服务数据源连接参数 | ||
| handlerOptions | object | 见各类数据源额外参数 | |
| metadata | object | 见服务元数据 | |
| protocols | object[] | 协议配置数组(见协议配置对象) | |
| gstyle | object | 预定义样式设置 | |
| id | string | 预定义样式id | |
| gstyleInline | object | 具体参数见GStyleInline | |
| workspace | object | 工作空间设置 | |
| id | string | 工作空间id |
{
"id": "ol8e0iig9du8",
"name": "测试api发矢量服务",
"type": "Vector",
"protocols": [
{
"type": "WFS",
"versions": [
"2.0.0"
],
"enable": true,
"settings": {}
},
{
"type": "WMS",
"versions": [
"1.1.1"
],
"enable": true,
"settings": {}
},
{
"type": "WMTS",
"versions": [
"1.0.0"
],
"enable": true,
"settings": {
"tileMatrixSetsControl": [
{
"id": "9222tj0cceil",
"name": "EPSG:4326",
"enableLimitZoomLevel": true,
"publicZoomLevel": [
0,
21
],
"enableCache": true,
"cacheZoomLevel": [
0,
21
]
},
{
"id": "zocdr2dw8dlz",
"name": "EPSG:3857",
"enableLimitZoomLevel": true,
"publicZoomLevel": [
0,
24
],
"enableCache": true,
"cacheZoomLevel": [
0,
24
]
}
]
}
},
{
"type": "MVT",
"versions": [
"2.1"
],
"enable": true,
"settings": {}
}
],
"metadata": {
"originSrs": "EPSG:4326",
"originSrsBounds": [
119.9392247200012,
26.59931051558265,
120.05,
26.7
],
"lngLatBounds": [
119.9392247200012,
26.59931051558265,
120.04999999999998,
26.7
]
},
"sourceType": "GeoJSON",
"connectionOptions": {
"type": "File",
"dataPath": "C:/test.geojson"
},
"handlerOptions": {},
"gstyle": {
"id": qeaou2v3eveh"
},
"workspace": {
"id": "g4vmgebdpj12"
}
}无
service/switch/{id}| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| target | boolean | 是 | 是否开启 |
service/info/{id}无
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| id | string | 是 | 服务id |
| name | string | 是 | |
| type | ServiceEnum | 是 | 服务类型 |
| createAt | number | 是 | 创建时间戳 |
| updateAt | number | 是 | 修改时间戳 |
| isActive | boolean | 是 | 服务是否开启 |
| readyInfo | object | 是 | 服务准备信息 |
| status | "ready" | "preparing" | "error" | "not-ready" | 是 | 服务准备状态 |
| protocols | object[] | 是 | 服务协议配置(见协议配置对象) |
| metadata | object | 是 | 见服务元数据 |
| connectionOptions | object | 是 | 见各类服务数据源连接参数 |
| handlerOptions | object | 见各类服务数据源额外参数 | |
| gstyle | string | 预定义样式id | |
| workspace | string | 是 | 工作区id |
| tileMatrixSets | string[] | 切片规则id数组 |
{
"success": true,
"data": {
"id": "ol8e0iig9du8",
"name": "测试api发矢量服务",
"type": "Vector",
"createAt": 1768548714179,
"updateAt": 1768548714179,
"isActive": true,
"readyInfo": {
"status": "ready"
},
"protocols": [
{
"type": "WFS",
"versions": [
"2.0.0"
],
"enable": true,
"settings": {}
},
{
"type": "WMS",
"versions": [
"1.1.1"
],
"enable": true,
"settings": {}
},
{
"type": "WMTS",
"versions": [
"1.0.0"
],
"enable": true,
"settings": {
"tileMatrixSetsControl": [
{
"id": "9222tj0cceil",
"name": "EPSG:4326",
"enableLimitZoomLevel": true,
"publicZoomLevel": [
0,
21
],
"enableCache": true,
"cacheZoomLevel": [
0,
21
]
},
{
"id": "zocdr2dw8dlz",
"name": "EPSG:3857",
"enableLimitZoomLevel": true,
"publicZoomLevel": [
0,
24
],
"enableCache": true,
"cacheZoomLevel": [
0,
24
]
}
]
}
},
{
"type": "MVT",
"versions": [
"2.1"
],
"enable": true,
"settings": {}
}
],
"metadata": {
"originSrs": "EPSG:4326",
"originSrsBounds": [
119.9392247200012,
26.59931051558265,
120.05,
26.7
],
"lngLatBounds": [
119.9392247200012,
26.59931051558265,
120.04999999999998,
26.7
]
},
"sourceType": "GeoJSON",
"connectionOptions": {
"type": "File",
"dataPath": "C:/test.geojson"
},
"handlerOptions": {},
"gstyle": "qeaou2v3eveh",
"workspace": "g4vmgebdpj12",
"isRewriteFile": false,
"sourceOptions": {},
"tileMatrixSets": [
"9222tj0cceil",
"zocdr2dw8dlz"
]
},
"msg": "请求成功"
}service/list| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| type | string | 服务类型(见ServiceEnum) | |
| key | string | 关键词 | |
| page | number | 是 | 页数 |
| pageSize | number | 是 | 每页条数 |
http://127.0.0.1:42231/api/v1/service/list?key=54fd75dd-df0c-4e8d-8179-3fe91cf8280a&
timestamp=1768368398843&sign=99949A6122970DE18192A396EABAC326&type=Vector&keyword&page=1&pageSize=1| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| list | object[] | 服务对象数组 | |
| total | number |
{
"success": true,
"data": {
"list": [
{
"id": "ol8e0iig9du8",
"_id_": "ol8e0iig9du8",
"name": "测试api发矢量服务",
"type": "Vector",
"createAt": 1768548714179,
"updateAt": 1768548714179,
"isActive": true,
"readyInfo": {
"status": "ready"
},
"protocols": [
{
"type": "WFS",
"versions": [
"2.0.0"
],
"enable": true,
"settings": {}
},
{
"type": "WMS",
"versions": [
"1.1.1"
],
"enable": true,
"settings": {}
},
{
"type": "WMTS",
"versions": [
"1.0.0"
],
"enable": true,
"settings": {
"tileMatrixSetsControl": [
{
"id": "9222tj0cceil",
"name": "EPSG:4326",
"enableLimitZoomLevel": true,
"publicZoomLevel": [
0,
21
],
"enableCache": true,
"cacheZoomLevel": [
0,
21
]
},
{
"id": "zocdr2dw8dlz",
"name": "EPSG:3857",
"enableLimitZoomLevel": true,
"publicZoomLevel": [
0,
24
],
"enableCache": true,
"cacheZoomLevel": [
0,
24
]
}
]
}
},
{
"type": "MVT",
"versions": [
"2.1"
],
"enable": true,
"settings": {}
}
],
"metadata": {
"originSrs": "EPSG:4326",
"originSrsBounds": [
119.9392247200012,
26.59931051558265,
120.05,
26.7
],
"lngLatBounds": [
119.9392247200012,
26.59931051558265,
120.04999999999998,
26.7
]
},
"sourceType": "GeoJSON",
"connectionOptions": {
"type": "File",
"dataPath": "C:/Users/admin/Desktop/data/geojson/test1.geojson"
},
"handlerOptions": {},
"gstyle": {
"id": "qeaou2v3eveh",
"name": "boundary_lines",
"format": "SLD",
"dataSource": "Content",
"isDefault": true,
"createAt": 1757904080085,
"updateAt": "2025-10-22T08:26:59.108Z"
},
"workspace": {
"id": "g4vmgebdpj12",
"name": "Default Workspace",
"nickName": "默认工作空间",
"isDefault": true,
"createAt": 1757645552702,
"updateAt": "2025-09-12T03:00:26.828Z"
},
"isRewriteFile": false,
"sourceOptions": {},
"tileMatrixSets": [
{
"id": "9222tj0cceil",
"key": "EPSG:4326",
"name": "EPSG:4326",
"crs": "EPSG:4326",
"bounds": [
-180,
-90,
180,
90
],
"tileWidth": 256,
"tileHeight": 256,
"metersPerUnit": 111319.49079327358,
"tileMatrixs": [
{
"name": "0",
"matrixWidth": 2,
"matrixHeight": 1,
"pixelSize": 0.703125,
"scaleDenominator": 279541132.0143589
},
{
"name": "1",
"matrixWidth": 4,
"matrixHeight": 2,
"pixelSize": 0.3515625,
"scaleDenominator": 139770566.00717944
},
{
"name": "2",
"matrixWidth": 8,
"matrixHeight": 4,
"pixelSize": 0.17578125,
"scaleDenominator": 69885283.00358972
},
{
"name": "3",
"matrixWidth": 16,
"matrixHeight": 8,
"pixelSize": 0.087890625,
"scaleDenominator": 34942641.50179486
},
{
"name": "4",
"matrixWidth": 32,
"matrixHeight": 16,
"pixelSize": 0.0439453125,
"scaleDenominator": 17471320.75089743
},
{
"name": "5",
"matrixWidth": 64,
"matrixHeight": 32,
"pixelSize": 0.02197265625,
"scaleDenominator": 8735660.375448715
},
{
"name": "6",
"matrixWidth": 128,
"matrixHeight": 64,
"pixelSize": 0.010986328125,
"scaleDenominator": 4367830.1877243575
},
{
"name": "7",
"matrixWidth": 256,
"matrixHeight": 128,
"pixelSize": 0.0054931640625,
"scaleDenominator": 2183915.0938621787
},
{
"name": "8",
"matrixWidth": 512,
"matrixHeight": 256,
"pixelSize": 0.00274658203125,
"scaleDenominator": 1091957.5469310894
},
{
"name": "9",
"matrixWidth": 1024,
"matrixHeight": 512,
"pixelSize": 0.001373291015625,
"scaleDenominator": 545978.7734655447
},
{
"name": "10",
"matrixWidth": 2048,
"matrixHeight": 1024,
"pixelSize": 0.0006866455078125,
"scaleDenominator": 272989.38673277234
},
{
"name": "11",
"matrixWidth": 4096,
"matrixHeight": 2048,
"pixelSize": 0.00034332275390625,
"scaleDenominator": 136494.69336638617
},
{
"name": "12",
"matrixWidth": 8192,
"matrixHeight": 4096,
"pixelSize": 0.000171661376953125,
"scaleDenominator": 68247.34668319309
},
{
"name": "13",
"matrixWidth": 16384,
"matrixHeight": 8192,
"pixelSize": 0.0000858306884765625,
"scaleDenominator": 34123.67334159654
},
{
"name": "14",
"matrixWidth": 32768,
"matrixHeight": 16384,
"pixelSize": 0.00004291534423828125,
"scaleDenominator": 17061.83667079827
},
{
"name": "15",
"matrixWidth": 65536,
"matrixHeight": 32768,
"pixelSize": 0.000021457672119140625,
"scaleDenominator": 8530.918335399136
},
{
"name": "16",
"matrixWidth": 131072,
"matrixHeight": 65536,
"pixelSize": 0.000010728836059570312,
"scaleDenominator": 4265.459167699568
},
{
"name": "17",
"matrixWidth": 262144,
"matrixHeight": 131072,
"pixelSize": 0.000005364418029785156,
"scaleDenominator": 2132.729583849784
},
{
"name": "18",
"matrixWidth": 524288,
"matrixHeight": 262144,
"pixelSize": 0.000002682209014892578,
"scaleDenominator": 1066.364791924892
},
{
"name": "19",
"matrixWidth": 1048576,
"matrixHeight": 524288,
"pixelSize": 0.000001341104507446289,
"scaleDenominator": 533.182395962446
},
{
"name": "20",
"matrixWidth": 2097152,
"matrixHeight": 1048576,
"pixelSize": 6.705522537231445e-7,
"scaleDenominator": 266.591197981223
},
{
"name": "21",
"matrixWidth": 4194304,
"matrixHeight": 2097152,
"pixelSize": 3.3527612686157227e-7,
"scaleDenominator": 133.2955989906115
}
],
"editable": false,
"createAt": 1766561117502,
"updateAt": 1766561117502
},
{
"id": "zocdr2dw8dlz",
"key": "EPSG:3857",
"name": "EPSG:3857",
"crs": "EPSG:3857",
"bounds": [
-20037508.34,
-20037508.34,
20037508.34,
20037508.34
],
"tileWidth": 256,
"tileHeight": 256,
"metersPerUnit": 1,
"tileMatrixs": [
{
"name": "0",
"matrixWidth": 1,
"matrixHeight": 1,
"pixelSize": 156543.03392804076,
"scaleDenominator": 559082264.028717
},
{
"name": "1",
"matrixWidth": 2,
"matrixHeight": 2,
"pixelSize": 78271.51696402022,
"scaleDenominator": 279541132.014358
},
{
"name": "2",
"matrixWidth": 4,
"matrixHeight": 4,
"pixelSize": 39135.75848201011,
"scaleDenominator": 139770566.007179
},
{
"name": "3",
"matrixWidth": 8,
"matrixHeight": 8,
"pixelSize": 19567.879241005117,
"scaleDenominator": 69885283.0035897
},
{
"name": "4",
"matrixWidth": 16,
"matrixHeight": 16,
"pixelSize": 9783.939620502542,
"scaleDenominator": 34942641.5017948
},
{
"name": "5",
"matrixWidth": 32,
"matrixHeight": 32,
"pixelSize": 4891.969810251271,
"scaleDenominator": 17471320.7508974
},
{
"name": "6",
"matrixWidth": 64,
"matrixHeight": 64,
"pixelSize": 2445.9849051256383,
"scaleDenominator": 8735660.37544871
},
{
"name": "7",
"matrixWidth": 128,
"matrixHeight": 128,
"pixelSize": 1222.9924525628178,
"scaleDenominator": 4367830.18772435
},
{
"name": "8",
"matrixWidth": 256,
"matrixHeight": 256,
"pixelSize": 611.4962262814075,
"scaleDenominator": 2183915.09386217
},
{
"name": "9",
"matrixWidth": 512,
"matrixHeight": 512,
"pixelSize": 305.7481131407024,
"scaleDenominator": 1091957.54693108
},
{
"name": "10",
"matrixWidth": 1024,
"matrixHeight": 1024,
"pixelSize": 152.8740565703523,
"scaleDenominator": 545978.773465544
},
{
"name": "11",
"matrixWidth": 2048,
"matrixHeight": 2048,
"pixelSize": 76.43702828517615,
"scaleDenominator": 272989.386732772
},
{
"name": "12",
"matrixWidth": 4096,
"matrixHeight": 4096,
"pixelSize": 38.21851414258808,
"scaleDenominator": 136494.693366386
},
{
"name": "13",
"matrixWidth": 8192,
"matrixHeight": 8192,
"pixelSize": 19.10925707129404,
"scaleDenominator": 68247.346683193
},
{
"name": "14",
"matrixWidth": 16384,
"matrixHeight": 16384,
"pixelSize": 9.55462853564699,
"scaleDenominator": 34123.6733415964
},
{
"name": "15",
"matrixWidth": 32768,
"matrixHeight": 32768,
"pixelSize": 4.777314267823495,
"scaleDenominator": 17061.8366707982
},
{
"name": "16",
"matrixWidth": 65536,
"matrixHeight": 65536,
"pixelSize": 2.388657133911756,
"scaleDenominator": 8530.91833539913
},
{
"name": "17",
"matrixWidth": 131072,
"matrixHeight": 131072,
"pixelSize": 1.1943285669558765,
"scaleDenominator": 4265.45916769956
},
{
"name": "18",
"matrixWidth": 262144,
"matrixHeight": 262144,
"pixelSize": 0.5971642834779383,
"scaleDenominator": 2132.72958384978
},
{
"name": "19",
"matrixWidth": 524288,
"matrixHeight": 524288,
"pixelSize": 0.29858214173896913,
"scaleDenominator": 1066.36479192489
},
{
"name": "20",
"matrixWidth": 1048576,
"matrixHeight": 1048576,
"pixelSize": 0.14929107086948457,
"scaleDenominator": 533.182395962445
},
{
"name": "21",
"matrixWidth": 2097152,
"matrixHeight": 2097152,
"pixelSize": 0.07464553543474216,
"scaleDenominator": 266.591197981222
},
{
"name": "22",
"matrixWidth": 4194304,
"matrixHeight": 4194304,
"pixelSize": 0.03732276771737108,
"scaleDenominator": 133.295598990611
},
{
"name": "23",
"matrixWidth": 8388608,
"matrixHeight": 8388608,
"pixelSize": 0.018661383858685567,
"scaleDenominator": 66.6477994953056
},
{
"name": "24",
"matrixWidth": 16777216,
"matrixHeight": 16777216,
"pixelSize": 0.009330691929342784,
"scaleDenominator": 33.3238997476528
}
],
"editable": false,
"createAt": 1766561117309,
"updateAt": 1766561117309
}
]
}
],
"total": 24
},
"msg": "请求成功"
}service/url/{id}| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| protocol | string | 是 | 协议类型(见ServiceProtocolEnum) |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| url | string | 是 |
| 值 | 说明 |
|---|---|
| ThreeDTiles | 3DTiles |
| Terrain | 地形 |
| Image | 2d栅格影像 |
| Vector | 矢量 |
| Assets | 其它资源 |
| 值 | 说明 |
|---|---|
| File | 文件 |
| Database | 数据库 |
| Remote | 其它服务 |
| AssetsDir | 资源文件夹 |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| type | string | 是 | "File" |
| dataPath | string | 是 | 文件地址 一、2d栅格影像服务支持 (1)栅格影像文件(.tiff、.tif) (2)预切片文件(.json、.gbp) 二、2d矢量服务 (1)矢量文件(.json、.geojson、.shp、.gpkg、.kml、.gml、.dwg、.dxf) 三、3dtiles服务 (1).json、.gbp 四、地形服务 (1).json、.gbp |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| type | string | 是 | "Database" |
| dbType | string | 是 | "PostGIS" |
| host | string | 是 | |
| port | string | 是 | |
| user | string | 是 | |
| password | string | 是 | |
| database | string | 是 | |
| schema | string | 是 | 如"public" |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| type | string | 是 | "Remote" |
| cache | boolean | ||
| protocolType | ServiceProtocolEnum | 是 | 协议类型 |
| remoteURL | string | 是 | 服务地址 |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| type | string | 是 | "AssetsDir" |
| dataPath | string | 是 | |
| mimeType | string | ||
| assetsAddType | string | 是 | "addFilePath" | "addFileContent" |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| name | string | 是 | 表名 |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| styleName | string | 仅WMS协议 | |
| tileMatrixSetID | string | 仅WMTS协议 |
| 值 | 说明 |
|---|---|
| XYZ | |
| WFS | |
| WMTS | |
| WMS | |
| MVT | |
| Assets | |
| 3DTiles | |
| Terrain |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| id | string | 是 | 服务id |
| versions | string[] | 允许的协议版本(具体看下方的各协议可选版本) | |
| enable | boolean | 是 | 是否启用 |
| settings | object | 协议配置参数(具体看各协议配置参数) |
| 协议 | 版本 |
|---|---|
| 3DTiles | "1.0" | "1.1" |
| WMS | "1.1.1" |
| WMTS | "1.0.0" |
| WFS | "2.0.0" |
| MVT | "2.1" |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| tileMatrixSetsControl | TileMatrixSetsControl[] |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| id | string | 是 | |
| name | string | 是 | |
| enableLimitZoomLevel | boolean | 是 | |
| publicZoomLevel | number[] | ||
| enableCache | boolean | ||
| cacheZoomLevel | number[] |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| upAxis | "Y" | "Z" | 向上轴,默认为"Y" |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| east | number | ||
| north | number | ||
| west | number | ||
| south | number |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| originSrs | string | 坐标系 | |
| lngLatBounds | [number, number, number, number] | 经纬度边界盒[西,南,东,北] |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| originSrs | string | SRS | |
| toSrs | string | 重投影SRS | |
| isReproj | boolean | 是否应用重投影 | |
| originSrsBounds | [number, number, number, number] | 原始边界盒[西,南,东,北] | |
| lngLatBounds | [number, number, number, number] | 经纬度边界盒[西,南,东,北] |
无
| 值 | 说明 |
|---|---|
| GeoStyler | |
| SLD | |
| MBStyle | Mapbox 样式格式 |
| QGISStyle | QGIS 样式格式 |
| Mapfile | |
| LYRX |
| 字段 | 类型 | 必选 | 说明 |
|---|---|---|---|
| format | GStyleFormat | 是 | |
| dataSource | "FilePath" | "Content" | 是 | |
| content | string | dataSource为"Content"时填写 | |
| filePath | string | dataSource为"Content"时填写 |