5 Star 4 Fork 0

jts / KQGIS Server 8.1 开发接口文档

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

通用

数据源连接

8.5类型 8.1对应dbtype值 8.5必须参数 8.5可选参数 8.5示例
KQSpatialDB
KqSqlite 16
KqOracle 4 type,database,username,password tablename "datasource":{
"type":"KqOracle",
"database":"127.0.0.1/orcl",
"username":"KQ5",
"password":"KQ5",
"tablename":"省"
}
KqAccess 6
KqSqlServer 5
KqPostgreSQL 10 type,server,database,username,password tablename "datasource":{
"type":"KqPostgreSQL",
"server":"127.0.0.1",
"instance":"5432",
"database":"KQ5",
"username":"KQ5",
"password":"KQ5",
"tablename":"省"
}
KqHighgo 11 type,server,database,username,password tablename "datasource":{
"type":"KqHighgo",
"server":"127.0.0.1",
"instance":"5866",
"database":"KQ5",
"username":"KQ5",
"password":"KQ5",
"tablename":"省"
}
KqMySql 13 type,server,database,username,password tablename "datasource":{
"type":"KqMySql",
"server":"127.0.0.1",
"instance":"3306",
"database":"KQ5",
"username":"KQ5",
"password":"KQ5",
"tablename":"省"
}
KqKingbase7 14
KqKingbase8 15 type,server,database,username,password tablename "datasource":{
"type":"KqKingbase8",
"server":"127.0.0.1",
"instance":"54321",
"database":"KQ5",
"username":"KQ5",
"password":"KQ5",
"tablename":"省"
}
KqMongoDB
ArcAccess 3
ArcOracle 0
ArcSqlServer 1
ShapeFile 21 type,filepath tablename "datasource": {
"type": "ShapeFile",
"filepath": "E:/Work/数据/矢量数据/全国",
"tablename": "省.shp"
}
PostgisDBKin8 17
PostgisDBPg 17
Spatialite
OracleSpatial
GDB

服务管理

关闭服务器

  • 接口功能

    关闭服务器。

  • 请求地址

    http://127.0.0.1:8699/KQGis/Manager/shutdown
  • 返回结果

    • 正确

    • 错误

      {
          "resultcode":"error",
      	"message":"Failed to shutdown the server"
      }

获取服务器版本

  • 接口功能

    获取服务器版本。

  • 请求地址

    http://127.0.0.1:8699/KQGis/Manager/getversion
  • 请求json示例

  • 请求参数说明

    名称 必填 类型 说明
  • 返回结果

    • 正确

      {
          "resultcode": "success",
          "result": {
              "ProductInstallDir": "/home/kanq/banben/weifuwu/20210604_1/KQGIS_Server_V8.1_Centos7.6_x64_20210604_1_uims_micro_0604",
              "ProductVersion": "8.1",
              "SDKVersion": "20210604",
              "ReleaseDate": "2021/06/04 16:29:29",
              "KOSerializeVersion": 0,
              "StartTime": "2021-06-04 17:48:01",
              "SystemType": "centos",
              "SystemVersion": "7",
              "PrettyProductName": "CentOS Linux 7 (Core)",
              "KernelType": "linux",
              "KernelVersion": "3.10.0-957.el7.x86_64"
          }
      }
    • 错误

修改服务器参数

  • 接口功能

    修改服务器参数。

  • 请求地址

    http://127.0.0.1:8699/KQGis/Manager/setconfig?items=[{"name":"webport","value":"8699"},{"name":"somport","value":"8431"}]
  • 请求json示例

    {
        "params": {
            "items": [
                {
                    "name": "webport",
                    "value": "8699"
                },
                {
                    "name": "somport",
                    "value": "8431"
                }
            ]
        }
    }
  • 可以修改的内容有

    Name=somport   SOM端口号,默认为8431
    Name=webport   Web服务端口号,默认为8699
    Name=webroot   WebSite名称,默认为KQGis
  • 服务请求超时时间设置

    Name=Timeout.Default   			默认超时时间   	时间单位:秒
    Name=Timeout.ServiceList   		查询服务列表   	时间单位:秒
    Name=Timeout.ServiceStart   	启动服务   		时间单位:秒
    Name=Timeout.ServiceStop   		停止服务   		时间单位:秒
    Name=Timeout.ServiceState   	查询服务状态   	时间单位:秒
    Name=Timeout.ServiceDelete   	删除服务   		时间单位:秒
    Name=Timeout.ServiceModify   	修改服务  		时间单位:秒
    Name=Timeout.ServiceUpload   	上传(发布)服务   时间单位:秒
    Name=Timeout.ServiceDownload  	下载服务   		时间单位:秒
    Name=Timeout.ServiceRename  	服务重命名   	时间单位:秒
    Name=Timeout.CreateFolder  		创建服务目录   	时间单位:秒
  • 返回结果

    • 正确

    • 错误

创建服务目录

  • 接口功能

    创建服务目录。

  • 请求地址

    http://127.0.0.1:8699/KQGis/Manager/createfolder
  • 请求json示例

    {
    	"name":"test",
    	"aliasname":"测试",
        "description":"测试目录"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 目录名称
    aliasname string 目录别名
    description string 目录描述
  • 返回结果

    • 正确

      {"resultcode":"success"}
    • 错误

删除服务目录

  • 接口功能

    删除服务目录。

  • 请求地址

    http://127.0.0.1:8699/KQGis/Manager/deletefolder
  • 请求json示例

    {
    	"name":"test"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 要删除的目录名称,非空目录不能删除
  • 返回结果

    • 正确

      {
          "resultcode": "success"
      }
    • 错误

查询服务目录

  • 接口功能

    查询服务目录完整信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/Manager/getfolderlist
  • 请求json示例

    {
    	"gettypelist":"true"
    }
  • 请求参数说明

    名称 必填 类型 说明
    gettypelist bool 是否返回目录中的服务类型,为true时返回服务类型,为false时,不返回,则返回内容中无”servicetype”节点。
  • 返回结果

    • 正确

      gettypelist=true时的返回内容:

      {
      	"resultcode": "success",
      	"result": [
      	{
      			"name": "wuhan",
      			"aliasName": "wuhan",
      			"description": "",
      			"createTime": "2019/06/24 17:50:00",
      			"isfolder": true,
      			"servicetype": [
      				{
                          "index": 0,
                          "name": "MapService",
                          "aliasName": "苍穹二维地图服务",
                          "description": "苍穹二维地图服务",
                          "nodeName": "Map",
                          "pluginName": "kqmd2srv",
                          "webserverName": "MapServer",
                          "copyOriginalFile": true,
                          "isCommonService": false,
                          "isMapService": true,
                          "isCreateThumb": true,
                          "is2DService": true,
                          "is3DService": false,
                          "isDataService": false,
                          "isCreateJSConfig": true,
                          "fileType": "kqmd",
                          "createConfigExe": "srv2config",
                          "autoUpdateSrv": false
                      },
      				{
      					"name": "AnalysisService",
      					"aliasName": "分析服务",
      					"description": "苍穹分析服务"
      				}
      			]
      		},
      		{
      			"name": "{root}",//{root}为关键字,表示根目录
      			"aliasName": "根目录",
      			"description": "服务根目录",
      			"servicetype": [
      				{
      					"name": "MapService",
      					"aliasName": "地图服务",
      					"description": "苍穹地图服务"
      				},
      				{
      					"name": "NetworkService",
      					"aliasName": "网络分析服务",
      					"description": "苍穹网络分析服务"
      				},
      				{
      					"name": "AnalysisService",
      					"aliasName": "分析服务",
      					"description": "苍穹分析服务"
      				}
      			]
      		}
      	]
      }
    • 错误

修改服务目录参数

  • 接口功能

    修改服务目录参数。

  • 请求地址

    http://127.0.0.1:8699/KQGis/Manager/setfolder
  • 请求json示例

    {
    	"name":"test",
    	"aliasname":"newtest",
        "description":"newtest"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 要修改的目录的名字
    aliasname string 目录的新的别名
    description string 目录的新的描述
  • 返回结果

    • 正确

      {
          "resultcode": "success"

    }

    
    - 错误
    

查询服务类型列表

  • 接口功能

    查询服务类型列表。

  • 请求地址

    http://127.0.0.1:8699/KQGis/Manager/servicetypelist
  • 返回结果

    • 正确

      {
          "result": [
              {
                  "index": 0,
                  "name": "MapService",
                  "aliasName": "苍穹二维地图服务",
                  "description": "苍穹二维地图服务",
                  "nodeName": "Map",
                  "pluginName": "kqmd2srv",
                  "webserverName": "MapServer",
                  "copyOriginalFile": true,
                  "isCommonService": false,
                  "isMapService": true,
                  "isCreateThumb": true,
                  "is2DService": true,
                  "is3DService": false,
                  "isDataService": false,
                  "isCreateJSConfig": true,
                  "fileType": "kqmd",
                  "createConfigExe": "srv2config",
                  "autoUpdateSrv": false
              },
              {
                  "index": 1,
                  "name": "DataService",
                  "aliasName": "苍穹二维数据服务",
                  "description": "苍穹二维数据服务",
                  "nodeName": "DataService",
                  "pluginName": "CreateDataSrv",
                  "webserverName": "DataServer",
                  "copyOriginalFile": true,
                  "isCommonService": false,
                  "isMapService": false,
                  "isCreateThumb": false,
                  "is2DService": false,
                  "is3DService": false,
                  "isDataService": true,
                  "isCreateJSConfig": false,
                  "fileType": "kqdata",
                  "createConfigExe": "srv2config",
                  "autoUpdateSrv": false
              },
              {
                  "index": 2,
                  "name": "3DService",
                  "aliasName": "苍穹三维地图服务",
                  "description": "苍穹三维地图服务",
                  "nodeName": "Kq3DService",
                  "pluginName": "Create3dSrv",
                  "webserverName": "kq3dservice",
                  "copyOriginalFile": true,
                  "isCommonService": false,
                  "isMapService": true,
                  "isCreateThumb": false,
                  "is2DService": false,
                  "is3DService": true,
                  "isDataService": false,
                  "isCreateJSConfig": false,
                  "fileType": "config",
                  "createConfigExe": "srv2config",
                  "autoUpdateSrv": false
              },
              {
                  "index": 3,
                  "name": "TileService",
                  "aliasName": "瓦片服务",
                  "description": "瓦片服务",
                  "nodeName": "TileService",
                  "pluginName": "CreateTileSrv",
                  "webserverName": "TileService",
                  "copyOriginalFile": true,
                  "isCommonService": false,
                  "isMapService": false,
                  "isCreateThumb": false,
                  "is2DService": false,
                  "is3DService": false,
                  "isDataService": false,
                  "isCreateJSConfig": false,
                  "fileType": "kqtile",
                  "createConfigExe": "srv2config",
                  "autoUpdateSrv": false
              }
          ],
          "resultcode": "success"
      }
    • 错误

查询图层列表

  • 接口功能

    查询图层列表。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/getlayerlist
  • 请求json示例

    {
    	"name":"test"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 服务名
  • 返回结果

    {
        "resultcode": "success",
        "result": [
            {
                "is_annotation": false,
                "id": 1,
                "guid": "247a7cb9-96a1-4716-9ff6-9fb89a6862b2",
                "name": "洪山区_行政区注记",
                "layerType": "sl",
                "shapeType": "polygon",
                "vectorFormat": "png",
                "imageFormat": "jpgpng",
                "vectorFormat2": "mvt",
                "minScale": 1e-10,
                "maxScale": 1.0,
                "parentLayerId": -1,
                "compositeLayer": false,
                "parentCombined": false,
                "combined": false,
                "RTRefresh": false,
                "rect": "[114.167900,30.383608,114.634625,30.696074]",
                "networkAnalysisLayer": false,
                "imgBgColor": 16777215,
                "tableName": "洪山区_行政区",
                "filter": "",
                "datasource": {
                    "CONNECTTYPE": "",
                    "DATABASETYPE": "",
                    "DATASOURCETYPE": "ShapeFile",
                    "IS_DB": false,
                    "IS_DIR": false,
                  "IS_FILE": true,
                    "VERSION": "8.1",
                    "filePathFlag": "file",
                    "path": "E:/Work/test/data/shuju/洪山区SHP数据更新/洪山区_行政区.shp"
                }
            },
            {
                "is_annotation": false,
                "id": 2,
                "guid": "b8355a53-a09e-45f8-ac6b-a7e1d8bfac05",
                "name": "洪山区_线状地物",
                "layerType": "sl",
                "shapeType": "polyline",
                "vectorFormat": "png",
                "imageFormat": "jpgpng",
                "vectorFormat2": "mvt",
                "minScale": 1e-10,
                "maxScale": 1.0,
                "parentLayerId": -1,
                "compositeLayer": false,
                "parentCombined": false,
                "combined": false,
                "RTRefresh": false,
                "rect": "[114.176659,30.386111,114.632706,30.692427]",
                "networkAnalysisLayer": false,
                "imgBgColor": 16777215,
                "tableName": "洪山区_线状地物",
                "filter": "",
                "datasource": {
                    "CONNECTTYPE": "",
                    "DATABASETYPE": "",
                    "DATASOURCETYPE": "ShapeFile",
                    "IS_DB": false,
                    "IS_DIR": false,
                    "IS_FILE": true,
                    "VERSION": "8.1",
                    "filePathFlag": "file",
                    "path": "E:/Work/test/data/shuju/洪山区SHP数据更新/洪山区_线状地物.shp"
                }
            },
            {
                "is_annotation": false,
                "id": 3,
                "guid": "a66807ea-a852-45af-8d19-217515f47bf7",
                "name": "洪山区_地类图斑",
                "layerType": "sl",
                "shapeType": "polygon",
                "vectorFormat": "png",
                "imageFormat": "jpgpng",
                "vectorFormat2": "mvt",
                "minScale": 1e-10,
                "maxScale": 1.0,
                "parentLayerId": -1,
                "compositeLayer": false,
                "parentCombined": false,
                "combined": false,
                "RTRefresh": false,
                "rect": "[114.167900,30.383608,114.634625,30.696074]",
                "networkAnalysisLayer": false,
                "imgBgColor": 16777215,
                "tableName": "洪山区_地类图斑",
                "filter": "",
                "datasource": {
                    "CONNECTTYPE": "",
                    "DATABASETYPE": "",
                    "DATASOURCETYPE": "ShapeFile",
                    "IS_DB": false,
                    "IS_DIR": false,
                    "IS_FILE": true,
                    "VERSION": "8.1",
                    "filePathFlag": "file",
                    "path": "E:/Work/test/data/shuju/洪山区SHP数据更新/洪山区_地类图斑.shp"
                }
            }
        ]
    }

查询图层信息

  • 接口功能

    查询图层信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/getlayerinfo
  • 请求json示例

    {
    	"name":"test",
    	"layerid":"1"
    }
  • 请求参数说明

    名称 必填 类型 说明
    foldername string 目录名称
    servicetype string 服务类型
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "is_annotation": false,
            "id": 1,
            "guid": "247a7cb9-96a1-4716-9ff6-9fb89a6862b2",
            "name": "洪山区_行政区注记",
            "layerType": "sl",
            "shapeType": "polygon",
            "vectorFormat": "png",
            "imageFormat": "jpgpng",
            "vectorFormat2": "mvt",
            "minScale": 1e-10,
            "maxScale": 1.0,
            "parentLayerId": -1,
            "compositeLayer": false,
            "parentCombined": false,
            "combined": false,
            "RTRefresh": false,
            "rect": "[114.167900,30.383608,114.634625,30.696074]",
            "networkAnalysisLayer": false,
            "imgBgColor": 16777215,
            "tableName": "洪山区_行政区",
            "filter": "",
            "datasource": {
                "CONNECTTYPE": "",
                "DATABASETYPE": "",
                "DATASOURCETYPE": "ShapeFile",
                "IS_DB": false,
                "IS_DIR": false,
                "IS_FILE": true,
                "VERSION": "8.1",
                "filePathFlag": "file",
                "path": "E:/Work/test/data/shuju/洪山区SHP数据更新/洪山区_行政区.shp"
            }
        }
    }

查询服务列表

  • 接口功能

    查询服务列表。

  • 请求地址

    查询所有服务:

    http://127.0.0.1:8699/KQGis/rest/Manager/services/list

    按目录和服务类型查询服务:

    http://127.0.0.1:8699/KQGis/rest/Manager/services/list?foldername=wuhan&servicetype=MapService
  • 请求json示例

    {
    	"foldername":"wuhan",
    	"servicetype":"MapService"
    }
  • 请求参数说明

    名称 必填 类型 说明
    foldername string 目录名称
    servicetype string 服务类型
  • 返回结果

    • 查询所有服务成功时返回内容

      {
      	"resultcode": "success","services": [{
            	"type": 1,
              "serviceType": "MapService",//
           	"name": "china",//
              "aliasName": "china",//
              "interfacetype": "rest",//服务接口类型
              "description": "",
              "createTime": "2019/06/26 11:00:49",//创建时间
              "lastModifyTime": "2019/06/26 11:00:49",//最后一次修改时间
              "startTime": "",//启动时间
              "isfolder": false,
              "isPublished": false,
              "state": 1,//运行状态 1:停止, 4:运行中
              "status": "stopped",//运行状态名称,stopped:停止  runnning:运行中
              "port": 0,
              "url":"http://172.16.1.88:8699/KQGis/rest/services/china/MapServer",//服务信息url
              "viewurl":http://172.16.1.88:8699/KQGis/kqwebmap/services/china/index.html,//浏览视图url
              "thumburl":"http://172.16.1.88:8699/KQGis/thumb/{529e459b-dee8-4059-b2ab-8ae5f00e8b2a}.png",//缩略图
              //当服务类型为Kq3Dservice时,以下属性不存在
              "hasImageCache":false,//是否有影像缓存,可以进行影像缓存处理
              "hasVectorCache":false//是否有矢量缓存,可以进行矢量缓存处理
      	},
      	{
              "type": 1,
              "serviceType": "MapService",
              "name": "dm",
              "aliasName": "武汉达梦数据库服务",
              "description": "武汉达梦数据库服务",
              "createTime": "2019/06/25 17:53:16",
              "startTime": "",
              "isfolder": false,
              "isPublished": false,
              "state": 1,
              "status": "stopped",
              "port": 0,
              "url":"http://172.16.1.88:8699/KQGis/rest/services/dm/MapServer",//服务信息url
              "viewurl":http://172.16.1.88:8699/KQGis/kqwebmap/services/dm/index.html,//浏览视图url
              "thumburl":"http://172.16.1.88:8699/KQGis/thumb/{529e459b-dee8-4059-b2ab-8ae5f00e8b2a}.png",//缩略图
              //当服务类型为Kq3Dservice时,以下属性不存在
              "hasImageCache":false,//是否有影像缓存,可以进行影像缓存处理
              "hasVectorCache":false//是否有矢量缓存,可以进行矢量缓存处理
              },
      	{
              "type": 1,
              "serviceType": "MapService",
              "name": "HL2",
              "aliasName": "网络分析",
              "description": "网络分析服务",
              "createTime": "2019/06/26 23:56:00",
              "startTime": "",
              "isfolder": false,
              "isPublished": false,
              "state": 1,
              "status": "stopped",
              "port": 0,
              "url":"http://172.16.1.88:8699/KQGis/rest/services/hl2/MapServer",//服务信息url
              "viewurl":http://172.16.1.88:8699/KQGis/kqwebmap/services/hl2/index.html,//浏览视图url
              "thumburl":"http://172.16.1.88:8699/KQGis/thumb/{529e459b-dee8-4059-b2ab-8ae5f00e8b2a}.png",//缩略图
              //当服务类型为Kq3Dservice时,以下属性不存在
              "hasImageCache":false,//是否有影像缓存,可以进行影像缓存处理
              "hasVectorCache":false//是否有矢量缓存,可以进行矢量缓存处理
      	}]
      }
    • 按目录和服务类型查询服务

      {
      	"resultcode": "success",
      	"services": [
      		{
      			"name": "wuhan",
      			"aliasName": "wuhan",
      			"description": "",
      			"createTime": "2019/06/24 17:50:00",
      			"isfolder": true,
      			"children": [
      				{
      					"type": 1,
      					"serviceType": "MapService",
      					"name": "wuhan.archsq",
      					"aliasName": "洪山区",
      					"description": "",
      					"createTime": "2019/06/26 23:15:39",
      					"startTime": "",
      					"isfolder": false,
      					"isPublished": false,
      					"state": 1,
      					"status": "stopped",
      					"port": 0,
                          "url":"http://172.16.1.88:8699/KQGis/rest/services/wuhan.archsq/MapServer",//服务信息url
                          "viewurl":http://172.16.1.88:8699/KQGis/kqwebmap/services/wuhan.archsq/index.html,//浏览视图url
                          "thumburl":"http://172.16.1.88:8699/KQGis/thumb/{529e459b-dee8-4059-b2ab-8ae5f00e8b2a}.png",//缩略图
                          //当服务类型为Kq3Dservice时,以下属性不存在
                          "hasImageCache":false,//是否有影像缓存,可以进行影像缓存处理
                          "hasVectorCache":false//是否有矢量缓存,可以进行矢量缓存处理
      				},
      				{
      					"type": 1,
      					"serviceType": "MapService",
      					"name": "wuhan.dm",
      					"aliasName": "武汉达梦数据库服务",
      					"description": "武汉达梦数据库服务",
      					"createTime": "2019/06/25 18:05:19",
      					"startTime": "",
      					"isfolder": false,
      					"isPublished": false,
      					"state": 1,
      					"status": "stopped",
      					"port": 0,
                      "url":"http://172.16.1.88:8699/KQGis/rest/services/wuhan.dm/MapServer",//服务信息url
                      "viewurl":http://172.16.1.88:8699/KQGis/kqwebmap/services/wuhan.dm/index.html,//浏览视图url
                      "thumburl":"http://172.16.1.88:8699/KQGis/thumb/{529e459b-dee8-4059-b2ab-8ae5f00e8b2a}.png",//缩略图
                      //当服务类型为Kq3Dservice时,以下属性不存在
                      "hasImageCache":false,//是否有影像缓存,可以进行影像缓存处理
                      "hasVectorCache":false//是否有矢量缓存,可以进行矢量缓存处理
                      }
      			]
      		}
      	]
      }

查询服务状态

  • 接口功能

    查询服务状态。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/state
  • 请求json示例

    {
    	"name":"test"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 服务名
  • 返回结果

    • 正确

      {
          "state": 1,
          "status": "stopped",
          "port": 0,
          "createthumburl": "http://127.0.0.1:8699/KQGis/kqwebmap/services/test/createthumb.html",
          "url": "http://127.0.0.1:8699/KQGis/rest/services/test/MapServer",
          "viewurl": "http://127.0.0.1:8699/KQGis/kqwebmap/services/test/index.html",
          "wmtsviewurl": "http://127.0.0.1:8699/KQGis/kqwebmap/services/test/wmts_index.html",
          "vectortileurl": "http://127.0.0.1:8699/KQGis/kqwebmap/services/test/vector_tile_index.html",
          "thumburl": "",
          "resultcode": "success"
      }
    • 错误

查询服务信息

  • 接口功能

    查询服务信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/queryserviceinfo
  • 请求json示例

    {
    	"name":"test"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 服务名
  • 返回结果

    • 正确

      {
          "resultcode":"success",
          "result":{
              "type": 1,
              "id": 1002,
              "guid": "55ee0a4a-d3b5-47c6-b583-7cfc3a8b4518",
              "serviceVersion": "8.1",//服务版本
              "name": "test",//服务名
              "serviceType": "MapService",//服务类型
              "aliasname": "测试",//服务别名
              "description": "用于测试的服务",//服务描述
              "createTime": "2019/6/24 18:19:23",//创建时间(服务器时间,不可修改)
              "interfacetype": "rest",//服务接口类型
              "lastModifyTime": "2019/06/26 11:00:49",//最后一次修改时间
              "startTime": "",//启动时间
              "isfolder": false,
              "isPublished": false,
              "isDefaultTheme": false,
              "state": 1,//运行状态 1:停止, 4:运行中
              "status": "stopped",//运行状态名称,stopped:停止  runnning:运行中
              "port": 0,
              "url":"http://127.0.0.1:8699/KQGis/rest/services/test/MapServer",//服务信息url
              "viewurl":http://127.0.0.1:8699/KQGis/kqwebmap/services/test/index.html,//浏览视图url
              "thumburl":"http://127.0.0.1:8699/KQGis/thumb/{529e459b-dee8-4059-b2ab-8ae5f00e8b2a}.png",//缩略图
              //当服务类型为Kq3Dservice时,以下属性不存在
              "hasImageCache":false,//是否有影像缓存,可以进行影像缓存处理
              "hasVectorCache":false,//是否有矢量缓存,可以进行矢量缓存处理
              "cachepath": "E:/Version/win/8.1/KQGIS_Server_Win64_V8.1_20211216/srvs/data/cache/test_20211220102032",
              "cachepathtype": "filepath",
              "cachefoldername": "test_20211220102032",
              "configFileType": "kqmd",
              "vectorformat": "PNG",//矢量瓦片格式
              "imageformat": "JPG",//影像瓦片格式
              "vectorformat2": "MVT",
              "wmts_type": "KQDefault",
              "meters_per_degree": 111194.649834165,
              "originx": -180.0,
              "originy": 90.0,
              "scalemode": 1,
              "mvtStartLevel": -1,
              "mvtEndLevel": -1,
              "scalemode": 1,//比例尺模式,0:谷歌 1:自定义
              "mapscales": [
                  {
                      "id": 0,
                      "scale": 1000000.0,
                      "static": false
                  },
                  {
                      "id": 1,
                      "scale": 500000.0,
                      "static": false
                  },
                  {
                      "id": 2,
                      "scale": 250000.0,
                      "static": false
                  },
                  {
                      "id": 3,
                      "scale": 125000.0,
                      "static": false
                  },
                  {
                      "id": 4,
                      "scale": 64000.0,
                      "static": false
                  },
                  {
                      "id": 5,
                      "scale": 32000.0,
                      "static": false
                  },
                  {
                      "id": 6,
                      "scale": 16000.0,
                      "static": false
                  },
                  {
                      "id": 7,
                      "scale": 8000.0,
                      "static": false
                  },
                  {
                      "id": 8,
                      "scale": 4000.0,
                      "static": false
                  },
                  {
                      "id": 9,
                      "scale": 2000.0,
                      "static": false
                  }
      	    ],
              "rect": "12705207.627839,3552954.993749,12761068.082278,3593341.150835",
              "prjrect": "12705207.627839,3552954.993749,12761068.082278,3593341.150835",
              "sr": {
              "prj": "PROJCS[\"WGS 84 / Pseudo-Mercator\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]],PROJECTION[\"Mercator_1SP\"],PARAMETER[\"central_meridian\",0],PARAMETER[\"scale_factor\",1],PARAMETER[\"false_easting\",0],PARAMETER[\"false_northing\",0],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],EXTENSION[\"PROJ4\",\"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs\"],AUTHORITY[\"EPSG\",\"3857\"]]",
              "epsg": 3857
              }
          }
      }
    • 错误

      {
          "resultcode": "error",
          "message": "Service test does not exist"
      }

设置服务信息

  • 接口功能

    设置服务信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/setserviceinfo
  • 请求json示例

    {
        "name": "test",
        "scalemode": 1,
        "mapscales": [
                  {
                      "id": 0,
                      "scale": 1000000.0,
                      "static": false
                  },
                  {
                      "id": 1,
                      "scale": 500000.0,
                      "static": false
                  },
                  {
                      "id": 2,
                      "scale": 250000.0,
                      "static": false
                  },
                  {
                      "id": 3,
                      "scale": 125000.0,
                      "static": false
                  },
                  {
                      "id": 4,
                      "scale": 64000.0,
                      "static": false
                  },
                  {
                      "id": 5,
                      "scale": 32000.0,
                      "static": false
                  },
                  {
                      "id": 6,
                      "scale": 16000.0,
                      "static": false
                  },
                  {
                      "id": 7,
                      "scale": 8000.0,
                      "static": false
                  },
                  {
                      "id": 8,
                      "scale": 4000.0,
                      "static": false
                  },
                  {
                      "id": 9,
                      "scale": 2000.0,
                      "static": false
                  }
      	    ],
        "vectorFormat": "png",
        "imageFormat": "jpg",
        "sr": "EPSG:4326"
    }
  • 请求参数说明

    名称 必填 类型 说明
    serviceType string 需要创建的服务的类型,类型为:MapService,NetworkService,AnaysisService,3DService等
    name string 服务名
    aliasname string 服务别名
    description string 服务描述
    scalemode int 比例尺模式,0:谷歌模式 1:自定义模式 2:三维模式
    mapscales(兼容旧版本scales) string 比例尺信息,数组类型,id:比例尺序号,scale:比例尺值,static:是否为静态比例
    vectorformat string 矢量瓦片格式
    imageformat string 影像瓦片格式
    sr string 目标空间参考
  • 返回结果

    • 正确

      {"resultcode":"success”}
    • 错误

生成服务缩略图

默认参数生成

  • 接口功能

    采用默认参数生成服务缩略图。

  • 请求地址

    http://172.16.1.88:8699/KQGis/rest/Manager/services/createthumb
  • 请求json示例

    {
    	"name":"hsq"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 服务名称
  • 返回结果

    {
        "resultcode":"success"
    }

指定参数生成

  • 接口功能

    通过指定比例尺级别、图片尺寸、地图中心点、图层ID、透明度生成服务缩略图。

  • 请求地址

    http://172.16.1.88:8699/KQGis/rest/Manager/services/createthumb
  • 请求json示例

    {
    	"name":"hsq",
    	"layerId":"1",
        "level":"0",
        "x":"114.401739",
        "y":"30.539841",
        "width":"280",
        "height":"155",
        "transparent":"255",
        "crs":"EPSG:4326",
        "where":"",
        "format":"png"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 服务名称
    layerId int 图层ID,0表示所有图层
    level int 比例尺级别,地图配置的比例尺序号
    x double 地图中心点x坐标
    y double 地图中心点y坐标
    width int 图片宽度,16-512像素
    height int 图片高度,16-512像素
    transparent int 透明度,0-255,默认为255
    crs string 中心点坐标的空间参考,默认为地图配置的目标空间参考
    where string 查询条件
    format string 图片格式,jpg或png
  • 返回结果

    {
        "resultcode":"success"
    }

WMS方式生成

  • 接口功能

    使用WMS的方式请求地图生成缩略图。

  • 请求地址

    http://172.16.1.88:8699/KQGis/rest/Manager/services/createthumb
  • 请求json示例

    {
        "name":"hsq",
        "layerId":"1",
        "bbox":"114.401739,30.509841,114.451739,30.539841",
        "width":"280",
        "height":"155",
        "transparent":"255",
        "crs":"EPSG:4326",
        "where":"",
        "format":"png"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 服务名称
    layerId int 图层ID,0表示所有图层
    bbox string 地图范围坐标,格式为:minx,miny,maxx,maxy
    width int 图片宽度,16-512像素
    height int 图片高度,16-512像素
    transparent int 透明度,0-255,默认为255
    crs string 地图范围坐标的空间参考,默认为地图配置的目标空间参考
    where string 查询条件
    format string 图片格式,jpg或png
  • 返回结果

    {
        "resultcode":"success"
    }

创建服务

使用KQMD文件创建服务

  • 接口功能

    使用KQMD文件创建服务。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/createservice
  • 请求json示例

    {
    	"file":"test.kqmd",	//二进制文件流
    	"filename":"test",
        "networkconfig":"",
        "serviceType":"MapService",
        "foldername":":/1",
        "servicename":"test",
        "aliasname":"",
        "description":"",
        "tilepath":"",
        "isDefaultTheme":"true",
        "vectorFormat": "png",
          "imageFormat": "jpgpng",
          "vectorFormat2": "mvt",
          "originx": -180.0,
          "originy": 90.0,
          "wmts_type": "kqdefault",
          "scaleinfo":{
                 "scalemode":1,
                 "mapscales":[
                  {
                      "id": 0,
                      "scale": 1000000.0,
                      "static": false
                  },
                  {
                      "id": 1,
                      "scale": 500000.0,
                      "static": false
                  },
                  {
                      "id": 2,
                      "scale": 250000.0,
                      "static": false
                  },
                  {
                      "id": 3,
                      "scale": 125000.0,
                      "static": false
                  },
                  {
                      "id": 4,
                      "scale": 64000.0,
                      "static": false
                  },
                  {
                      "id": 5,
                      "scale": 32000.0,
                      "static": false
                  },
                  {
                      "id": 6,
                      "scale": 16000.0,
                      "static": false
                  },
                  {
                      "id": 7,
                      "scale": 8000.0,
                      "static": false
                  },
                  {
                      "id": 8,
                      "scale": 4000.0,
                      "static": false
                  },
                  {
                      "id": 9,
                      "scale": 2000.0,
                      "static": false
                  }
      	    ]
          }
    }
  • 请求参数说明

    名称 必填 类型 说明
    file binary 二进制文件流,需要创建的服务的地图文件,支持地图配置文件(.kqmd)、三维服务配置文件(.config)
    filename string 文件名
    serviceType string 需要创建的服务的类型,类型为:MapService, DataService,3DService等
    networkconfig binary 二进制文件流,网络分析配置文件
    foldername string 指定服务所在的服务目录(为空时服务将发布到服务管理的根目录)
    servicename string 需要创建的服务的名称
    aliasname string 服务别名,支持中文(可为空)
    description string 服务描述,支持中文(可为空)
    tilepath string 指定瓦片存储路径(为空时由服务自动分配目录)
    isDefaultTheme bool 前端是否使用默认主题 true:使用默认主题 false:不使用默认主题
    vectorFormat string 矢量数据的栅格瓦片的格式,支持jpg,png,tif,webp
    imageFormat string 影像数据的栅格瓦片的格式,支持jpg,png,tif,webp,jpgpng
    vectorFormat2 string 矢量数据的矢量瓦片的格式,支持MVT,PBF
    originx double 地图的X坐标原点(服务是以左上角为原点计算行列号)
    originy double 地图的y坐标原点(服务是以左上角为原点计算行列号)
    wmts_type double 度米转换参数类型,仅当目标投影参考系是地理坐标系时有效
    scaleinfo json 地图比例尺,是一个json对象
  • 返回结果

    • 正确

      {
      	"result": {
      		"type": 1,
      		"serviceType": "MapService",
      		"name": "20200818",
      		"aliasName": "20200818",
      		"interfacetype": "rest",
      		"description": "",
      		"bkgimagefile": "",
      		"cachepath": "F:/00_yitihua/KQGIS_Server_Win64_V8.1_20200818/srvs/data/cache/20200818_20200818095741",
      		"cachepathtype": "filepath",
      		"createTime": "2020/08/18 09:57:41",
      		"lastModifyTime": "2020/08/18 09:57:41",
      		"startTime": "",
      		"thumbfilename": "20200818.png",
      		"imageEngineVersion": "2.0",
      		"isfolder": false,
      		"isPublished": false,
      		"isDefaultTheme": false,
      		"hasImageCache": false,
      		"hasVectorCache": false,
      		"vectorformat": "PNG",
      		"imageformat": "JPG",
      		"scalemode": 1,
      		"mapscales": [
      			{
      				"id": 0,
      				"scale": 1000000.0,
      				"static": false
      			},
      			{
      				"id": 1,
      				"scale": 500000.0,
      				"static": false
      			},
      			{
      				"id": 2,
      				"scale": 250000.0,
      				"static": false
      			},
      			{
      				"id": 3,
      				"scale": 125000.0,
      				"static": false
      			},
      			{
      				"id": 4,
      				"scale": 64000.0,
      				"static": false
      			},
      			{
      				"id": 5,
      				"scale": 32000.0,
      				"static": false
      			},
      			{
      				"id": 6,
      				"scale": 16000.0,
      				"static": false
      			},
      			{
      				"id": 7,
      				"scale": 8000.0,
      				"static": false
      			},
      			{
      				"id": 8,
      				"scale": 4000.0,
      				"static": false
      			},
      			{
      				"id": 9,
      				"scale": 2000.0,
      				"static": false
      			}
      		],
      		"rect": "114.167900,30.383608,114.634625,30.749043",
      		"prjrect": "114.167900,30.383608,114.634625,30.749043",
      		"fullcustomscale": 1000000.0,
      		"fullgooglescale": 1155583.4197440944,
      		"fullkq3dscale": 1154289.7814651649,
      		"sr": {
      			"prj": "GEOGCS[\"GCS_WGS 84\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563]],]",
      			"epsg": 4326
      		},
      		"state": 1,
      		"status": "stopped",
      		"port": 0
      	},
      	"resultcode": "success"
      }
    • 错误

使用数据源动态创建服务

  • 接口功能

    使用数据源直接创建服务。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/dynamiccreateservice
  • 请求json示例

    • 栅格文件

      {
      	"datasource": [
      		{
      			"type": "RasterFile",
      			"filepath": "G:/武汉市影像/洪山区/H50G034005DOM.tif",
      			"layername": "H50G034005DOM"
      		},
      		{
      			"type": "RasterFile",
      			"filepath": "G:/武汉市影像/武昌区/H50G032006DOM.tif",
      			"layername": "H50G032006DOM"
      		}
      	],
      	"serviceType": "MapService",
      	"foldername": "",
      	"servicename": "test",
      	"srs": "EPSG:4326",
      	"aliasname": "",
      	"description": "",
      	"tilepath": "E:/tile/test20220701",
      	"isDefaultTheme": "true",
        "vectorFormat": "png",
        "imageFormat": "jpgpng",
        "vectorFormat2": "mvt",
        "originx": -180.0,
        "originy": 90.0,
        "wmts_type": "kqdefault",
        "scaleinfo":{
               "scalemode":1,
               "mapscales":[
                {
                    "id": 0,
                    "scale": 1000000.0,
                    "static": false
                },
                {
                    "id": 1,
                    "scale": 500000.0,
                    "static": false
                },
                {
                    "id": 2,
                    "scale": 250000.0,
                    "static": false
                },
                {
                    "id": 3,
                    "scale": 125000.0,
                    "static": false
                },
                {
                    "id": 4,
                    "scale": 64000.0,
                    "static": false
                },
                {
                    "id": 5,
                    "scale": 32000.0,
                    "static": false
                },
                {
                    "id": 6,
                    "scale": 16000.0,
                    "static": false
                },
                {
                    "id": 7,
                    "scale": 8000.0,
                    "static": false
                },
                {
                    "id": 8,
                    "scale": 4000.0,
                    "static": false
                },
                {
                    "id": 9,
                    "scale": 2000.0,
                    "static": false
                }
            ]
        }
      }
    • 栅格目录

      {
      	"datasource": [
      		{
      			"type": "RasterCatalog",
      			"filepath": "G:/武汉市影像/洪山区",
      			"layername": "洪山区影像"
      		},
      		{
      			"type": "RasterCatalog",
      			"filepath": "G:/武汉市影像/武昌区",
      			"layername": "武昌区影像"
      		}
      	],
      	"serviceType": "MapService",
      	"foldername": "",
      	"servicename": "test",
      	"srs": "EPSG:4326",
      	"aliasname": "",
      	"description": "",
      	"tilepath": "",
      	"isDefaultTheme": "true"
      }
    • 栅格数据集

      {
      	"datasource": [
      		{
      			"type": "RasterDataset",
      			"filepath": "/1",
      			"layername": "洪山区影像"
      		},
      		{
      			"type": "RasterDataset",
      			"filepath": "/2",
      			"layername": "武昌区影像"
      		}
      	],
      	"serviceType": "MapService",
      	"foldername": "",
      	"servicename": "test",
      	"srs": "EPSG:4326",
      	"aliasname": "",
      	"description": "",
      	"tilepath": "",
      	"isDefaultTheme": "true"
      }
  • 请求参数说明

    名称 必填 类型 说明
    datasource string JsonArray对象,每一个Json描述一个图层的数据源的各项参数
    serviceType string 需要创建的服务的类型,类型为:MapService, DataService,3DService等
    foldername string 指定服务所在的服务目录(为空时服务将发布到服务管理的根目录)
    servicename string 需要创建的服务的名称
    srs string 目标空间参考。如:EPSG:4326
    aliasname string 服务别名,支持中文(可为空)
    description string 服务描述,支持中文(可为空)
    tilepath string 指定瓦片存储路径(为空时由服务自动分配目录)
    isDefaultTheme bool 前端是否使用默认主题 true:使用默认主题 false:不使用默认主题
    vectorFormat string 矢量数据的栅格瓦片的格式,支持jpg,png,tif,webp
    imageFormat string 影像数据的栅格瓦片的格式,支持jpg,png,tif,webp,jpgpng
    vectorFormat2 string 矢量数据的矢量瓦片的格式,支持MVT,PBF
    originx double 地图的X坐标原点(服务是以左上角为原点计算行列号)
    originy double 地图的y坐标原点(服务是以左上角为原点计算行列号)
    wmts_type double 度米转换参数类型,仅当目标投影参考系是地理坐标系时有效
    scaleinfo json 地图比例尺,是一个json对象

    其中,datasource参数说明如下:

名称 必填 类型 说明
type string 数据源类型,支持Shapefile,KqAccess,KqSqlServer,KqOracle,KqDM,KqKingbase,KqHighgo,KqPostgreSql,KqMySql,KqMongoDB,KqGdb,KqGdm,ArcAccess,ArcGdb,ArcOracle,ArcSqlServer,RasterFile,MultipleRaster,RasterCatalog,RasterDataset
filepath 条件 string 文件路径,当数据源为文件或文件目录时有效,数据源类型为Shapefile、RasterFile、RasterCatalog、KqAccess、KqGdb、KqGdm、ArcAccess、ArcGdb为文件型数据源。
server 条件 string 数据库服务器地址(IP或机器名)
instance 条件 string 数据库实例名或端口
database 条件 string 数据库名称
username 条件 string 数据源用户名
password 条件 string 数据库密码(base64编码)
tablename 条件 string 表名
layername string 图层名
  • scaleinfo参数说明如下:

    名称 必填 类型 说明
    scaleode int 比例尺模式,0:自定义比例尺模式 1:谷歌比例尺模式
    mapscales jsonarray 比例尺数组
    id int 比例尺序号
    scale double 比例尺分母
    static bool 是否是静态比例尺

    返回结果

    • 正确返回服务信息

      {
      	"result": {
              "type": 1,
              "serviceType": "MapService",
              "name": "20200818",
              "aliasName": "20200818",
              "interfacetype": "rest",
              "description": "",
              "bkgimagefile": "",
              "cachepath": "F:/00_yitihua/KQGIS_Server_Win64_V8.1_20200818/srvs/data/cache/20200818_20200818095741",
              "cachepathtype": "filepath",
              "createTime": "2020/08/18 09:57:41",
      		"lastModifyTime": "2020/08/18 09:57:41",
      		"startTime": "",
      		"thumbfilename": "20200818.png",
      		"imageEngineVersion": "2.0",
      		"isfolder": false,
      		"isPublished": false,
      		"isDefaultTheme": false,
      		"hasImageCache": false,
      		"hasVectorCache": false,
      		"vectorformat": "PNG",
      		"imageformat": "JPG",
      		"scalemode": 1,
      		"mapscales": [
      			{
      				"id": 0,
      				"scale": 1000000.0,
      				"static": false
      			},
      			{
      				"id": 1,
      				"scale": 500000.0,
      				"static": false
      			},
      			{
      				"id": 2,
      				"scale": 250000.0,
      				"static": false
      			},
      			{
      				"id": 3,
      				"scale": 125000.0,
      				"static": false
      			},
      			{
      				"id": 4,
      				"scale": 64000.0,
      				"static": false
      			},
      			{
      				"id": 5,
      				"scale": 32000.0,
      				"static": false
      			},
      			{
      				"id": 6,
      				"scale": 16000.0,
      				"static": false
      			},
      			{
      				"id": 7,
      				"scale": 8000.0,
      				"static": false
      			},
      			{
      				"id": 8,
      				"scale": 4000.0,
      				"static": false
      			},
      			{
      				"id": 9,
      				"scale": 2000.0,
      				"static": false
      			}
      		],
      		"rect": "114.167900,30.383608,114.634625,30.749043",
      		"prjrect": "114.167900,30.383608,114.634625,30.749043",
      		"fullcustomscale": 1000000.0,
      		"fullgooglescale": 1155583.4197440944,
      		"fullkq3dscale": 1154289.7814651649,
      		"sr": {
      			"prj": "GEOGCS[\"GCS_WGS 84\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563]],]",
      			"epsg": 4326
      		},
      		"state": 1,
      		"status": "stopped",
      		"port": 0
      	},
      	"resultcode": "success"
      }
    • 错误

启动服务

  • 接口功能

    启动服务。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/start
  • 请求json示例

    {
        "name":"test"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 服务名
  • 返回结果

    • 正确

       {
       	"resultcode":"success"
       }
    • 错误

停止服务

  • 接口功能

    停止服务。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/stop
  • 请求json示例

    {
        "name":"test"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 服务名
  • 返回结果

    • 正确

       {
       	"resultcode":"success"
       }
    • 错误

删除服务

  • 接口功能

    删除服务。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/delete
  • 请求json示例

    {
        "name":"test"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 服务名
  • 返回结果

    • 正确

       {
       	"resultcode":"success"
       }
    • 错误

更新服务

  • 接口功能

    更新服务。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/update
  • 请求json示例

    {
        "name":"test",
        "restart":true
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 服务名
    restart bool 是否重启服务,默认为false
  • 返回结果

    • 正确

       {
       	"resultcode":"success"
       }
    • 错误

修改服务名

  • 接口功能

    修改服务名。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/rename
  • 请求json示例

    {
    	"name":"test",
    	"newname":"newtest",
        "aliasname":"hsq"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 原服务名
    newname string 新服务名
    aliasname string 服务别名,如果为空,则不修改别名
  • 返回结果

    • 正确

    • 错误

服务文件下载

  • 接口功能

    服务文件下载。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/download
  • 请求json示例

    {
    	"name":"hsq"
    }
  • 请求参数说明

    名称 必填 类型 说明
    name string 服务名
  • 返回结果

    • 正确

    • 错误

启动缓存

  • 接口功能

    启动缓存。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/startcacheprocess
  • 请求json示例

    {
    	"name":"hsq",
    	"type":"0"
    }
  • 请求参数说明

    名称 必填 类型 说明
    type int 缓存类型 0:矢量 1:影像
    name string 服务名
  • 返回结果

    • 正确

    • 错误

停止缓存

  • 接口功能

    停止缓存。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/stopcacheprocess
  • 请求json示例

    {
    	"name":"hsq",
    	"type":"0"
    }
  • 请求参数说明

    名称 必填 类型 说明
    type int 缓存类型 0:矢量 1:影像
    name string 服务名
  • 返回结果

    • 正确

    • 错误

查询缓存进度

  • 接口功能

    查询缓存进度。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/Manager/services/querycachestatus
  • 请求json示例

    {
    	"name":"hsq",
    	"type":"0"
    }
  • 请求参数说明

    名称 必填 类型 说明
    type int 缓存类型 0:矢量 1:影像
    name string 服务名
  • 返回结果

    • 正确

      处理中返回进度信息

      {
      	"resultcode": "success",
      	"result": {
      	"status": 0,//状态,0:正常 >1:错误
      		"allcount": 130163,//总瓦片数量
      		"finishedcount": 61182,//已完成数量
      		"validcount": 22001,//有效瓦片数量
      		"timecost": 33005,//使用时间,单位:毫秒
      		"isfinished": false,//是否已完成
      		"curtime": "2019/07/01 08:52:52",//当前进度时间
      		"starttime": "2019/07/01 08:52:19"//缓存开始时间
      	}
      }

      处理完成返回信息

      {
      	"resultcode": "success",
      	"result": {
      		"status": 0, //状态,0:正常 >1:错误
      		"allcount": 130163, ,//总瓦片数量
      		"finishedcount": 130163, //已完成数量
      		"validcount": 60169, //有效瓦片数量
      		"timecost": 81049, //使用时间,单位:毫秒
      		"isfinished": true, //是否已完成
      		"curtime": "2019/07/01 08:53:40",,//当前进度时间
      		"starttime": "2019/07/01 08:52:19",//缓存开始时间
      		"endtime": "2019/07/01 08:53:"//完成时间
      	}
      }
    • 错误

MappingService-地图服务

export

  • 接口功能

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/MapServer/export
  • 请求json示例

    {
    	"layers":"4",
    	"format":"PNG",
    	"level":"1",
    	"x":"12076515.810774136",
    	"y":"2707714.139470289",
    	"size":"1924,852"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layers int 如果有多个图层id,以“,”间隔,一次性给定多个图层,所有图层的图片将在后台服务中进行融合,并按先影像、后矢量,同时按服务配置中的图层顺序进行叠加
    mask int 是否为遮罩图层,值为0或1,0表示“否”,1表示“是”
    format string 图片格式,值为“png”或“jpg”,默认为“jpg”
    level int 显示比例尺级别,整型值,值为服务配置的显示比例尺
    x int 地图中心点坐标
    y int 地图中心点坐标
    size int 图片的尺寸,可用width和height来分别指定宽高
    width int 图片的宽
    height int 图片的高
  • 返回结果

    • 正确

WMS

GETCAPABILITIES

  • 接口功能

    GetCapabilities接口,用于获取服务元数据向客户端提供当前地图服务器可以提供的空间信息类型和范围、具体的图层信息和显示样式、支持的查询方式等服务级描述信息。支持1.3.0版本。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/MapServer/WMS
  • 请求json示例

    {
    	"request":"GetCapabilities",
    	"version":"1.3.0"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法,固定为“GetCapabilities”
    version string WMS版本号,默认为1.3.0
  • 返回结果

    • 正确

      <WMS_Capabilities xmlns="http://www.opengis.net/wms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3.0" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd">
          <Service>
              <Name>WMS</Name>
              <Title>china3858</Title>
              <KeywordList>
                  <Keyword>KQGIS Server</Keyword>
                  <Keyword>OGC</Keyword>
                  <Keyword>WMS</Keyword>
              </KeywordList>
              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://127.0.0.1:8699/KQGis/rest/services/china3858/MapServer/WMS?" xlink:type="simple"/>
              <ContactInformation>
                  <ContactPersonPrimary>
                      <ContactPerson>kqgeo</ContactPerson>
                      <ContactOrganization>kqgeo</ContactOrganization>
                  </ContactPersonPrimary>
                  <ContactPosition>admin</ContactPosition>
                  <ContactAddress>
                      <Address>北京市海淀区中关村南大街17号韦伯时代中心C座16层1606-1609室</Address>
                      <City>Beijing</City>
                      <StateOrProvince>Beijing</StateOrProvince>
                      <PostCode>100830</PostCode>
                      <Country>China</Country>
                  </ContactAddress>
                  <ContactVoiceTelephone>(+86)01085271489</ContactVoiceTelephone>
      <ContactFacsimileTelephone>(+86)01085271488</ContactFacsimileTelephone>
      <ContactElectronicMailAddress>kanq.com.cn</ContactElectronicMailAddress>
              </ContactInformation>
              <Fees>NONE</Fees>
              <AccessConstraints>false</AccessConstraints>
          </Service>
          <Capability>
              <Request>
                  <GetCapabilities>
                      <Format>application/vnd.ogc.wms_xml</Format>
                      <Format>text/xml</Format>
                      <DCPType>
                          <HTTP>
                              <Get>
                                  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://127.0.0.1:8699/KQGis/rest/services/china3858/MapServer/WMS?" xlink:type="simple"/>
                              </Get>
                              <Post>
                                  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://127.0.0.1:8699/KQGis/rest/services/china3858/MapServer/WMS?" xlink:type="simple"/>
                              </Post>
                          </HTTP>
                      </DCPType>
                  </GetCapabilities>
                  <GetMap>
                      <Format>image/png</Format>
                      <Format>jpg</Format>
                      <DCPType>
                          <HTTP>
                              <Get>
                                  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://127.0.0.1:8699/KQGis/rest/services/china3858/MapServer/WMS?" xlink:type="simple"/>
                              </Get>
                          </HTTP>
                      </DCPType>
                  </GetMap>
                  <GetFeatureInfo>
                      <Format>application/vnd.ogc.wms_xml</Format>
                      <Format>text/xml</Format>
                      <Format>text/html</Format>
                      <Format>text/plain</Format>
                      <DCPType>
                          <HTTP>
                              <Get>
                                  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://127.0.0.1:8699/KQGis/rest/services/china3858/MapServer/WMS?" xlink:type="simple"/>
                              </Get>
                          </HTTP>
                      </DCPType>
                  </GetFeatureInfo>
              </Request>
              <Exception>
                  <Format>text/xml</Format>
                  <Format>XML</Format>
              </Exception>
              <Layer>
                  <Title>
                      <![CDATA[ Layers ]]>
                  </Title>
                  <CRS>EPSG:4610</CRS>
                  <CRS>EPSG:3857</CRS>
                  <EX_GeographicBoundingBox>
                      <westBoundLongitude>114.167900</westBoundLongitude>
                      <eastBoundLongitude>114.634625</eastBoundLongitude>
                      <southBoundLatitude>30.383608</southBoundLatitude>
                      <northBoundLatitude>30.696201</northBoundLatitude>
                  </EX_GeographicBoundingBox>
                  <BoundingBox CRS="EPSG:4610" minx="114.167900" miny="30.383608" maxx="114.634625" maxy="30.696201"/>
                  <BoundingBox CRS="EPSG:3857" minx="12709112.492900" miny="3552954.993700" maxx="12761068.082200" maxy="3593357.592000"/>
                  <Layer queryable="1">
                      <Name>1</Name>
                      <Title>洪山区_行政区</Title>
                      <WMSURL>
      xlink:href='http://127.0.0.1:8699/KQGis/rest/services/china3858/1/MapServer/WMS?request=GetCapabilities'
                      </WMSURL>
                      <EX_GeographicBoundingBox>
                          <westBoundLongitude>114.167900</westBoundLongitude>
                          <eastBoundLongitude>114.634625</eastBoundLongitude>
                          <southBoundLatitude>30.383608</southBoundLatitude>
                          <northBoundLatitude>30.696201</northBoundLatitude>
                      </EX_GeographicBoundingBox>
                      <LayerType>0</LayerType>
                      <CRS>EPSG:4610</CRS>
                      <CRS>EPSG:3857</CRS>
                      <BoundingBox CRS="EPSG:4610" minx="114.167900" miny="30.383608" maxx="114.634625" maxy="30.696201"/>
                      <BoundingBox CRS="EPSG:3857" minx="12709112.492900" miny="3552954.993700" maxx="12761068.082200" maxy="3593357.592000"/>
                  </Layer>
              </Layer>
          </Capability>
      </WMS_Capabilities>

GETMAP

  • 接口功能

    GetMap接口主要用于在请求服务器端生成一幅具有确定地理位置的地图图像,主要用作地图可视化展示。支持1.3.0的版本

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/MapServer/WMS
  • 请求json示例

    {
    	"request":"GetMap",
    	"version":"1.3.0",
    	"layers":"4",
    	"format":"PNG",
    	"bbox":"114.3435,30.2324,114.3455,30.2334",
    	"size":"1924,852"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法,固定为“GetMap”
    version string 默认为1.3.0
    layers int 如果有多个图层id,以“,”间隔,一次性给定多个图层,所有图层的图片将在后台服务中进行融合,并按先影像、后矢量,同时按服务配置中的图层顺序进行叠加
    mask int 是否为遮罩图层,值为0或1,0表示“否”,1表示“是”
    format string 图片格式,值为“png”或“jpg”,默认为“jpg”
    bbox int 逻辑坐标范围,坐标必须为服务的目标空间参考系中的坐标
    size int 图片的尺寸(可用width和height来分别指定宽高)
    width int 图片的宽(可用size代替,size为优先选项)
    hight int 图片的高(可用size代替,size为优先选项)
    crs string 地图输出的空间参考系EPSG编码(如EPSG:4326)
  • 返回结果

    • 正确

GETFEATUREINFO

  • 接口功能

    GetFeatureInfo接口,操作用于返回地图上的要素信息。支持1.3.0版本。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/MapServer/WMS
  • 请求json示例

    {
        "request":"GetFeatureInfo",
        "info_format":"application/vnd.ogc.wms_xml",
        "crs":"EPSGS:4610",
        "height":"100",
    	"i":"60",
        "j":"60",
        "styles":"",
        "query_layers":"1,2",
        "version":"1.3.0",
        "layers":"1,2",
        "bbox":"114.167900,30.383608,114.634625,30.696201",
        "width":"200"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法,固定为“GetFeatureInfo“
    version string 默认为1.3.0
    layers int 如果有多个图层id,以“,”间隔,一次性给定多个图层,所有图层的图片将在后台服务中进行融合,并按先影像、后矢量,同时按服务配置中的图层顺序进行叠加
    bbox int 逻辑坐标范围,坐标必须为服务的目标空间参考系中的坐标
    width int 图片的宽
    height int 图片的高
    query_layers int 要查询的图层ID,用逗号分隔多个图层
    info_format string 要素信息返回的格式,格式主要分为以下几种:text/plain:简单的文本输出格式,默认格式;text/xml:返回xml格式,application/vnd.ogc.gml/3.1.1:输出地理标记语言gml 的文件(GML 3的标准);text/xml; subtype=gml/3.1.1:返回gml3标准的xml格式;application/json:输出json结构信息
  • 返回结果

    • 正确

WMTS

GETCAPABILITIES

  • 接口功能

    GetCapabilities接口,用于获取WMTS服务的描述信息,包括可被请求图层的具体信息、能够提供这些图层的瓦片集、以及一个或多个主题集。支持1.0.0版本

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/MapServer/WMTS
  • 请求json示例

    {
        "request":"GetCapabilities"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法,固定为”GetCapabilities“
    version string WMTS版本号:1.0.0
  • 返回结果

    • 正确

      <Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
          <ows:ServiceIdentification>
              <ows:Title>china3858</ows:Title>
              <ows:Abstract>基于OGC标准的地图服务</ows:Abstract>
              <ows:Keywords>
                  <ows:Keyword>OGC</ows:Keyword>
              </ows:Keywords>
              <ows:ServiceType>OGC WMTS</ows:ServiceType>
              <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
              <ows:Fees>none</ows:Fees>
              <ows:AccessConstraints>none</ows:AccessConstraints>
          </ows:ServiceIdentification>
          <ows:ServiceProvider>
              <ows:ProviderName>苍穹数码技术股份有限公司</ows:ProviderName>
              <ows:ProviderSite xlink:href="www.kqgeo.com"/>
              <ows:ServiceContact>
                  <ows:IndividualName>kqgeo</ows:IndividualName>
                  <ows:PositionName>Beijing</ows:PositionName>
                  <ows:ContactInfo>
                      <ows:Phone>
                          <ows:Voice>(+86)01085271489</ows:Voice>
                          <ows:Facsimile>(+86)01085271488</ows:Facsimile>
                      </ows:Phone>
                      <ows:Address>
                          <ows:DeliveryPoint>北京市海淀区中关村南大街17号韦伯时代中心C座16层1606-1609室</ows:DeliveryPoint>
                          <ows:City>Beijing</ows:City>
                          <ows:AdministrativeArea>Beijing</ows:AdministrativeArea>
                          <ows:PostalCode>100830</ows:PostalCode>
                          <ows:Country>China</ows:Country>
                          <ows:ElectronicMailAddress>kanq.com.cn</ows:ElectronicMailAddress>
                      </ows:Address>
                  </ows:ContactInfo>
              </ows:ServiceContact>
          </ows:ServiceProvider>
          <ows:OperationsMetadata>
              <ows:Operation name="GetCapabilities">
                  <ows:DCP>
                      <ows:HTTP>
                          <ows:Get xlink:href="http://127.0.0.1:8699/KQGis/rest/services/china3858/MapServer/WMTS/1.0.0?">
                              <ows:Constraint name="GetEncoding">
                                  <ows:AllowedValues>
                                      <ows:Value>KVP</ows:Value>
                                  </ows:AllowedValues>
                              </ows:Constraint>
                          </ows:Get>
                      </ows:HTTP>
                  </ows:DCP>
              </ows:Operation>
              <ows:Operation name="GetTile">
                  <ows:DCP>
                      <ows:HTTP>
                          <ows:Get xlink:href="http://127.0.0.1:8699/KQGis/rest/services/china3858/MapServer/WMTS/1.0.0?">
                              <ows:Constraint name="GetEncoding">
                                  <ows:AllowedValues>
                                      <ows:Value>KVP</ows:Value>
                                  </ows:AllowedValues>
                              </ows:Constraint>
                          </ows:Get>
                      </ows:HTTP>
                  </ows:DCP>
              </ows:Operation>
              <ows:Operation name="GetFeatureInfo">
                  <ows:DCP>
                      <ows:HTTP>
                          <ows:Get xlink:href="http://127.0.0.1:8699/KQGis/rest/services/china3858/MapServer/WMTS/1.0.0?">
                              <ows:Constraint name="GetEncoding">
                                  <ows:AllowedValues>
                                      <ows:Value>KVP</ows:Value>
                                  </ows:AllowedValues>
                              </ows:Constraint>
                          </ows:Get>
                      </ows:HTTP>
                  </ows:DCP>
              </ows:Operation>
          </ows:OperationsMetadata>
          <Contents>
              <Layer>
                  <ows:Title>洪山区_行政区</ows:Title>
                  <ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
                      <ows:LowerCorner>114.167900 30.383608</ows:LowerCorner>
                      <ows:UpperCorner>114.634625 30.696201</ows:UpperCorner>
                  </ows:WGS84BoundingBox>
                  <ows:Identifier>1</ows:Identifier>
                  <Style isDefault="true">
                      <ows:Identifier>default</ows:Identifier>
                  </Style>
                  <Format>image/png</Format>
                  <InfoFormat>application/xml</InfoFormat>
                  <TileMatrixSetLink>
                      <TileMatrixSet>default028mm</TileMatrixSet>
                  </TileMatrixSetLink>
                  <TileMatrixSetLink>
                      <TileMatrixSet>GoogleMapsCompatible</TileMatrixSet>
                  </TileMatrixSetLink>
                  <ResourceURL format="image/png" resourceType="tile" template="http://127.0.0.1:8699/KQGis/rest/services/china3858/1/MapServer/WMTS/tile/1.0.0/1/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}"/>
              </Layer>
              <TileMatrixSet>
                  <ows:Title>china3858</ows:Title>
                  <ows:Abstract>
      The tile matrix set that has scale values calculated based on the dpi defined by OGC specification (dpi assumes 0.28mm as the physical distance of a pixel).
                  </ows:Abstract>
                  <ows:Identifier>default028mm</ows:Identifier>
                  <ows:SupportedCRS>urn:ogc:def:crs:EPSG::4610</ows:SupportedCRS>
                  <TileMatrix>
                      <ows:Identifier>0</ows:Identifier>
                      <ScaleDenominator>944940.476190</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>484</MatrixWidth>
                      <MatrixHeight>98</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>1</ows:Identifier>
                      <ScaleDenominator>472470.238095</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>968</MatrixWidth>
                      <MatrixHeight>196</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>2</ows:Identifier>
                      <ScaleDenominator>236235.119048</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>1935</MatrixWidth>
                      <MatrixHeight>392</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>3</ows:Identifier>
                      <ScaleDenominator>118117.559524</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>3870</MatrixWidth>
                      <MatrixHeight>783</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>4</ows:Identifier>
                      <ScaleDenominator>60476.190476</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>7558</MatrixWidth>
                      <MatrixHeight>1530</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>5</ows:Identifier>
                      <ScaleDenominator>30238.095238</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>15116</MatrixWidth>
                      <MatrixHeight>3059</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>6</ows:Identifier>
                      <ScaleDenominator>15119.047619</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>30231</MatrixWidth>
                      <MatrixHeight>6117</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>7</ows:Identifier>
                      <ScaleDenominator>7559.523810</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>60462</MatrixWidth>
                      <MatrixHeight>12234</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>8</ows:Identifier>
                      <ScaleDenominator>3779.761905</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>120923</MatrixWidth>
                      <MatrixHeight>24468</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>9</ows:Identifier>
                      <ScaleDenominator>1889.880952</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>241845</MatrixWidth>
                      <MatrixHeight>48935</MatrixHeight>
                  </TileMatrix>
              </TileMatrixSet>
              <TileMatrixSet>
                  <ows:Title>GoogleMapsCompatible</ows:Title>
                  <ows:Abstract>
      the wellknown 'GoogleMapsCompatible' tile matrix set defined by OGC WMTS specification
                  </ows:Abstract>
                  <ows:Identifier>GoogleMapsCompatible</ows:Identifier>
                  <ows:SupportedCRS>urn:ogc:def:crs:EPSG:6.18.3:4610</ows:SupportedCRS>
                  <WellKnownScaleSet>urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible</WellKnownScaleSet>
                  <TileMatrix>
                      <ows:Identifier>0</ows:Identifier>
                      <ScaleDenominator>944940.476190</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>484</MatrixWidth>
                      <MatrixHeight>98</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>1</ows:Identifier>
                      <ScaleDenominator>472470.238095</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>968</MatrixWidth>
                      <MatrixHeight>196</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>2</ows:Identifier>
                      <ScaleDenominator>236235.119048</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>1935</MatrixWidth>
                      <MatrixHeight>392</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>3</ows:Identifier>
                      <ScaleDenominator>118117.559524</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>3870</MatrixWidth>
                      <MatrixHeight>783</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>4</ows:Identifier>
                      <ScaleDenominator>60476.190476</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>7558</MatrixWidth>
                      <MatrixHeight>1530</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>5</ows:Identifier>
                      <ScaleDenominator>30238.095238</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>15116</MatrixWidth>
                      <MatrixHeight>3059</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>6</ows:Identifier>
                      <ScaleDenominator>15119.047619</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>30231</MatrixWidth>
                      <MatrixHeight>6117</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>7</ows:Identifier>
                      <ScaleDenominator>7559.523810</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>60462</MatrixWidth>
                      <MatrixHeight>12234</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>8</ows:Identifier>
                      <ScaleDenominator>3779.761905</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>120923</MatrixWidth>
                      <MatrixHeight>24468</MatrixHeight>
                  </TileMatrix>
                  <TileMatrix>
                      <ows:Identifier>9</ows:Identifier>
                      <ScaleDenominator>1889.880952</ScaleDenominator>
                      <TopLeftCorner>90.000000 -180.000000</TopLeftCorner>
                      <TileWidth>256</TileWidth>
                      <TileHeight>256</TileHeight>
                      <MatrixWidth>241845</MatrixWidth>
                      <MatrixHeight>48935</MatrixHeight>
                  </TileMatrix>
              </TileMatrixSet>
          </Contents>
          <ServiceMetadataURL xlink:href="http://127.0.0.1:8699/KQGis/rest/services/china3858/MapServer/WMTS/1.0.0/WMTSCapabilities.xml"/>
      </Capabilities>

GETTILE

  • 接口功能

    GetTile接口,用于获取服务器提供的瓦片资源图片。支持1.0.0版本

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/MapServer/WMTS
  • 请求json示例

    {
    	"request":"GetTile",
    	"layer":"4",
    	"tileMatrix":"3",
    	"format":"PNG",
    	"tileCol":"474",
    	"tileRow":"234"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法,固定为”GetTile“
    version string WMTS版本号,默认为1.0.0
    layer int 图层ID
    format string 图片格式,可选项,值为“png”或“jpg”,默认为“jpg”
    tileMatrix int 瓦片的比例尺级别
    tileCol int 瓦片的列号
    tileRow int 瓦片的行号
  • 返回结果

    • 正确

    • 错误

WFS

GetCapabilities

  • 接口功能

    GetCapabilities接口,用于获取WFS服务支持的功能描述的元数据信息,返回web要素服务性描述文档,指出可提供服务的要素类型,并提供每个要素类型支持哪些操作。支持1.0.0和1.1.0版本

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/MapServer/WFS
  • 请求json示例

    {
    	"request":"GetCapabilities"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法,固定为”GetCapabilities“
    service string 服务类型,固定为“WFS”
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wfs:WFS_Capabilities
        xmlns:wfs="http://www.opengis.net/wfs"
        xmlns:ogc="http://www.opengis.net/ogc"
        xmlns:gml="http://www.opengis.net/gml"
        xmlns:ows="http://www.opengis.net/ows"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xlink="http://www.w3.org/1999/xlink"
        xmlns:world="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/base/gml.xsd http://www.opengis.net/ogc http://schemas.opengis.net/filter/1.1.0/filter.xsd http://schemas.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsAll.xsd http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
        <ows:ServiceIdentification>
            <ows:Title>world</ows:Title>
            <ows:Abstract />
            <ows:Keywords />
            <ows:ServiceType>WFS</ows:ServiceType>
            <ows:ServiceTypeVersion>1.1.0</ows:ServiceTypeVersion>
            <ows:Fees />
            <ows:AccessConstraints />
        </ows:ServiceIdentification>
        <ows:ServiceProvider>
            <ows:ProviderName />
            <ows:ServiceContact>
                <ows:IndividualName />
                <ows:PositionName />
                <ows:ContactInfo>
                    <ows:Phone>
                        <ows:Voice />
                        <ows:Facsimile />
                    </ows:Phone>
                    <ows:Address>
                        <ows:DeliveryPoint />
                        <ows:City />
                        <ows:AdministrativeArea />
                        <ows:PostalCode />
                        <ows:Country />
                        <ows:ElectronicMailAddress />
                    </ows:Address>
                    <ows:OnlineResource xlink:href="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS" />
                    <ows:HoursOfService />
                    <ows:ContactInstructions />
                </ows:ContactInfo>
            </ows:ServiceContact>
        </ows:ServiceProvider>
        <ows:OperationsMetadata>
            <ows:Operation name="GetCapabilities">
                <ows:DCP>
                    <ows:HTTP>
                        <ows:Get xlink:href="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS?" />
                        <ows:Post xlink:href="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS" />
                    </ows:HTTP>
                </ows:DCP>
                <ows:Parameter name="AcceptVersions">
                    <ows:Value>1.0.0</ows:Value>
                    <ows:Value>1.1.0</ows:Value>
                </ows:Parameter>
                <ows:Parameter name="AcceptFormats">
                    <ows:Value>text/xml</ows:Value>
                </ows:Parameter>
            </ows:Operation>
            <ows:Operation name="DescribeFeatureType">
                <ows:DCP>
                    <ows:HTTP>
                        <ows:Get xlink:href="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS?" />
                        <ows:Post xlink:href="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS" />
                    </ows:HTTP>
                </ows:DCP>
                <ows:Parameter name="outputFormat">
                    <ows:Value>text/xml; subType=gml/3.1.1/profiles/gmlsf/1.0.0/0</ows:Value>
                </ows:Parameter>
            </ows:Operation>
            <ows:Operation name="GetFeature">
                <ows:DCP>
                    <ows:HTTP>
                        <ows:Get xlink:href="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS?" />
                        <ows:Post xlink:href="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS" />
                    </ows:HTTP>
                </ows:DCP>
                <ows:Parameter name="resultType">
                    <ows:Value>results</ows:Value>
                    <ows:Value>hits</ows:Value>
                </ows:Parameter>
                <ows:Parameter name="outputFormat">
                    <ows:Value>text/xml; subType=gml/3.1.1/profiles/gmlsf/1.0.0/0</ows:Value>
                </ows:Parameter>
            </ows:Operation>
            <ows:ExtendedCapabilities>
                <ows:Constraint name="serviceAxisOrderForSwappableSRS">
                    <ows:Value>latitude,longitude</ows:Value>
                </ows:Constraint>
            </ows:ExtendedCapabilities>
        </ows:OperationsMetadata>
        <wfs:FeatureTypeList>
            <wfs:FeatureType>
                <wfs:Name>world:layer1</wfs:Name>
                <wfs:Title>layer1</wfs:Title>
                <wfs:DefaultSRS>urn:ogc:def:crs:EPSG:6.9:4326</wfs:DefaultSRS>
                <wfs:OtherSRS>urn:ogc:def:crs:EPSG:6.9:4326</wfs:OtherSRS>
                <wfs:OutputFormats />
                <ows:WGS84BoundingBox>
                    <ows:LowerCorner>-180.000000 -90.000000</ows:LowerCorner>
                    <ows:UpperCorner>180.000000 83.623597</ows:UpperCorner>
                </ows:WGS84BoundingBox>
            </wfs:FeatureType>
            <wfs:FeatureType>
                <wfs:Name>world:layer2</wfs:Name>
                <wfs:Title>layer2</wfs:Title>
                <wfs:DefaultSRS>urn:ogc:def:crs:EPSG:6.9:4326</wfs:DefaultSRS>
                <wfs:OtherSRS>urn:ogc:def:crs:EPSG:6.9:4326</wfs:OtherSRS>
                <wfs:OutputFormats />
                <ows:WGS84BoundingBox>
                    <ows:LowerCorner>73.486463 18.158588</ows:LowerCorner>
                    <ows:UpperCorner>135.086652 53.561573</ows:UpperCorner>
                </ows:WGS84BoundingBox>
            </wfs:FeatureType>
            <wfs:FeatureType>
                <wfs:Name>world:layer3</wfs:Name>
                <wfs:Title>layer3</wfs:Title>
                <wfs:DefaultSRS>urn:ogc:def:crs:EPSG:6.9:4326</wfs:DefaultSRS>
                <wfs:OtherSRS>urn:ogc:def:crs:EPSG:6.9:4326</wfs:OtherSRS>
                <wfs:OutputFormats />
                <ows:WGS84BoundingBox>
                    <ows:LowerCorner>73.486463 18.158588</ows:LowerCorner>
                    <ows:UpperCorner>135.086652 53.561573</ows:UpperCorner>
                </ows:WGS84BoundingBox>
            </wfs:FeatureType>
            <wfs:FeatureType>
                <wfs:Name>world:layer4</wfs:Name>
                <wfs:Title>layer4</wfs:Title>
                <wfs:DefaultSRS>urn:ogc:def:crs:EPSG:6.9:4326</wfs:DefaultSRS>
                <wfs:OtherSRS>urn:ogc:def:crs:EPSG:6.9:4326</wfs:OtherSRS>
                <wfs:OutputFormats />
                <ows:WGS84BoundingBox>
                    <ows:LowerCorner>73.486463 18.158588</ows:LowerCorner>
                    <ows:UpperCorner>135.086652 53.561573</ows:UpperCorner>
                </ows:WGS84BoundingBox>
            </wfs:FeatureType>
        </wfs:FeatureTypeList>
        <ogc:Filter_Capabilities>
            <ogc:Spatial_Capabilities>
                <ogc:GeometryOperands />
                <ogc:Spatial_Operators />
            </ogc:Spatial_Capabilities>
            <ogc:Scalar_Capabilities>
                <ogc:LogicalOperators />
                <ogc:ComparisonOperators />
            </ogc:Scalar_Capabilities>
            <ogc:Id_Capabilities>
                <ogc:EID />
                <ogc:FID />
            </ogc:Id_Capabilities>
        </ogc:Filter_Capabilities>
    </wfs:WFS_Capabilities>

DescribeFeatureType

  • 接口功能

    DescribeFeatureType接口用于返回给定要素的结构信息。支持1.0.0和1.1.0版本

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/MapServer/WFS
  • 请求json示例

    {
    	"request":"DescribeFeatureType",
        "service":"WFS",
        "typename":"layer1"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法,固定为”DescribeFeatureType“
    service string 服务类型,固定为“WFS”
    typename string 图层名,可选项,如果无此参数则输出所有图层,否则只输出该图层
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <xs:schema    xmlns:world="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS"
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:gml="http://www.opengis.net/gml" targetNamespace="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS" elementFormDefault="qualified">
        <xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/feature.xsd" />
        <xs:element name="layer1" type="world:layer1Type" substitutionGroup="gml:_Feature" />
        <xs:complexType name="layer1Type">
            <xs:complexContent>
                <xs:extension base="gml:AbstractFeatureType">
                    <xs:sequence>
                        <xs:element name="Shape" type="gml:SurfacePropertyType" />
                        <xs:element name="OBJECTID" type="xs:int" />
                        <xs:element name="FIPS_CNTRY">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="2" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="GMI_CNTRY">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="3" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="CNTRY_NAME">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="40" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="SOVEREIGN">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="40" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="POP_CNTRY" type="xs:int" />
                        <xs:element name="SQKM_CNTRY" type="xs:double" />
                        <xs:element name="SQMI_CNTRY" type="xs:double" />
                        <xs:element name="CURR_TYPE">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="16" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="CURR_CODE">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="4" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="LANDLOCKED">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="1" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="COLOR_MAP">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="1" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="SHAPE_AREA" type="xs:double" />
                        <xs:element name="SHAPE_LEN" type="xs:double" />
                        <xs:element name="NAME">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="32" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="FID" type="xs:int" />
                    </xs:sequence>
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>
    </xs:schema>

GetFeature

  • 接口功能

    GetFeature接口用于返回符合GML规范的要素数据信息。支持1.0.0和1.1.0版本

  • 请求地址

    • 使用bbox查询
    http://127.0.0.1:8699/KQGis/rest/services/smx/MapServer/WFS?request= GetFeature&outSRS=EPSG:4326&typename=layer1&bbox=114.0,30.1,114.5,30.2&maxFeatures=1
    • 使用过滤条件查询
    http://127.0.0.1:8699/KQGis/rest/services/smx/MapServer/WFS?request= GetFeature&outSRS=EPSG:4326&typename=layer3&filter=(<Filter><PropertyIsEqualTo><PropertyName>XZQMC</PropertyName><Literal>野鹿村</Literal></PropertyIsEqualTo></Filter>)&maxFeatures=1
  • 过滤条件

    • 属性查询

      • 支持的操作符

        操作符 说明
        PropertyIsEqualTo 等于
        PropertyIsNotEqualTo 不等于
        PropertyIsLessThan 小于
        PropertyIsGreaterThan 大于
        PropertyIsLessThanOrEqualTo 小于或等于
        PropertyIsGreaterThanOrEqualTo 大于或等于
        PropertyIsLike 模糊匹配
        PropertyIsNull 为空
        PropertyIsNotNull 不为空
        PropertyIsBetween 在...之间
      • 示例

        PropertyIsEqualTo

        <PropertyIsEqualTo>
            <PropertyName>XZQMC</PropertyName>
            <Literal>野鹿村</Literal>
        </PropertyIsEqualTo> 

        PropertyIsNotEqualTo

        <PropertyIsNotEqualTo>
            <PropertyName>%s</PropertyName>
            <Literal>%s</Literal>
        </PropertyIsNotEqualTo> 

        PropertyIsLessThan

        <PropertyIsLessThan>
            <PropertyName>%s</PropertyName>
            <Literal>%s</Literal>
        </PropertyIsLessThan> 

        PropertyIsGreaterThan

        <PropertyIsGreaterThan>
            <PropertyName>%s</PropertyName>
            <Literal>%s</Literal>
        </PropertyIsGreaterThan> 

        PropertyIsLessThanOrEqualTo

        <PropertyIsLessThanOrEqualTo>
            <PropertyName>%s</PropertyName>
            <Literal>%s</Literal>
        </PropertyIsLessThanOrEqualTo> 

        PropertyIsGreaterThanOrEqualTo

        <PropertyIsGreaterThanOrEqualTo>
            <PropertyName>%s</PropertyName>
            <Literal>%s</Literal>
        </PropertyIsGreaterThanOrEqualTo> 

        PropertyIsLike

        <PropertyIsLike wildCard="*" singleChar="?" escapeChar="!" matchCase="false">
            <PropertyName>SWS_CD</PropertyName>
            <Literal>42*</Literal>
        </PropertyIsLike>
        属性 是否必填 说明
        wildCard 任意字符串的通配符
        singleChar 任意单个字符的通配符
        escapeChar 用作去除通配符的含义
        matchCase 大小写匹配,默认为false

        PropertyIsNull

        <PropertyIsNull>
            <PropertyName>%s</PropertyName>
        </PropertyIsNull>

        PropertyIsNotNull

        <PropertyIsNotNull>
            <PropertyName>%s</PropertyName>
        </PropertyIsNotNull>

        PropertyIsBetween

        <PropertyIsBetween>
            <PropertyName>SWS_CD</PropertyName>
            <LowerBoundary>
                <Literal>420000000000</Literal>
            </LowerBoundary>
            <UpperBoundary>
                <Literal>420000000009</Literal>
            </UpperBoundary>
        </PropertyIsBetween>
    • 空间查询

      • 支持的操作符

        操作符 说明
        Euqals 相等,几何形状拓扑上相等。
        Disjoint 脱节,几何形状没有共有的点。
        Intersects 相交,几何形状至少有一个共有点(区别于脱节)。
        Touches 接触,几何形状有至少一个公共的边界点,但是没有内部点。
        Within 内含,几何形状A的线都在几何形状B内部。
        Overlaps 叠加,几何形状共享一部份但不是所有的公共点,而且相交处有它们自己相同的区域。
        Crosses 交叉,几何形状共享一些但不是所有的内部点。
        Contains 包含,几何形状B的线都在几何形状A内部(区别于内含)
      • 示例

    • 组合查询

      • 支持的操作符

        操作符 说明
        And
        Or
        Not
      • 示例

  • 请求json示例

    {
    	"request":"GetFeature",
    	"outSRS":"EPSG:4326",
    	"typename":"layer1",
    	"bbox":"14.0,30.1,114.5,30.2",
    	"maxFeatures":1000
    }
  • 请求参数说明

名称 必填 类型 说明
request string 请求方法,固定为”GetFeature“
version string WFS服务版本,可选项,默认为1.1.0,支持1.0.0和1.1.0
service string 服务类型,固定为“WFS”
outSRS string 输出结果图形的空间参考
typename string 图层名,可选项,如果无此参数则输出所有图层,否则只输出该图层
bbox string 用于框选查询的外接矩形,与参数filter不可同时出现
filter string 过滤条件,与参数bbox不可同时出现
maxFeatures int 请求的最大要素数,默认为1000
outputFormat string 输出格式,可选项,支持gml2,gml3和json格式;若version为1.0.0,则outputFormat默认为gm12;若version为1.1.0,则outputFormat默认为gm13
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wfs:FeatureCollection xmlns:world="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://127.0.0.1:8699/KQGis/rest/services/world/MapServer/WFS http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/WFS-basic.xsd">
        <gml:boundedBy>
            <gml:Envelope srsName="urn:ogc:def:crs:EPSG:6.9:4326">
                <gml:lowerCorner>29.969811 114.030105</gml:lowerCorner>
                <gml:upperCorner>30.535795 114.592430</gml:upperCorner>
            </gml:Envelope>
        </gml:boundedBy>
        <gml:featureMember>
            <world:layer2>
                <world:FID>0</world:FID>
                <world:Shape>
                    <gml:Polygon>
                        <gml:exterior>
                            <gml:LinearRing>
                                <gml:posList>30.4595960033419 114.583647999886 30.4574320028255 114.582205999285 30.4445200029791 114.581679000121 30.4403860035524 114.577528999461 30.4382110028806 114.577437999679 30.4275210028512 114.583945999693 30.4240950035031 114.584936999468 30.415651003439 114.584182999815 30.4129930035604 114.586752999383 30.3923670035723 114.583999999645 30.3676200033052 114.582717999983 30.3615150031578 114.584632999469 30.3499100030855 114.590949999573 30.3419570035502 114.592429999867 30.3166330035367 114.586730999835 30.2944100029286 114.588372000154 30.2871810028716 114.584557000111 30.2790060027988 114.571113999585 30.2783230032266 114.56736799995 30.2760330033981 114.563979999604 30.2680200034229 114.561698999257 30.2567820033825 114.561530999649 30.2509760034264 114.556701999628 30.237266002979 114.538170000116 30.2297370032549 114.537200999649 30.2212690031232 114.538101000064 30.2052010029669 114.534209999542 30.1972030033995 114.528441999367 30.1949080027243 114.524856999765 30.1936970035101 114.516631999928 30.1911790034828 114.513648999627 30.188008003046 114.512337000268 30.1789580034641 114.513443000093 30.1768630032216 114.511382999664 30.1751330031353 114.506668000025 30.1734050034075 114.506370000066 30.1691880033031 114.508437999971 30.1643300030765 114.513290000193 30.1577120030984 114.504256999571 30.1537800031956 114.501837999939 30.1476680035352 114.503814999643 30.141109003373 114.498869999785 30.1367350032934 114.497840999555 30.1263690032683 114.498984999946 30.119588003344 114.50558499995 30.1154450032254 114.512008999365 30.1092960029453 114.511077999604 30.1030660032515 114.512528 30.0994850033583 114.521965999714 30.0952210035385 114.528251999598 30.0883240027549 114.527336999509 30.0866140030507 114.528427999446 30.0800550028523 114.538315999559 30.0772580028769 114.539161999493 30.0697150028437 114.537476999632 30.0662220034398 114.540635000047 30.0611360028321 114.538704999413 30.0568350032875 114.538727999973 30.0408970035134 114.54709799974 30.0353570028504 114.552216999784 30.032870003235 114.550882000244 30.0285740030092 114.543855000109 30.0253010027917 114.543396999719 30.023984002899 114.53999499998 30.0267610033299 114.530388999934 30.0248000034459 114.52917599936 30.0180050032659 114.5312969996 30.0128470028656 114.535615 30.0092860033984 114.535164999348 30.0000570032077 114.531754999756 29.9980240030415 114.527681999519 29.9949010026951 114.525338999293 29.9938640031921 114.531075999448 29.9927780029831 114.531808000222 29.9905890031215 114.531472999619 29.9863420032831 114.526146999442 29.9829710029281 114.532448999544 29.9797120034327 114.533204999978 29.9769000029986 114.532334999528 29.9698110031436 114.525040999455 29.9770950032727 114.51872399992 29.9770240030913 114.510674999415 29.9780870029616 114.507256999458 29.9954710026552 114.484505000172 29.9951330028876 114.481460999284 29.9894860027458 114.476158999519 29.9886740028867 114.473297999416 29.9957560027944 114.464622999938 30.0038870026467 114.445442000182 30.0104660027502 114.423102999537 30.0232890033262 114.399833000022 30.0264460030801 114.389425999843 30.0269820031829 114.380125999698 30.0304200033364 114.365819999739 30.0354020028846 114.355298999363 30.0284470034724 114.340367999974 30.0290270033342 114.32718399999 30.0203360031702 114.318357000104 30.0151090035499 114.300823999335 30.0089280029632 114.291348000058 30.0020070027702 114.258846999481 30.0006050031091 114.247417999523 29.9959550030054 114.238820999426 29.996059003323 114.232034999426 30.000056002916 114.2277260001 30.0122300030868 114.203600999368 30.0180700033629 114.206896999664 30.0259310028642 114.206843999297 30.0342790028193 114.202167000032 30.0431020032919 114.192270999445 30.0477610034496 114.189654999314 30.054568003038 114.188831000202 30.066014002843 114.190798999407 30.0735850031389 114.190676999719 30.0890610027793 114.186746999846 30.0919550030453 114.185030999523 30.0958840027804 114.170702000189 30.1032870035842 114.164522999528 30.1042610035715 114.155336999629 30.106187003047 114.153971000093 30.1119920029846 114.154748999757 30.1133860030298 114.145883000088 30.1177310030181 114.145051999902 30.1309400031898 114.149256000089 30.1413490031863 114.147828999901 30.1447540028645 114.146036000088 30.1493060032935 114.141037999622 30.154595003534 114.138467000114 30.1568110033959 114.13425600025 30.1710780030094 114.122528999524 30.1874020034897 114.112167999474 30.1936010030468 114.111625999528 30.1970230033551 114.109817999284 30.1988500031049 114.10312700009 30.2007270035758 114.102424999365 30.2038000031857 114.103996999786 30.2084040031878 114.101837999212 30.2105960034989 114.099472000065 30.2107190033121 114.096894 30.2081830032906 114.09469599938 30.2055670031223 114.086532999416 30.2074680029033 114.082008000073 30.2061710031254 114.077605999417 30.2124290027402 114.07163999982 30.2126700030304 114.069130000241 30.2111330032841 114.064087000075 30.2063930031184 114.058929000106 30.2060060029545 114.056563999368 30.2083800035778 114.051886999649 30.2033900027866 114.042449999929 30.2025320032684 114.036398999306 30.2038000027926 114.030692999301 30.2061930033543 114.030105000057 30.2078810030914 114.031379000016 30.2194130033167 114.046652999465 30.2205210028182 114.050581999569 30.2268770032613 114.056624999517 30.2505170031834 114.075293999498 30.2582720029554 114.078994999513 30.2819020032577 114.085586000212 30.3165430034784 114.091911000153 30.3351850028434 114.098372999712 30.3452280029518 114.104938999663 30.3486790029944 114.108473999839 30.3565060031783 114.122481999493 30.3621970034391 114.129539999739 30.3782630034746 114.142760999974 30.4051130029906 114.168579000209 30.3937250031892 114.18263299982 30.3911240028838 114.187454999913 30.3933670035231 114.191108999719 30.4053200031805 114.195709999318 30.4073000032824 114.200554999427 30.4032000035046 114.20527800004 30.391362003604 114.210724999436 30.3870950032983 114.215654000052 30.3864190030999 114.21990299941 30.3933550029456 114.22938699958 30.4201130034675 114.22814300014 30.4252500029595 114.229744999827 30.4284090032376 114.233300999509 30.4280470031999 114.238800999359 30.4192380030365 114.246415999387 30.4160750028977 114.252450999433 30.4168980027844 114.25731799933 30.422625002962 114.266442999295 30.4218090035507 114.272218999967 30.4315790034353 114.273835999263 30.4338070028837 114.276499000075 30.4395260029578 114.278809999432 30.4418630032665 114.281466000096 30.4484010029352 114.281580000075 30.4516730032708 114.285005999648 30.4500860034571 114.292382999249 30.4446160032763 114.298135999646 30.4458820030214 114.30181299926 30.4376200027335 114.304652000128 30.4373200035306 114.307168999679 30.4312040034514 114.318361999469 30.4300360030509 114.330889999261 30.4314000034319 114.333635999473 30.4427150032247 114.341639999672 30.4458530028492 114.350962999625 30.4523030035825 114.359148999365 30.4591150034113 114.361643999648 30.4655540028653 114.359508000065 30.4737250030435 114.364550999728 30.4818520030086 114.366945999467 30.4844710031593 114.369402999975 30.4848580028738 114.371577999553 30.4830540031267 114.384127999904 30.4802240027871 114.393588999294 30.4777320035744 114.395236999899 30.4721420031336 114.393832999243 30.4687330029434 114.395633999576 30.4690430035571 114.403895999717 30.4727450029458 114.409633999797 30.4904030030779 114.419902999378 30.4937450035743 114.427501999692 30.494997002813 114.434291999319 30.495969003431 114.444729000035 30.4953850027637 114.451299000228 30.4927240033342 114.457242000109 30.4855000027453 114.457134999563 30.4782400031951 114.469540999722 30.4722140033545 114.46563499958 30.4688330029584 114.465642000116 30.4670150029802 114.466740999847 30.4654750033163 114.471005999964 30.4594460035108 114.474377999525 30.4594550029233 114.478611999327 30.462991002875 114.487997000183 30.4591930032009 114.491185999474 30.4588610034459 114.495496999393 30.4676280029961 114.498486999271 30.4682690032159 114.499463999235 30.4662390033404 114.501294999376 30.4734230028904 114.509679999348 30.481427003553 114.511891999418 30.490744003068 114.520558999723 30.5010530032978 114.519811999893 30.5138100034815 114.524969000152 30.5316160031552 114.538236000016 30.5353590031181 114.542592999549 30.5357950033808 114.545164000013 30.5311060033042 114.557120000021 30.5323330033645 114.566297999942 30.5315050031423 114.572203000277 30.5290080034128 114.578016999338 30.5268000031308 114.579519999741 30.5194150030897 114.580466000052 30.5153160031805 114.579229999902 30.5071130028789 114.574964999568 30.495387003068 114.566000999254 30.4932080032631 114.565649999393 30.4911440028632 114.581182999718 30.4871890027189 114.588676000112 30.468134003086 114.576361999832 30.46422800302 114.576239999953 30.4595960033419 114.583647999886</gml:posList>
                            </gml:LinearRing>
                        </gml:exterior>
                    </gml:Polygon>
                </world:Shape>
                <world:FID_quangu>0</world:FID_quangu>
                <world:Id>0</world:Id>
                <world:FID_县>3321</world:FID_县>
                <world:名称>武汉市江夏区</world:名称>
                <world:代码>420115</world:代码>
                <world:面积>2015.195</world:面积>
                <world:周长>242.654</world:周长>
                <world:颜色>5</world:颜色>
                <world:MaxSimpTol>220.0</world:MaxSimpTol>
                <world:MinSimpTol>80.0</world:MinSimpTol>
                <world:县代码>420115</world:县代码>
                <world:县名称>武汉市江夏区</world:县名称>
                <world:市代码>420100</world:市代码>
                <world:市名称>武汉市</world:市名称>
                <world:省代码>420000</world:省代码>
                <world:省名称>湖北省</world:省名称>
                <world:FID>576</world:FID>
            </world:layer2>
        </gml:featureMember>
    </wfs:FeatureCollection>

WPS

GetCapabilities

  • 接口功能

    获取wps所支持的所有功能描述

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"GetCapabilities"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:Capabilities xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://schemas.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd">
        <ows:ServiceIdentification>
            <ows:Title>KQGIS Server WPS</ows:Title>
            <ows:Abstract />
            <ows:ServiceType>WPS</ows:ServiceType>
            <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
        </ows:ServiceIdentification>
        <ows:ServiceProvider>
            <ows:ProviderName>KQGIS</ows:ProviderName>
            <ows:ProviderSite xlink:href="http://www.kanq.com.cn" />
            <ows:ServiceContact>
                <ows:IndividualName />
                <ows:PositionName />
                <ows:ContactInfo>
                    <ows:Phone>
                        <ows:Voice />
                        <ows:Facsimile />
                    </ows:Phone>
                    <ows:Address>
                        <ows:DeliveryPoint />
                        <ows:City />
                        <ows:AdministrativeArea />
                        <ows:PostalCode />
                        <ows:Country />
                        <ows:ElectronicMailAddress />
                    </ows:Address>
                    <ows:OnlineResource xlink:href="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" />
                    <ows:HoursOfService>24x7</ows:HoursOfService>
                    <ows:ContactInstructions />
                </ows:ContactInfo>
                <ows:Role />
            </ows:ServiceContact>
        </ows:ServiceProvider>
        <ows:OperationsMetadata>
            <ows:Operation name="GetCapabilities">
                <ows:DCP>
                    <ows:HTTP>
                        <ows:Get xlink:href="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer?" />
                        <ows:Post xlink:href="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" />
                    </ows:HTTP>
                </ows:DCP>
            </ows:Operation>
            <ows:Operation name="DescribeProcess">
                <ows:DCP>
                    <ows:HTTP>
                        <ows:Get xlink:href="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer?" />
                        <ows:Post xlink:href="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" />
                    </ows:HTTP>
                </ows:DCP>
            </ows:Operation>
            <ows:Operation name="Execute">
                <ows:DCP>
                    <ows:HTTP>
                        <ows:Get xlink:href="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer?" />
                        <ows:Post xlink:href="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" />
                    </ows:HTTP>
                </ows:DCP>
            </ows:Operation>
        </ows:OperationsMetadata>
        <wps:ProcessOfferings>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Boundary</ows:Identifier>
                <ows:Title>Boundary Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Buffer</ows:Identifier>
                <ows:Title>Buffer Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Centroid</ows:Identifier>
                <ows:Title>Centroid Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Contains</ows:Identifier>
                <ows:Title>Contains Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>ConvexHull</ows:Identifier>
                <ows:Title>ConvexHull Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Crosses</ows:Identifier>
                <ows:Title>Crosses Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Difference</ows:Identifier>
                <ows:Title>Difference Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Disjoint</ows:Identifier>
                <ows:Title>Disjoint Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Distance</ows:Identifier>
                <ows:Title>Distance Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Equals</ows:Identifier>
                <ows:Title>Equals Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Intersection</ows:Identifier>
                <ows:Title>Intersection Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Intersects</ows:Identifier>
                <ows:Title>Intersects Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>SymDifference</ows:Identifier>
                <ows:Title>SymDifference Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Touches</ows:Identifier>
                <ows:Title>Touches Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
            <wps:Process wps:processVersion="1.0.0">
                <ows:Identifier>Union</ows:Identifier>
                <ows:Title>Union Analysis</ows:Title>
                <ows:Abstract></ows:Abstract>
            </wps:Process>
        </wps:ProcessOfferings>
        <wps:Languages>
            <wps:Default>
                <ows:Language>en</ows:Language>
            </wps:Default>
            <wps:Supported>
                <ows:Language>en</ows:Language>
            </wps:Supported>
        </wps:Languages>
    </wps:Capabilities>

DescribeProcess

  • 接口功能

    单个处理过程的功能描述。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"DescribeProcess",
    	"identifier":"buffer"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string 过程方法的名称,如“Boundary”、“Buffer”等,如果为“All”则输出所有支持的过程方法功能描述
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ProcessDescriptions xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en" service="WPS" version="1.0.0" xsi:schemaLocation="http://schemas.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsDescribeProcess_response.xsd">
        <ProcessDescription wps:processVersion="1.0.0" statusSupported="false" storeSupported="true">
            <ows:Identifier>buffer</ows:Identifier>
            <ows:Title>缓冲区分析</ows:Title>
            <ows:Abstract></ows:Abstract>
            <DataInputs>
                <Input minOccurs="1" maxOccurs="1">
                    <ows:Identifier>GMLInput</ows:Identifier>
                    <ows:Title>GMLInput</ows:Title>
                    <ComplexData>
                        <Default>
                            <Format>
                                <MimeType>txt/xml</MimeType>
                                <Encoding>UTF-8</Encoding>
                                <Schema>http://schemas.opengis.net/gml/3.1.1/base/geometryComplexes.xsd</Schema>
                            </Format>
                        </Default>
                        <Supported>
                            <Format>
                                <MimeType>txt/xml</MimeType>
                                <Encoding>UTF-8</Encoding>
                                <Schema>http://schemas.opengis.net/gml/3.1.1/base/geometryComplexes.xsd</Schema>
                            </Format>
                        </Supported>
                    </ComplexData>
                </Input>
                <Input minOccurs="1" maxOccurs="1">
                    <ows:Identifier>BufferDistance</ows:Identifier>
                    <ows:Title>Buffer distance</ows:Title>
                    <LiteralData>
                        <ows:DataType>http://www.w3.org/TR/xmlschema-2/#double</ows:DataType>
                        <Default>
                            <ows:UOM>unity</ows:UOM>
                        </Default>
                        <Supported>
                            <ows:UOM>unity</ows:UOM>
                        </Supported>
                    </LiteralData>
                </Input>
            </DataInputs>
            <ProcessOutputs>
                <Output>
                    <ows:Identifier>BufferedGeometry</ows:Identifier>
                    <ows:Title>BufferedGeometry</ows:Title>
                    <ComplexOutput>
                        <Default>
                            <Format>
                                <MimeType>txt/xml</MimeType>
                                <Encoding>UTF-8</Encoding>
                                <Schema>http://schemas.opengis.net/gml/3.1.1/base/geometryComplexes.xsd</Schema>
                            </Format>
                        </Default>
                        <Supported>
                            <Format>
                                <MimeType>txt/xml</MimeType>
                                <Encoding>UTF-8</Encoding>
                                <Schema>http://schemas.opengis.net/gml/3.1.1/base/geometryComplexes.xsd</Schema>
                            </Format>
                        </Supported>
                    </ComplexOutput>
                </Output>
            </ProcessOutputs>
        </ProcessDescription>
    </wps:ProcessDescriptions>

Boundary

  • 接口功能

    返回 geometry 实例的边界。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"boundary",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Boundary</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>29.9366939630433,112.922310544931 29.936355127796,112.922588465977 29.9324191413312,112.925991951951 29.9286655214823,112.929595567393 29.9251044314403,112.933389555261 29.9217455131078,112.937363643064 29.9185978609936,112.941507070678 29.915669997588,112.945808619481 29.912969850288,112.950256642726 29.910504729933,112.954839097075 29.9082813110105,112.95954357521 29.9063056135843,112.964357339424 29.9045829869947,112.96926735611 29.9031180953748,112.974260331052 29.9019149050222,112.979322745417 29.9009766736597,112.984440892361 29.9003059416149,112.989600914139 29.8999045249423,112.994788839628 29.8997735105059,112.999990622154 29.8999132530364,113.005192177523 29.9003233741711,113.010379422156 29.9010027634781,113.015538311222 29.9019495814629,113.020654876665 29.9031612645489,113.025715265022 29.9046345320185,113.030705774935 29.906365394896,113.035612894245 29.908349166748,113.040423336581 29.9105804763721,113.04512407733 29.9130532823399,113.049702388904 29.9157608893545,113.054145875202 29.9186959663789,113.058442505171 29.9190024409564,113.058867001014 29.9221895144046,113.063045494147 29.9255916997536,113.067050787755 29.9291996011059,113.070871820319 29.9330032544329,113.074498039203 29.9369921550932,113.077919429791 29.9411552868433,113.081126543144 29.9454811522615,113.0841105221 29.9499578045005,113.086863125733 29.9545728802816,113.08937675211 29.9593136340382,113.091644459289 29.9641669731159,113.093659984487 29.9691194939308,113.09541776138 29.9741575189862,113.096912935474 29.9767998329287,113.097548194509 29.977095358607,113.097626720022 29.977348173233,113.097680025223 29.9792671346465,113.098141377508 29.981502813835,113.098556018657 29.9821741251722,113.098697562627 29.9827762715006,113.098792201001 29.9844342295624,113.099099694866 29.9862673337434,113.09934088566 29.9873016131189,113.099503441692 29.9882742387387,113.099604944305 29.9896445336427,113.09978524094 29.9910825618557,113.099898019184 29.9924640087004,113.10004218613 29.9938259266304,113.10011316925 29.9948836574647,113.100196122439 29.9959373267155,113.100223215355 29.9976474041268,113.100312344535 29.9994148296184,113.100312632118 30.0001371320132,113.100331204623 30.0008201420592,113.10031286078 30.0028378350335,113.100313189084 30.0050241329592,113.100199952702 30.0053904486405,113.100190114432 30.0057192342344,113.10016395086 30.0080213181018,113.1000447175 30.0131838887309,113.099507653063 30.0183116386595,113.098703442655 30.0233907534349,113.097634252865 30.0284075496306,113.09630296415 30.0333485117099,113.094713163081 30.0334950865079,113.094661766724 30.0383303243451,113.092824533204 30.0430640943904,113.090739737504 30.0476837314647,113.088412957487 30.0521768757514,113.085850418439 30.0565315058644,113.083058976423 30.0607359710117,113.080046099928 30.0647790221672,113.076819849891 30.0686498421669,113.073388858127 30.0723380746503,113.06976230424 30.0758338517694,113.065949891056 30.0791278205891,113.061961818669 30.0822111681117,113.057808757147 30.0850756448558,113.053501817987 30.0877135869275,113.049052524383 30.0901179365256,113.044472780399 30.0922822608243,113.039774839118 30.0942007691842,113.034971269859 30.0958683286455,113.030074924549 30.0972804776608,113.025098903337 30.0984334380324,113.020056519542 30.0993241250201,113.014961264039 30.0999501555953,113.00982676916 30.1003098548161,113.00466677222 30.1004022603091,112.999495078766 30.1003965496027,112.998781240464 30.1002225048508,112.993629954155 30.0997832705455,112.98849447799 30.0990800135585,112.983388454897 30.0981146021653,112.978325449559 30.0968896010818,112.973318912376 30.0954082646512,112.968382143737 30.093674528198,112.963528258682 30.0916929975738,112.958770152063 30.0894689369212,112.954120464286 30.0870082546892,112.94959154773 30.0843174879365,112.945195433935 30.0814037849656,112.940943801635 30.0782748863319,112.936847945735 30.0749391042808,112.932918747302 30.071405300665,112.929166644662 30.0676828634021,112.925601605667 30.0637816815346,112.922233101214 30.0597121189588,112.919070080086 30.0554849868917,112.916120945178 30.0511115151503,112.913393531175 30.0466033223181,112.910895083737 30.0419723848791,112.908632240249 30.0372310054014,112.90661101219 30.0323917798536,112.904836769165 30.0274675641428,112.903314224634 30.0224714399611,112.902047423396 30.0174166800334,112.90103973084 30.0123167128559,112.900293824006 30.0071850870232,112.899811684474 30.002035435234,112.899594593098 29.9968814380751,112.899643126603 29.9943547066017,112.899797358288 29.994251005125,112.899800726376 29.9941275437865,112.899811224306 29.991736787677,112.899957156055 29.9916054414295,112.899968577468 29.9895995899327,112.900196236664 29.9890345491962,112.900244282133 29.9883794630754,112.900334718052 29.9863844503972,112.900561147069 29.9846977487582,112.900842985908 29.9838484553664,112.90096023252 29.9828519367466,112.90115141124 29.9812017928003,112.901427141484 29.9798309803686,112.901730971484 29.9787069377617,112.901946615249 29.9773721681508,112.902275948244 29.9760717778976,112.902564169711 29.9750104251284,112.902858670457 29.9736240883328,112.903200726827 29.9719581145777,112.90370561575 29.9710085696018,112.90396909243 29.970247211515,112.90422412092 29.9686138382317,112.904719129966 29.9666275913637,112.905436567836 29.9660261473732,112.905638030664 29.9655524467402,112.905824913052 29.9636899196292,112.906497663003 29.9613981927722,112.907463831913 29.9611382676229,112.907566376493 29.9609372057259,112.907658179399 29.9588658280772,112.908531451307 29.9541547855203,112.91081492064 29.9495697040566,112.913341812434 29.9451231505479,112.916105200945 29.9408273121768,112.919097512235 29.9366939630433,112.922310544931</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output mimeType="text/xml; subtype=gml/2.1.2" asReference="false">
                    <ows:Identifier>Boundary</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput为输入图形的gml格式数据,BufferDistance为缓冲区大小
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Boundary</ows:Identifier>
            <ows:Title>Boundary Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-10-17T13:46:56.033Z">
            <wps:ProcessSucceeded>Process execution finished@2019-10-17T13:46:56.033Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Boundary</ows:Identifier>
                <ows:Title>Boundary</ows:Title>
                <wps:Data>
                    <wps:ComplexData mimeType="text/xml;subtype=gml/2.1.2" schema="http://schemas.opengis.net/gml/2.1.2/geometry.xsd">
                        <gml:LineString srsName="EPSG:4326" xsi:schemaLocation="http://schemas.opengis.net/gml/2.1.2/geometry.xsd" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                            <gml:coordinates>29.9366939630433,112.922310544931 29.936355127796,112.922588465977 29.9324191413312,112.925991951951 29.9286655214823,112.929595567393 29.9251044314403,112.933389555261 29.9217455131078,112.937363643064 29.9185978609936,112.941507070678 29.915669997588,112.945808619481 29.912969850288,112.950256642726 29.910504729933,112.954839097075 29.9082813110105,112.95954357521 29.9063056135843,112.964357339424 29.9045829869947,112.96926735611 29.9031180953748,112.974260331052 29.9019149050222,112.979322745417 29.9009766736597,112.984440892361 29.9003059416149,112.989600914139 29.8999045249423,112.994788839628 29.8997735105059,112.999990622154 29.8999132530364,113.005192177523 29.9003233741711,113.010379422156 29.9010027634781,113.015538311222 29.9019495814629,113.020654876665 29.9031612645489,113.025715265022 29.9046345320185,113.030705774935 29.906365394896,113.035612894245 29.908349166748,113.040423336581 29.9105804763721,113.04512407733 29.9130532823399,113.049702388904 29.9157608893545,113.054145875202 29.9186959663789,113.058442505171 29.9190024409564,113.058867001014 29.9221895144046,113.063045494147 29.9255916997536,113.067050787755 29.9291996011059,113.070871820319 29.9330032544329,113.074498039203 29.9369921550932,113.077919429791 29.9411552868433,113.081126543144 29.9454811522615,113.0841105221 29.9499578045005,113.086863125733 29.9545728802816,113.08937675211 29.9593136340382,113.091644459289 29.9641669731159,113.093659984487 29.9691194939308,113.09541776138 29.9741575189862,113.096912935474 29.9767998329287,113.097548194509 29.977095358607,113.097626720022 29.977348173233,113.097680025223 29.9792671346465,113.098141377508 29.981502813835,113.098556018657 29.9821741251722,113.098697562627 29.9827762715006,113.098792201001 29.9844342295624,113.099099694866 29.9862673337434,113.09934088566 29.9873016131189,113.099503441692 29.9882742387387,113.099604944305 29.9896445336427,113.09978524094 29.9910825618557,113.099898019184 29.9924640087004,113.10004218613 29.9938259266304,113.10011316925 29.9948836574647,113.100196122439 29.9959373267155,113.100223215355 29.9976474041268,113.100312344535 29.9994148296184,113.100312632118 30.0001371320132,113.100331204623 30.0008201420592,113.10031286078 30.0028378350335,113.100313189084 30.0050241329592,113.100199952702 30.0053904486405,113.100190114432 30.0057192342344,113.10016395086 30.0080213181018,113.1000447175 30.0131838887309,113.099507653063 30.0183116386595,113.098703442655 30.0233907534349,113.097634252865 30.0284075496306,113.09630296415 30.0333485117099,113.094713163081 30.0334950865079,113.094661766724 30.0383303243451,113.092824533204 30.0430640943904,113.090739737504 30.0476837314647,113.088412957487 30.0521768757514,113.085850418439 30.0565315058644,113.083058976423 30.0607359710117,113.080046099928 30.0647790221672,113.076819849891 30.0686498421669,113.073388858127 30.0723380746503,113.06976230424 30.0758338517694,113.065949891056 30.0791278205891,113.061961818669 30.0822111681117,113.057808757147 30.0850756448558,113.053501817987 30.0877135869275,113.049052524383 30.0901179365256,113.044472780399 30.0922822608243,113.039774839118 30.0942007691842,113.034971269859 30.0958683286455,113.030074924549 30.0972804776608,113.025098903337 30.0984334380324,113.020056519542 30.0993241250201,113.014961264039 30.0999501555953,113.00982676916 30.1003098548161,113.00466677222 30.1004022603091,112.999495078766 30.1003965496027,112.998781240464 30.1002225048508,112.993629954155 30.0997832705455,112.98849447799 30.0990800135585,112.983388454897 30.0981146021653,112.978325449559 30.0968896010818,112.973318912376 30.0954082646512,112.968382143737 30.093674528198,112.963528258682 30.0916929975738,112.958770152063 30.0894689369212,112.954120464286 30.0870082546892,112.94959154773 30.0843174879365,112.945195433935 30.0814037849656,112.940943801635 30.0782748863319,112.936847945735 30.0749391042808,112.932918747302 30.071405300665,112.929166644662 30.0676828634021,112.925601605667 30.0637816815346,112.922233101214 30.0597121189588,112.919070080086 30.0554849868917,112.916120945178 30.0511115151503,112.913393531175 30.0466033223181,112.910895083737 30.0419723848791,112.908632240249 30.0372310054014,112.90661101219 30.0323917798536,112.904836769165 30.0274675641428,112.903314224634 30.0224714399611,112.902047423396 30.0174166800334,112.90103973084 30.0123167128559,112.900293824006 30.0071850870232,112.899811684474 30.002035435234,112.899594593098 29.9968814380751,112.899643126603 29.9943547066017,112.899797358288 29.994251005125,112.899800726376 29.9941275437865,112.899811224306 29.991736787677,112.899957156055 29.9916054414295,112.899968577468 29.9895995899327,112.900196236664 29.9890345491962,112.900244282133 29.9883794630754,112.900334718052 29.9863844503972,112.900561147069 29.9846977487582,112.900842985908 29.9838484553664,112.90096023252 29.9828519367466,112.90115141124 29.9812017928003,112.901427141484 29.9798309803686,112.901730971484 29.9787069377617,112.901946615249 29.9773721681508,112.902275948244 29.9760717778976,112.902564169711 29.9750104251284,112.902858670457 29.9736240883328,112.903200726827 29.9719581145777,112.90370561575 29.9710085696018,112.90396909243 29.970247211515,112.90422412092 29.9686138382317,112.904719129966 29.9666275913637,112.905436567836 29.9660261473732,112.905638030664 29.9655524467402,112.905824913052 29.9636899196292,112.906497663003 29.9613981927722,112.907463831913 29.9611382676229,112.907566376493 29.9609372057259,112.907658179399 29.9588658280772,112.908531451307 29.9541547855203,112.91081492064 29.9495697040566,112.913341812434 29.9451231505479,112.916105200945 29.9408273121768,112.919097512235 29.9366939630433,112.922310544931</gml:coordinates>
                        </gml:LineString>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Buffer

  • 接口功能

    返回一个几何对象,该对象表示所有与 geometry 实例的距离小于或等于指定值的点的并集。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"buffer",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Buffer</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>29.9366939630433,112.922310544931 29.936355127796,112.922588465977 29.9324191413312,112.925991951951 29.9286655214823,112.929595567393 29.9251044314403,112.933389555261 29.9217455131078,112.937363643064 29.9185978609936,112.941507070678 29.915669997588,112.945808619481 29.912969850288,112.950256642726 29.910504729933,112.954839097075 29.9082813110105,112.95954357521 29.9063056135843,112.964357339424 29.9045829869947,112.96926735611 29.9031180953748,112.974260331052 29.9019149050222,112.979322745417 29.9009766736597,112.984440892361 29.9003059416149,112.989600914139 29.8999045249423,112.994788839628 29.8997735105059,112.999990622154 29.8999132530364,113.005192177523 29.9003233741711,113.010379422156 29.9010027634781,113.015538311222 29.9019495814629,113.020654876665 29.9031612645489,113.025715265022 29.9046345320185,113.030705774935 29.906365394896,113.035612894245 29.908349166748,113.040423336581 29.9105804763721,113.04512407733 29.9130532823399,113.049702388904 29.9157608893545,113.054145875202 29.9186959663789,113.058442505171 29.9190024409564,113.058867001014 29.9221895144046,113.063045494147 29.9255916997536,113.067050787755 29.9291996011059,113.070871820319 29.9330032544329,113.074498039203 29.9369921550932,113.077919429791 29.9411552868433,113.081126543144 29.9454811522615,113.0841105221 29.9499578045005,113.086863125733 29.9545728802816,113.08937675211 29.9593136340382,113.091644459289 29.9641669731159,113.093659984487 29.9691194939308,113.09541776138 29.9741575189862,113.096912935474 29.9767998329287,113.097548194509 29.977095358607,113.097626720022 29.977348173233,113.097680025223 29.9792671346465,113.098141377508 29.981502813835,113.098556018657 29.9821741251722,113.098697562627 29.9827762715006,113.098792201001 29.9844342295624,113.099099694866 29.9862673337434,113.09934088566 29.9873016131189,113.099503441692 29.9882742387387,113.099604944305 29.9896445336427,113.09978524094 29.9910825618557,113.099898019184 29.9924640087004,113.10004218613 29.9938259266304,113.10011316925 29.9948836574647,113.100196122439 29.9959373267155,113.100223215355 29.9976474041268,113.100312344535 29.9994148296184,113.100312632118 30.0001371320132,113.100331204623 30.0008201420592,113.10031286078 30.0028378350335,113.100313189084 30.0050241329592,113.100199952702 30.0053904486405,113.100190114432 30.0057192342344,113.10016395086 30.0080213181018,113.1000447175 30.0131838887309,113.099507653063 30.0183116386595,113.098703442655 30.0233907534349,113.097634252865 30.0284075496306,113.09630296415 30.0333485117099,113.094713163081 30.0334950865079,113.094661766724 30.0383303243451,113.092824533204 30.0430640943904,113.090739737504 30.0476837314647,113.088412957487 30.0521768757514,113.085850418439 30.0565315058644,113.083058976423 30.0607359710117,113.080046099928 30.0647790221672,113.076819849891 30.0686498421669,113.073388858127 30.0723380746503,113.06976230424 30.0758338517694,113.065949891056 30.0791278205891,113.061961818669 30.0822111681117,113.057808757147 30.0850756448558,113.053501817987 30.0877135869275,113.049052524383 30.0901179365256,113.044472780399 30.0922822608243,113.039774839118 30.0942007691842,113.034971269859 30.0958683286455,113.030074924549 30.0972804776608,113.025098903337 30.0984334380324,113.020056519542 30.0993241250201,113.014961264039 30.0999501555953,113.00982676916 30.1003098548161,113.00466677222 30.1004022603091,112.999495078766 30.1003965496027,112.998781240464 30.1002225048508,112.993629954155 30.0997832705455,112.98849447799 30.0990800135585,112.983388454897 30.0981146021653,112.978325449559 30.0968896010818,112.973318912376 30.0954082646512,112.968382143737 30.093674528198,112.963528258682 30.0916929975738,112.958770152063 30.0894689369212,112.954120464286 30.0870082546892,112.94959154773 30.0843174879365,112.945195433935 30.0814037849656,112.940943801635 30.0782748863319,112.936847945735 30.0749391042808,112.932918747302 30.071405300665,112.929166644662 30.0676828634021,112.925601605667 30.0637816815346,112.922233101214 30.0597121189588,112.919070080086 30.0554849868917,112.916120945178 30.0511115151503,112.913393531175 30.0466033223181,112.910895083737 30.0419723848791,112.908632240249 30.0372310054014,112.90661101219 30.0323917798536,112.904836769165 30.0274675641428,112.903314224634 30.0224714399611,112.902047423396 30.0174166800334,112.90103973084 30.0123167128559,112.900293824006 30.0071850870232,112.899811684474 30.002035435234,112.899594593098 29.9968814380751,112.899643126603 29.9943547066017,112.899797358288 29.994251005125,112.899800726376 29.9941275437865,112.899811224306 29.991736787677,112.899957156055 29.9916054414295,112.899968577468 29.9895995899327,112.900196236664 29.9890345491962,112.900244282133 29.9883794630754,112.900334718052 29.9863844503972,112.900561147069 29.9846977487582,112.900842985908 29.9838484553664,112.90096023252 29.9828519367466,112.90115141124 29.9812017928003,112.901427141484 29.9798309803686,112.901730971484 29.9787069377617,112.901946615249 29.9773721681508,112.902275948244 29.9760717778976,112.902564169711 29.9750104251284,112.902858670457 29.9736240883328,112.903200726827 29.9719581145777,112.90370561575 29.9710085696018,112.90396909243 29.970247211515,112.90422412092 29.9686138382317,112.904719129966 29.9666275913637,112.905436567836 29.9660261473732,112.905638030664 29.9655524467402,112.905824913052 29.9636899196292,112.906497663003 29.9613981927722,112.907463831913 29.9611382676229,112.907566376493 29.9609372057259,112.907658179399 29.9588658280772,112.908531451307 29.9541547855203,112.91081492064 29.9495697040566,112.913341812434 29.9451231505479,112.916105200945 29.9408273121768,112.919097512235 29.9366939630433,112.922310544931</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
            <wps:Input>
                <ows:Identifier>BufferDistance</ows:Identifier>
                <wps:Data>
                    <wps:LiteralData uom="unity" dataType="double">0.1</wps:LiteralData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output mimeType="text/xml; subtype=gml/2.1.2" asReference="false">
                    <ows:Identifier>BufferedGeometry</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput为输入图形的gml格式数据,BufferDistance为缓冲区大小
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Buffer</ows:Identifier>
            <ows:Title>Buffer Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-10-17T11:42:51.795Z">
            <wps:ProcessSucceeded>Process execution finished@2019-10-17T11:42:51.795Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>BufferedGeometry</ows:Identifier>
                <ows:Title>BufferedGeometry</ows:Title>
                <wps:Data>
                    <wps:ComplexData mimeType="text/xml;subtype=gml/2.1.2" schema="http://schemas.opengis.net/gml/2.1.2/geometry.xsd">
                        <gml:Polygon srsName="EPSG:4326" xsi:schemaLocation="http://schemas.opengis.net/gml/2.1.2/geometry.xsd" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>29.8753212600872,112.843358715745 29.8732756155362,112.844992285771 29.8729367802889,112.845270206817 29.8709466460393,112.84694634468 29.8670106595745,112.850349830654 29.8631645545026,112.853854567723 29.8594109346537,112.857458183165 29.855752341252,112.861158237311 29.85219125121,112.864952225179 29.8487300754041,112.868837578219 29.8453711570716,112.872811666022 29.8421167702307,112.876871798095 29.8389691181165,112.881015225709 29.8359303317148,112.885239143731 29.8330024683092,112.889540692534 29.8301875100802,112.893916959944 29.8274873627802,112.898364983189 29.8249038544289,112.902881750923 29.8224387340739,112.907464205272 29.8200936706217,112.912109243878 29.8178702516992,112.916813722013 29.8157699825759,112.921574454714 29.8137942851497,112.926388218928 29.8119444969826,112.9312517557 29.810221870393,112.936161772386 29.8086275716115,112.94111494487 29.8071626799916,112.946107919812 29.8058281872748,112.951137316934 29.8046249969222,112.956199731299 29.8035539235022,112.961291735616 29.8026156921397,112.96640988256 29.8018109380243,112.971550707106 29.8011402059796,112.976710728884 29.8006039500962,112.981886454521 29.8002025334236,112.98707438001 29.7999362277235,112.992270993091 29.7998052132871,112.997472775617 29.7998095788119,113.002676205942 29.7999493213424,113.007877761311 29.800224346272,113.013073920231 29.8006344674067,113.018261164864 29.8011794070917,113.023435983409 29.8018587963987,113.028594872475 29.8026721753763,113.033734339458 29.8036189933611,113.038850904901 29.8046986093509,113.043941104854 29.8059102924369,113.049001493211 29.8072532223005,113.054028644052 29.8087264897701,113.059019153965 29.8103290974329,113.063969644338 29.8120599603104,113.068876763648 29.8139179065957,113.07373718974 29.8159016784477,113.078547632076 29.818009932838,113.083304833949 29.8202412424621,113.088005574698 29.8225940967101,113.092646671893 29.8250669026779,113.097224983467 29.827657986258,113.101737409872 29.8303655932726,113.10618089617 29.833187890649,113.110552434083 29.8361229676734,113.114849064052 29.8376184574467,113.116978285215 29.8379249320242,113.117402781058 29.8394910154305,113.119512967169 29.8426780888787,113.123691460302 29.845973856215,113.127784766978 29.849376041564,113.131790060586 29.8528822955511,113.135704575273 29.8564901969034,113.139525607837 29.8601972541932,113.143250519675 29.8640009075202,113.146876738559 29.8678985302558,113.150401760389 29.8718874309161,113.153823150977 29.8759648549639,113.157138547679 29.880127986714,113.160345661032 29.8843739513279,113.163442276373 29.8886998167461,113.166426255329 29.8931025957363,113.16929553731 29.8975792479753,113.172048140943 29.9021266821062,113.174682165414 29.9067417578873,113.177195791791 29.9114212883736,113.179587284288 29.9161620421302,113.181854991467 29.920960745431,113.183997347362 29.9258140845087,113.18601287256 29.9307187078997,113.187900175245 29.9356712287146,113.189657952138 29.9406682269714,113.191284989401 29.9457062520268,113.192780163495 29.9507818248832,113.194142441928 29.9533993611079,113.194771743961 29.9540364394651,113.194931839353 29.9562082155046,113.195446496839 29.9610315705801,113.196464641302 29.9630410969057,113.196837338919 29.9646566077066,113.197151290753 29.9669167120968,113.197553422992 29.9713891570869,113.198245174259 29.9725108154995,113.198392756533 29.9753599886338,113.198787869497 29.9777029091576,113.199069668745 29.9818259798001,113.19947912348 29.9819819950381,113.19949135907 29.9820844382693,113.199502049983 29.9872590766035,113.199906637672 29.9886209945335,113.199977620792 29.9886213405992,113.199970981 29.9907327502803,113.200080844445 29.9907323946941,113.200087666901 29.9924424721054,113.200176796081 29.9976311328325,113.200312343211 29.9990811798787,113.200312579153 30.0008041856673,113.200328979795 30.0035048886876,113.200310964256 30.0080102684213,113.200179329156 30.0101139899873,113.200070369706 30.0109086014207,113.200037748304 30.013539470882,113.199892351372 30.0183685212444,113.19950795386 30.0235310918735,113.198970889423 30.0286779856915,113.198300026045 30.0338057356201,113.197495815637 30.0389108874519,113.196558799939 30.0439900022273,113.195489610149 30.0490396585312,113.194288966497 30.0540564547269,113.192957677782 30.0590370113575,113.191496640801 30.0639779734368,113.189906839732 30.0664381380616,113.18907987664 30.0665847128596,113.189028480283 30.0690142126706,113.188141131702 30.0738494505078,113.186303898182 30.0786355553791,113.184342227402 30.0833693254244,113.182257431702 30.0880475938107,113.180050905786 30.092667230885,113.177724125769 30.0972251461756,113.175278648231 30.1017182904623,113.172716109183 30.1061436579059,113.170038222923 30.1104982880189,113.167246780907 30.1147792676072,113.164343650575 30.1189837327545,113.16133077408 30.1231088707292,113.158210166997 30.1271519218847,113.15498391696 30.1311101814832,113.151654182278 30.1349810014829,113.148223190514 30.1387617923633,113.144693236952 30.1424500248467,113.141066683065 30.1460432315537,113.137345954969 30.1495390086728,113.133533541785 30.1529350175807,113.129631993962 30.1562289864004,113.125643921575 30.1594187115136,113.121571992587 30.1625020590362,113.117418931065 30.1654769662502,113.113187515352 30.1683414429943,113.108880576192 30.171093572973,113.104500994867 30.1737315150447,113.100051701263 30.1762535044668,113.09553567189 30.1786578540649,113.090955927906 30.1809429553632,113.086315533095 30.1831072796619,113.081617591814 30.1851493790604,113.076865246915 30.1870678874203,113.072061677656 30.188861521288,113.067210097554 30.1905290807493,113.062313752244 30.1920694502292,113.057375917316 30.1934815992445,113.052399896104 30.1947645830874,113.047389017495 30.195917543459,113.0423466337 30.1969397090458,113.037276117999 30.1978303960335,113.032180862496 30.1985890085651,113.027064275846 30.1992150391403,113.021929780967 30.1997080689535,113.016780812761 30.2000677681743,113.011620815821 30.2002938961694,113.00645324211 30.2003863016624,113.001281548656 30.2003990604627,112.998695104367 30.2003933497563,112.997981266065 30.2003395215079,112.995404501392 30.200165476756,112.990253215083 30.1998587353492,112.985108125004 30.1994195010439,112.979972648839 30.1988480656065,112.974850197887 30.1981448086195,112.969744174794 30.1973101972291,112.964657971293 30.1963447858359,112.959594965955 30.1952492157255,112.954558521939 30.194024214642,112.949551984756 30.1926705963068,112.944578680058 30.1911892598762,112.939641911419 30.1895811893447,112.934744958143 30.1878474528915,112.929891073088 30.1859892021696,112.925083480499 30.1840076715454,112.92032537388 30.1819041772704,112.915619913851 30.1796801166178,112.910970226074 30.1773369669476,112.906379399161 30.1748762847156,112.901850482605 30.1722997044602,112.897386484796 30.1696089377075,112.892990371001 30.1668057718308,112.888665061389 30.1638920688599,112.884413429089 30.1608697642535,112.880238298295 30.1577408656198,112.876142442395 30.1545074513659,112.872128582108 30.1511716693148,112.868199383675 30.1477357353003,112.864357457114 30.1442019316845,112.860605354474 30.1405726058295,112.856945568124 30.1368501685666,112.853380529129 30.133037092562,112.849912605602 30.1291359106945,112.846544101149 30.1251492143719,112.84327725334 30.1210796517961,112.840114232212 30.1169299262297,112.837057138844 30.1127027941626,112.834108003936 30.108401063519,112.831268786488 30.1040275917776,112.828541372485 30.0995852840548,112.825927573636 30.0950770912226,112.823429126198 30.0905060078944,112.821047689789 30.0858750704554,112.818784846301 30.0811873550785,112.816642098863 30.0764459756008,112.814620870804 30.0716540815341,112.812722504749 30.0668148559863,112.810948261724 30.0619315134563,112.809299320284 30.0570072977455,112.807776775753 30.0520454798203,112.806381639499 30.0470493556386,112.805114838261 30.0420222439293,112.803977213525 30.0369674840016,112.802969520969 30.0318884335484,112.802092429966 30.0267884663709,112.801346523132 30.0216709701828,112.800732295945 30.0165393443501,112.800250156413 30.0113969976005,112.799900424802 30.0062473458113,112.799683333426 30.0010938096991,112.79959902649 29.9959398125402,112.799647559995 29.9907887779505,112.799828901702 29.9882620464771,112.799983133387 29.9882620545766,112.79998326608 29.9880412089475,112.799993720452 29.9855269914995,112.800150150131 29.9830738259047,112.800333097247 29.9829424796572,112.80034451866 29.9803280913924,112.800606505347 29.9784341571663,112.800821462209 29.9771623905013,112.800951523848 29.9745122917023,112.801268388784 29.9699034798237,112.801928608782 29.9682167781847,112.802210447621 29.9682186869472,112.802221870861 29.9663721961191,112.80252623383 29.9663709661563,112.802518872956 29.96472082221,112.8027946032 29.9595627055211,112.803796460334 29.9581918930894,112.804100290334 29.9581927629238,112.804104214831 29.9547519317783,112.804858213839 29.9545718966945,112.804902634609 29.9544326906482,112.804933488555 29.9510566817387,112.805775386046 29.951055419198,112.805770269034 29.9496690824024,112.806112325404 29.9446208027857,112.807499057941 29.9436574470344,112.807791011909 29.9411199407897,112.808540219086 29.9387252094196,112.809290256622 29.9346417657081,112.810666494232 29.9329075097695,112.811292912281 29.9314939252386,112.811789612273 29.9291576974946,112.812649244612 29.9248421713381,112.814351841325 29.9226007241499,112.815296812834 29.9220486316404,112.815522906552 29.9197761920947,112.816487981366 29.9152488785046,112.818544998382 29.9105378359477,112.820828467715 29.9058881806824,112.823234472723 29.9013030992187,112.825761364517 29.8967857338099,112.828407411365 29.8923391803012,112.831170799876 29.8879664860123,112.834049636239 29.8836706476412,112.837041947529 29.8794546092207,112.840145683049 29.8753212600872,112.843358715745</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Centroid

  • 接口功能

    返回由一个或多个多边形组成的 geometry 实例的几何中心。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"centroid",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute
        xmlns:wps="http://www.opengis.net/wps/1.0.0"
        xmlns:xlink="http://www.w3.org/1999/xlink"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Centroid</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>29.9366939630433,112.922310544931 29.936355127796,112.922588465977 29.9324191413312,112.925991951951 29.9286655214823,112.929595567393 29.9251044314403,112.933389555261 29.9217455131078,112.937363643064 29.9185978609936,112.941507070678 29.915669997588,112.945808619481 29.912969850288,112.950256642726 29.910504729933,112.954839097075 29.9082813110105,112.95954357521 29.9063056135843,112.964357339424 29.9045829869947,112.96926735611 29.9031180953748,112.974260331052 29.9019149050222,112.979322745417 29.9009766736597,112.984440892361 29.9003059416149,112.989600914139 29.8999045249423,112.994788839628 29.8997735105059,112.999990622154 29.8999132530364,113.005192177523 29.9003233741711,113.010379422156 29.9010027634781,113.015538311222 29.9019495814629,113.020654876665 29.9031612645489,113.025715265022 29.9046345320185,113.030705774935 29.906365394896,113.035612894245 29.908349166748,113.040423336581 29.9105804763721,113.04512407733 29.9130532823399,113.049702388904 29.9157608893545,113.054145875202 29.9186959663789,113.058442505171 29.9190024409564,113.058867001014 29.9221895144046,113.063045494147 29.9255916997536,113.067050787755 29.9291996011059,113.070871820319 29.9330032544329,113.074498039203 29.9369921550932,113.077919429791 29.9411552868433,113.081126543144 29.9454811522615,113.0841105221 29.9499578045005,113.086863125733 29.9545728802816,113.08937675211 29.9593136340382,113.091644459289 29.9641669731159,113.093659984487 29.9691194939308,113.09541776138 29.9741575189862,113.096912935474 29.9767998329287,113.097548194509 29.977095358607,113.097626720022 29.977348173233,113.097680025223 29.9792671346465,113.098141377508 29.981502813835,113.098556018657 29.9821741251722,113.098697562627 29.9827762715006,113.098792201001 29.9844342295624,113.099099694866 29.9862673337434,113.09934088566 29.9873016131189,113.099503441692 29.9882742387387,113.099604944305 29.9896445336427,113.09978524094 29.9910825618557,113.099898019184 29.9924640087004,113.10004218613 29.9938259266304,113.10011316925 29.9948836574647,113.100196122439 29.9959373267155,113.100223215355 29.9976474041268,113.100312344535 29.9994148296184,113.100312632118 30.0001371320132,113.100331204623 30.0008201420592,113.10031286078 30.0028378350335,113.100313189084 30.0050241329592,113.100199952702 30.0053904486405,113.100190114432 30.0057192342344,113.10016395086 30.0080213181018,113.1000447175 30.0131838887309,113.099507653063 30.0183116386595,113.098703442655 30.0233907534349,113.097634252865 30.0284075496306,113.09630296415 30.0333485117099,113.094713163081 30.0334950865079,113.094661766724 30.0383303243451,113.092824533204 30.0430640943904,113.090739737504 30.0476837314647,113.088412957487 30.0521768757514,113.085850418439 30.0565315058644,113.083058976423 30.0607359710117,113.080046099928 30.0647790221672,113.076819849891 30.0686498421669,113.073388858127 30.0723380746503,113.06976230424 30.0758338517694,113.065949891056 30.0791278205891,113.061961818669 30.0822111681117,113.057808757147 30.0850756448558,113.053501817987 30.0877135869275,113.049052524383 30.0901179365256,113.044472780399 30.0922822608243,113.039774839118 30.0942007691842,113.034971269859 30.0958683286455,113.030074924549 30.0972804776608,113.025098903337 30.0984334380324,113.020056519542 30.0993241250201,113.014961264039 30.0999501555953,113.00982676916 30.1003098548161,113.00466677222 30.1004022603091,112.999495078766 30.1003965496027,112.998781240464 30.1002225048508,112.993629954155 30.0997832705455,112.98849447799 30.0990800135585,112.983388454897 30.0981146021653,112.978325449559 30.0968896010818,112.973318912376 30.0954082646512,112.968382143737 30.093674528198,112.963528258682 30.0916929975738,112.958770152063 30.0894689369212,112.954120464286 30.0870082546892,112.94959154773 30.0843174879365,112.945195433935 30.0814037849656,112.940943801635 30.0782748863319,112.936847945735 30.0749391042808,112.932918747302 30.071405300665,112.929166644662 30.0676828634021,112.925601605667 30.0637816815346,112.922233101214 30.0597121189588,112.919070080086 30.0554849868917,112.916120945178 30.0511115151503,112.913393531175 30.0466033223181,112.910895083737 30.0419723848791,112.908632240249 30.0372310054014,112.90661101219 30.0323917798536,112.904836769165 30.0274675641428,112.903314224634 30.0224714399611,112.902047423396 30.0174166800334,112.90103973084 30.0123167128559,112.900293824006 30.0071850870232,112.899811684474 30.002035435234,112.899594593098 29.9968814380751,112.899643126603 29.9943547066017,112.899797358288 29.994251005125,112.899800726376 29.9941275437865,112.899811224306 29.991736787677,112.899957156055 29.9916054414295,112.899968577468 29.9895995899327,112.900196236664 29.9890345491962,112.900244282133 29.9883794630754,112.900334718052 29.9863844503972,112.900561147069 29.9846977487582,112.900842985908 29.9838484553664,112.90096023252 29.9828519367466,112.90115141124 29.9812017928003,112.901427141484 29.9798309803686,112.901730971484 29.9787069377617,112.901946615249 29.9773721681508,112.902275948244 29.9760717778976,112.902564169711 29.9750104251284,112.902858670457 29.9736240883328,112.903200726827 29.9719581145777,112.90370561575 29.9710085696018,112.90396909243 29.970247211515,112.90422412092 29.9686138382317,112.904719129966 29.9666275913637,112.905436567836 29.9660261473732,112.905638030664 29.9655524467402,112.905824913052 29.9636899196292,112.906497663003 29.9613981927722,112.907463831913 29.9611382676229,112.907566376493 29.9609372057259,112.907658179399 29.9588658280772,112.908531451307 29.9541547855203,112.91081492064 29.9495697040566,112.913341812434 29.9451231505479,112.916105200945 29.9408273121768,112.919097512235 29.9366939630433,112.922310544931</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output mimeType="text/xml; subtype=gml/2.1.2" asReference="false">
                    <ows:Identifier>Centroid</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput为输入图形的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Centroid</ows:Identifier>
            <ows:Title>Centroid Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-04T14:02:27.235Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-04T14:02:27.235Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Centroid</ows:Identifier>
                <ows:Title>Centroid</ows:Title>
                <wps:Data>
                    <wps:ComplexData mimeType="text/xml;subtype=gml/2.1.2" schema="http://schemas.opengis.net/gml/2.1.2/geometry.xsd">
                        <gml:Point srsName="EPSG:4326" xsi:schemaLocation="http://schemas.opengis.net/gml/2.1.2/geometry.xsd" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                            <gml:coordinates>30.000173355278,112.99995818295</gml:coordinates>
                        </gml:Point>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Contains

  • 接口功能

    判断 geometry 实例是否完全包含另一个 geometry 实例。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"contains",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Contains</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput1</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>2,0 0,2 -2,0 2,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
            <wps:Input>
                <ows:Identifier>GMLInput2</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>1,0 0,1 -1,0 1,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output asReference="false">
                    <ows:Identifier>Contains</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput1为输入图形1的gml格式数据,GMLInput2为输入图形2的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Contains</ows:Identifier>
            <ows:Title>Contains Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-04T16:07:43.856Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-04T16:07:43.856Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Contains</ows:Identifier>
                <ows:Title>Contains</ows:Title>
                <wps:Data>
                    <wps:ComplexData dataType="boolean">true</wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Convexhull

  • 接口功能

    返回表示 geometry 实例的凸包的对象。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"convexhull",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>ConvexHull</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>29.9366939630433,112.922310544931 29.936355127796,112.922588465977 29.9324191413312,112.925991951951 29.9286655214823,112.929595567393 29.9251044314403,112.933389555261 29.9217455131078,112.937363643064 29.9366939630433,112.922310544931</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output mimeType="text/xml; subtype=gml/2.1.2" asReference="false">
                    <ows:Identifier>ConvexHull</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData string xml数据,其中标签GMLInput为输入图形的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>ConvexHull</ows:Identifier>
            <ows:Title>ConvexHull Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-04T18:06:34.431Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-04T18:06:34.431Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>ConvexHull</ows:Identifier>
                <ows:Title>ConvexHull</ows:Title>
                <wps:Data>
                    <wps:ComplexData mimeType="text/xml;subtype=gml/2.1.2" schema="http://schemas.opengis.net/gml/2.1.2/geometry.xsd">
                        <gml:Polygon srsName="EPSG:4326" xsi:schemaLocation="http://schemas.opengis.net/gml/2.1.2/geometry.xsd" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>29.9366939630433,112.922310544931 29.936355127796,112.922588465977 29.9324191413312,112.925991951951 29.9286655214823,112.929595567393 29.9251044314403,112.933389555261 29.9217455131078,112.937363643064 29.9366939630433,112.922310544931</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Crosses

  • 接口功能

    穿越,一般是一条线穿过一个多边形。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"crosses",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Crosses</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput1</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>2,0 0,2 -2,0 2,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
            <wps:Input>
                <ows:Identifier>GMLInput2</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>1,0 0,2 -1,0 1,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output asReference="false">
                    <ows:Identifier>Crosses</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput1为输入图形1的gml格式数据,GMLInput2为输入图形2的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Crosses</ows:Identifier>
            <ows:Title>Crosses Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-04T18:14:08.740Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-04T18:14:08.740Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Crosses</ows:Identifier>
                <ows:Title>Crosses</ows:Title>
                <wps:Data>
                    <wps:ComplexData dataType="boolean">false</wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Difference

  • 接口功能

    返回属于图形1但不属于图形2的图形

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"difference",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Difference</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput1</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>2,0 0,2 -2,0 2,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
            <wps:Input>
                <ows:Identifier>GMLInput2</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>1,0 0,3 -1,0 1,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output mimeType="text/xml; subtype=gml/2.1.2" asReference="false">
                    <ows:Identifier>Difference</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput1为输入图形1的gml格式数据,GMLInput2为输入图形2的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Difference</ows:Identifier>
            <ows:Title>Difference Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-05T09:29:36.788Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-05T09:29:36.788Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Difference</ows:Identifier>
                <ows:Title>Difference</ows:Title>
                <wps:Data>
                    <wps:ComplexData mimeType="text/xml;subtype=gml/2.1.2" schema="http://schemas.opengis.net/gml/2.1.2/geometry.xsd">
                        <gml:Polygon srsName="EPSG:4326" xsi:schemaLocation="http://schemas.opengis.net/gml/2.1.2/geometry.xsd" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>-0.5,1.5 0,3 0.5,1.5 0,2 -0.5,1.5</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Disjoint

  • 接口功能

    判断给定图形1是否与图形2不含共同区域

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"disjoint",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
          <ows:Identifier>Disjoint</ows:Identifier>
          <wps:DataInputs>
              <wps:Input>
                  <ows:Identifier>GMLInput1</ows:Identifier>
                  <wps:Data>
                      <wps:ComplexData>
                          <gml:Polygon srsName="EPSG:4326">
                              <gml:outerBoundaryIs>
                                  <gml:LinearRing>
                                      <gml:coordinates>2,0 0,2 -2,0 2,0</gml:coordinates>
                                  </gml:LinearRing>
                              </gml:outerBoundaryIs>
                          </gml:Polygon>
                      </wps:ComplexData>
                  </wps:Data>
              </wps:Input>
              <wps:Input>
                  <ows:Identifier>GMLInput2</ows:Identifier>
                  <wps:Data>
                      <wps:ComplexData>
                          <gml:Polygon srsName="EPSG:4326">
                              <gml:outerBoundaryIs>
                                  <gml:LinearRing>
                                      <gml:coordinates>1,0 0,2 -1,0 1,0</gml:coordinates>
                                  </gml:LinearRing>
                              </gml:outerBoundaryIs>
                          </gml:Polygon>
                      </wps:ComplexData>
                  </wps:Data>
              </wps:Input>
          </wps:DataInputs>
          <wps:ResponseForm>
              <wps:ResponseDocument>
                  <wps:Output asReference="false">
                      <ows:Identifier>Disjoint</ows:Identifier>
                  </wps:Output>
              </wps:ResponseDocument>
          </wps:ResponseForm>
      </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput1为输入图形1的gml格式数据,GMLInput2为输入图形2的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Disjoint</ows:Identifier>
            <ows:Title>Disjoint Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-05T14:41:15.688Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-05T14:41:15.688Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Disjoint</ows:Identifier>
                <ows:Title>Disjoint</ows:Title>
                <wps:Data>
                    <wps:ComplexData dataType="boolean">false</wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Distance

  • 接口功能

    返回给定图形1是否与图形2之间的距离

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"distance",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Distance</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput1</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>2,0 0,2 -2,0 2,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
            <wps:Input>
                <ows:Identifier>GMLInput2</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>4,0 0,3 6,0 4,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output asReference="false">
                    <ows:Identifier>Distance</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput1为输入图形1的gml格式数据,GMLInput2为输入图形2的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Distance</ows:Identifier>
            <ows:Title>Distance Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-05T09:57:05.071Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-05T09:57:05.071Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Distance</ows:Identifier>
                <ows:Title>Distance</ows:Title>
                <wps:Data>
                    <wps:ComplexData dataType="double">0.000000</wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Equals

  • 接口功能

    判断给定图形1是否与图形2是否相同。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"equals",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Equals</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput1</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>2,0 0,2 -2,0 2,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
            <wps:Input>
                <ows:Identifier>GMLInput2</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>1,0 0,2 -1,0 1,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output asReference="false">
                    <ows:Identifier>Equals</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput1为输入图形1的gml格式数据,GMLInput2为输入图形2的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Equals</ows:Identifier>
            <ows:Title>Equals Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-05T10:12:39.978Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-05T10:12:39.978Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Equals</ows:Identifier>
                <ows:Title>Equals</ows:Title>
                <wps:Data>
                    <wps:ComplexData dataType="boolean">false</wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Intersection

  • 接口功能

    返回给定图形1与图形2的交集图形。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"intersection",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Intersection</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput1</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>2,0 0,2 -2,0 2,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
            <wps:Input>
                <ows:Identifier>GMLInput2</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>1,0 0,3 -1,0 1,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output mimeType="text/xml; subtype=gml/2.1.2" asReference="false">
                    <ows:Identifier>Intersection</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    nputData xml xml数据,其中标签GMLInput1为输入图形1的gml格式数据,GMLInput2为输入图形2的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Intersection</ows:Identifier>
            <ows:Title>Intersection Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-05T11:59:14.729Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-05T11:59:14.729Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Intersection</ows:Identifier>
                <ows:Title>Intersection</ows:Title>
                <wps:Data>
                    <wps:ComplexData mimeType="text/xml;subtype=gml/2.1.2" schema="http://schemas.opengis.net/gml/2.1.2/geometry.xsd">
                        <gml:Polygon srsName="EPSG:4326" xsi:schemaLocation="http://schemas.opengis.net/gml/2.1.2/geometry.xsd" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>-0.5,1.5 0,2 0.5,1.5 1,0 -1,0 -0.5,1.5</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Intersects

  • 接口功能

    判断图形1与图形2是否相交。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"intersects",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Intersects</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput1</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>2,0 0,2 -2,0 2,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
            <wps:Input>
                <ows:Identifier>GMLInput2</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>1,0 0,2 -1,0 1,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output asReference="false">
                    <ows:Identifier>Intersects</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput1为输入图形1的gml格式数据,GMLInput2为输入图形2的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Intersects</ows:Identifier>
            <ows:Title>Intersects Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-05T14:33:31.635Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-05T14:33:31.635Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Intersects</ows:Identifier>
                <ows:Title>Intersects</ows:Title>
                <wps:Data>
                    <wps:ComplexData dataType="boolean">true</wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Symdifference

  • 接口功能

    返回属于图形1或图形2但不同时属于图形1和图形2的图形。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"symdifference",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>SymDifference</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput1</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>2,0 0,2 -2,0 2,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
            <wps:Input>
                <ows:Identifier>GMLInput2</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>1,0 0,3 -1,0 1,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output mimeType="text/xml; subtype=gml/2.1.2" asReference="false">
                    <ows:Identifier>SymDifference</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput1为输入图形1的gml格式数据,GMLInput2为输入图形2的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>SymDifference</ows:Identifier>
            <ows:Title>SymDifference Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-10T11:21:18.391Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-10T11:21:18.391Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>SymDifference</ows:Identifier>
                <ows:Title>SymDifference</ows:Title>
                <wps:Data>
                    <wps:ComplexData mimeType="text/xml;subtype=gml/2.1.2" schema="http://schemas.opengis.net/gml/2.1.2/geometry.xsd">
                        <gml:MultiPolygon srsName="EPSG:4326" xsi:schemaLocation="http://schemas.opengis.net/gml/2.1.2/geometry.xsd" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                            <gml:polygonMember>
                                <gml:Polygon>
                                    <gml:outerBoundaryIs>
                                        <gml:LinearRing>
                                            <gml:coordinates>0.5,1.5 2,0 1,0 0.5,1.5</gml:coordinates>
                                        </gml:LinearRing>
                                    </gml:outerBoundaryIs>
                                </gml:Polygon>
                            </gml:polygonMember>
                            <gml:polygonMember>
                                <gml:Polygon>
                                    <gml:outerBoundaryIs>
                                        <gml:LinearRing>
                                            <gml:coordinates>0.5,1.5 0,2 -0.5,1.5 0,3 0.5,1.5</gml:coordinates>
                                        </gml:LinearRing>
                                    </gml:outerBoundaryIs>
                                </gml:Polygon>
                            </gml:polygonMember>
                            <gml:polygonMember>
                                <gml:Polygon>
                                    <gml:outerBoundaryIs>
                                        <gml:LinearRing>
                                            <gml:coordinates>-1,0 -2,0 -0.5,1.5 -1,0</gml:coordinates>
                                        </gml:LinearRing>
                                    </gml:outerBoundaryIs>
                                </gml:Polygon>
                            </gml:polygonMember>
                        </gml:MultiPolygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Touches

  • 接口功能

    判断图形1与图形2是否至少有一个公共边界点且没有公共内部区域。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"touches",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Touches</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput1</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>2,0 0,2 -2,0 2,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
            <wps:Input>
                <ows:Identifier>GMLInput2</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>1,0 0,2 -1,0 1,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output asReference="false">
                    <ows:Identifier>Touches</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput1为输入图形1的gml格式数据,GMLInput2为输入图形2的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Touches</ows:Identifier>
            <ows:Title>Touches Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-05T13:58:08.776Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-05T13:58:08.776Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Touches</ows:Identifier>
                <ows:Title>Touches</ows:Title>
                <wps:Data>
                    <wps:ComplexData dataType="boolean">false</wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

Union

  • 接口功能

    返回图形1与图形2的并集图形。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/WPSServer/WPS
  • 请求json示例

    {
    	"request":"Execute",
    	"identifier":"union",
    	"inputData":{xml}
    }

    其中inputData格式如下:

    <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
        <ows:Identifier>Union</ows:Identifier>
        <wps:DataInputs>
            <wps:Input>
                <ows:Identifier>GMLInput1</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>2,0 0,2 -2,0 2,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
            <wps:Input>
                <ows:Identifier>GMLInput2</ows:Identifier>
                <wps:Data>
                    <wps:ComplexData>
                        <gml:Polygon srsName="EPSG:4326">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>1,0 0,3 -1,0 1,0</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Input>
        </wps:DataInputs>
        <wps:ResponseForm>
            <wps:ResponseDocument>
                <wps:Output mimeType="text/xml; subtype=gml/2.1.2" asReference="false">
                    <ows:Identifier>Union</ows:Identifier>
                </wps:Output>
            </wps:ResponseDocument>
        </wps:ResponseForm>
    </wps:Execute>
  • 请求参数说明

    名称 必填 类型 说明
    request string
    identifier string
    inputData xml xml数据,其中标签GMLInput1为输入图形1的gml格式数据,GMLInput2为输入图形2的gml格式数据
  • 返回结果

    <?xml version="1.0" encoding="UTF-8" ?>
    <wps:ExecuteResponse service="WPS" version="1.0.0" xml:lang="en" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" serviceInstance="http://localhost:6080/arcgis/services/hongshan/MapServer/WPSServer" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wps:Process wps:processVersion="1.0.0">
            <ows:Identifier>Union</ows:Identifier>
            <ows:Title>Union Analysis</ows:Title>
            <ows:Abstract></ows:Abstract>
        </wps:Process>
        <wps:Status creationTime="2019-06-05T14:07:03.687Z">
            <wps:ProcessSucceeded>Process execution finished@2019-06-05T14:07:03.687Z</wps:ProcessSucceeded>
        </wps:Status>
        <wps:ProcessOutputs>
            <wps:Output>
                <ows:Identifier>Union</ows:Identifier>
                <ows:Title>Union</ows:Title>
                <wps:Data>
                    <wps:ComplexData mimeType="text/xml;subtype=gml/2.1.2" schema="http://schemas.opengis.net/gml/2.1.2/geometry.xsd">
                        <gml:Polygon srsName="EPSG:4326" xsi:schemaLocation="http://schemas.opengis.net/gml/2.1.2/geometry.xsd" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates>0.5,1.5 2,0 1,0 -1,0 -2,0 -0.5,1.5 0,3 0.5,1.5</gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </wps:ComplexData>
                </wps:Data>
            </wps:Output>
        </wps:ProcessOutputs>
    </wps:ExecuteResponse>

WCS

GetCapabilities

  • 接口功能

    GetCapabilities接口,用于获取WCS服务支持的功能描述的元数据信息。支持1.1.0版本

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/MapServer/WCS
  • 请求json示例

    {
    	"request":"GetCapabilities",
        "service":"WCS",
        "version":"1.1.0"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法
    service string 服务类型,固定为“WCS”
    version string WCS版本,默认为1.1.0
  • 返回结果

DescribeCoverage

  • 接口功能

    描述coverage元数据信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/MapServer/WCS
  • 请求json示例

    {
        "request": "DescribeCoverage",
    	"service": "WCS",
    	"version": "1.1.0",
    	"identifiers":"1"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法
    service string 服务类型,默认为“WCS”
    version string WCS版本,默认为1.1.0
    identifiers string 图层id
  • 返回结果

GetCoverage

  • 接口功能

    裁剪并下载coverage。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/MapServer/WCS
  • 请求json示例

    {
        "request": "GetCoverage",
    	"service": "WCS",
    	"version": "1.1.0",
    	"identifier":"1",
    	"boundingbox":"3384881.9551572246,38565814.4011188820004463,3389741.9551572246,38572040.4011188820004463,urn:ogc:def:crs:EPSG::2362",
    	"format": "image/tiff",
    	"store": false
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法
    service string 服务类型,固定为“WCS”
    version string WCS版本,默认为1.1.0
    identifiers string 图层id
    boundingbox string 裁剪范围
    format string 输出格式,支持image/tiff
    store bool 是否保存输出影像,true则返回影像文件下载地址,false则直接下载eml文件。
  • 返回结果

GeometryService-几何服务

图形操作

  • 方法名:operator

  • 接口功能

    判断两个给定几何对象的空间关系,图形1合并后再分别与图形2中的每一个子图形作运算。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/operator
  • 请求json示例

    {
    	"operator":"intersect",
    	"geometry1":"{GeometryCollection or Geometry GeoJson Object}",
    	"geometry2":"{GeometryCollection or Geometry GeoJson Object}",
        "checkGeo":""
    	
    }
  • 请求参数说明

    名称 必填 类型 说明
    operator string intersect:判断几何对象是否相交;equals:判断几何对象是否相等;disjoint:判断几何对象是否脱节(不相交);touches:判断几何对象是否接触;crosses:判断几何对象是否交叉;within:判断是否内含,即几何对象A的线是否在几何对易用B内部;contains:判断是否包含,即几何对象B的线是否都在几何对象A内部;overlaps判断几何对象是否重叠
    geometry1 string 几何对象A
    geometry2 string 几何对象B,且其空间参考要求与geometry1保持一致
    checkGeo bool 是否检查几何,默认为true
  • 返回结果

    {
        "resultcode": "success",
        "result": [{
            "id": 0,
            "value": false
        }],
        "time": 0.001
    }

坐标投影转换

  • 方法名: project

  • 接口功能

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/project
  • 请求json示例

    {
    	"data":"{GeometryCollection or Geometry GeoJson Object}",
    	"geoSRS":"{The projection for geometries}",
    	"outSRS":"{The destation projection}"
    	
    }
  • 请求参数说明

    名称 必填 类型 说明
    data string 要转换的图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    geoSRS string 图形的坐标所属的空间参考
    outSRS string 目标空间参考
  • 返回结果

    {
    	"resultcode":"success",
    	"time":0.343,
    	"result":"{ GeometryCollection or Geometry GeoJson Object }"
    }

面积长度计算

  • 方法名:area,length

  • 接口功能

    计算给定的图形的长度或面积。面状数据返回面积,线状数据返回长度

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/area
  • 请求json示例

    {
    	"data":"{GeometryCollection or Geometry GeoJson Object}",
    	"geoSRS":"{The projection for geometries}",
    	"areaSRS":"{The projection which uesed to calculate the area}"
    }
  • 请求参数说明

    名称 必填 类型 说明
    data string 要计算面积或长度的图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    geoSRS string 图形的坐标所属的空间参考
    areaSRS string 目标空间参考
  • 返回结果

    {
        "resultcode":"success",
        "time":0.343,
        "result":[
        { "id":0,"name":"area","value":32432423.2434},
        { "id":1,"name":"length","value":122423.2434},
        { "id":2,"name":"area","value":1224324.2434} 
    	]
    }

缓冲分析

  • 方法名:buffer

  • 接口功能

    计算给定的图形的缓冲区

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/buffer
  • 请求json示例

    {
    	"data":"{GeometryCollection or Geometry GeoJson Object}",
    	"sideType":"outer",
    	"radius":1000.0,
        "geoSRS":"The projection for geometries}",
        "outSRS":"{The destation projection}"
    }
  • 请求参数说明

    名称 必填 类型 说明
    data string 要转换的图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    sideType string 缓冲区方向;outer:外缓冲区(针对面状数据、点状数据);inner:内缓冲区(针对面状数据);left:左缓冲区(针对线状数据、点状数据);right:右缓冲区(针对线状数据);both:双缓冲区
    geoSRS string 图形的坐标所属的空间参考
    outSRS string 目标空间参考
    radius int 缓冲半径(单位:米),值范围(0,1000000)
  • 返回结果

    {
    	"resultcode":"success",
    	"time":0.343,
    	"result":"{ GeometryCollection or Geometry GeoJson Object }"
    }

叠置分析

  • 方法名:overlap

  • 接口功能

    对给定的两个图形的交集

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/overlap
  • 请求json示例

    {
    	"srcData":"{GeometryCollection or Geometry GeoJson Object}",
    	"destData":"{GeometryCollection or Geometry GeoJson Object}",
    	"fields":"$area$",
    	"geoSRS":"{The projection for geometries}",
    	"destGeoSRS":"{The projection for geometries}",
    	"outSRS":"{The destation projection}"
    }
  • 请求参数说明

    名称 必填 类型 说明
    srcData string 源图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    destData string 目标图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    fields string 输出图形的属性字段;$area$:返回图形的面积(图形需为面类型);$length$:返回图形的长度(输出图形需为线类型);$center$:返回图形的中心点
    tolerance int 容差,不选则默认为0.00000001米
    geoSRS string 源图形空间参考
    destGeoSRS string 目标图形空间参考
    outSRS string 输出图形空间参考
  • 返回结果

    {
        "resultcode":"success",
        "time":0.343,
        "result":"{ GeometryCollection or Geometry GeoJson Object }
    }

差异分析

  • 方法名:difference

  • 接口功能

    求属于源图形但不属于目标图形的部分。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/difference
  • 请求json示例

    {
    	"srcData":"{GeometryCollection or Geometry GeoJson Object}",
    	"destData":"{GeometryCollection or Geometry GeoJson Object}",
    	"fields":"$area$",
        "geoSRS":"{The projection for geometries}",
        "outSRS":"{The destation projection}"
    }
  • 请求参数说明

    名称 必填 类型 说明
    srcData string 源图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    destData string 目标图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    fields string 输出图形的属性字段,多选用逗号隔开;$area$:返回图形的面积(图形需为面类型);$length$:返回图形的长度(输出图形需为线类型);$center$:返回图形的中心点;bbox:返回图形的外接矩形
    tolerance int 容差,可选项。不选则默认为0.00000001米
    geoSRS string 图形的坐标所属的空间参考
    outSRS string 目标空间参考
  • 返回结果

    {
    	"resultcode":"success",
    	"time":0.343,
    	"result":"{ GeometryCollection or Geometry GeoJson Object }"
    }

shp文件导出

  • 方法名:exportshp

  • 接口功能

    将给定的要素集(要素、或Geometry)写入到shp文件(包含dbf,shp,shx,prj文件),并将shp文件压缩打包返回给客户端进行下载

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/exportshp
  • 请求json示例

    {
    	"data":{Data Object},
    	"geoSRS":{The projection for geometries},
    	"outSRS":"{The destation projection}",
        "format":"filestream"
    }
  • 请求参数说明

    名称 必填 类型 说明
    data json object 要导出到shp文件的Feature或Geometry对象,*必选项*,类型可以是FeatureCollection、Feature、GeometryCollection、Geometry。如果需要导出属性信息,则类型只能为FeatureCollection和Feature,并且包含properties属性。图形属性不允许为空
    geoSRS string 图形的坐标所属的空间参考
    outSRS string 目标空间参
    format string 返回给前端时的格式,如果为”filestream”,刚直接将文件流推送给客户端,客户端可直接在浏览器中下载文件。否则返回一个Json对象给客户端
  • 返回结果

    如果format参数不指定或类型不为”filestream”,则返回:

    {"filename":"/KQGis/download/1dbb019d-d12e-4d36-b271-d52eb95c8db0.zip","resultcode":"success"}

    否则,直接推送文件流到前端。

    filename是一个文件下载的url,加上服务器的IP和端口,即可进行文件下载

投影系统转换

  • 方法名:projectsystem

  • 接口功能

    将给定的空间参考转为目标类型空间参考

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/projectsystem
  • 请求json示例

    {
    	"prj":"EPSG:4326",
    	"destType":"wkt"
    }
  • 请求参数说明

    名称 必填 类型 说明
    prj string 源空间参考
    destType string 目标空间参考类型(proj4,epsg,wkt,esri)
  • 返回结果

    {"result":"GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]]","resultcode":"success","time":0.002}

图形合并

  • 方法名:union

  • 接口功能

    将给定的要素集合并为一个要素

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/union
  • 请求json示例

    {
    	"geometries":{"type":"GeometryCollection","geometries":[{"type":"Polygon","coordinates":[[[111.25976593,34.75086365],[111.25976593,34.75546156],[111.27007933,34.75546156],[111.27007933,34.75086365],[111.25976593,34.75086365]]]},{"type":"Polygon","coordinates":[[[111.26493785,34.74846464],[111.26493785,34.75313765],[111.27503828,34.75313765],[111.27503828,34.74846464],[111.26493785,34.74846464]]]}]},
    	"geoSRS":"EPSG:4326",
    	"outSRS":"EPSG:2361"
    }

    请求参数说明

    名称 必填 类型 说明
    geometries string 是分析的图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    geoSRS string 图形的坐标所属的空间参考
    outSRS string 目标空间参考
  • 返回结果

    {"result":{"type":"Polygon","coordinates":[[[37523785.2464,3846986.667],[37524258.8101,3846987.903],[37524259.5115,3846721.7653],[37525184.3781,3846724.2493],[37525182.9596,3847242.6568],[37524728.9087,3847241.4255],[37524728.216,3847499.2321],[37523783.9282,3847496.7431],[37523785.2464,3846986.667]]]},"resultcode":"success","time":0.0}

对称差

  • 方法名:symdifference

  • 接口功能

    求只属于给定要素类A或只属于要素类B,但不同时属于A和B的部分

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/symdifference
  • 请求json示例

    {
    	"srcData":{"type":"Polygon","coordinates":[[[111.25976593,34.75086365],[111.25976593,34.75546156],[111.27007933,34.75546156],[111.27007933,34.75086365],[111.25976593,34.75086365]]]},
    	"destData":{"type":"Polygon","coordinates":[[[111.26493785,34.74846464],[111.26493785,34.75313765],[111.27503828,34.75313765],[111.27503828,34.74846464],[111.26493785,34.74846464]]]},
    	"fields":"$area$",
        "geoSRS":"EPSG:4326",
    	"outSRS":"EPSG:2361"
    }
  • 请求参数说明

    名称 必填 类型 说明
    srcData string 源图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    destData string 目标图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    fields string 输出图形的属性字段,可选项。参数值如下,多选用逗号隔开;$area$:返回图形的面积(图形需为面类型);$length$:返回图形的长度(输出图形需为线类型);$center$:返回图形的中心点;bbox:返回图形的外接矩形
    tolerance int 容差,可选项。不选则默认为0.00000001米
    geoSRS string 图形的坐标所属的空间参考
    outSRS string 目标空间参考
  • 返回结果

    {"result":{"type":"MultiPolygon","coordinates":[[[[37523785.2464,3846986.667],[37524258.8101,3846987.903],[37524258.1451,3847240.1726],[37524728.9087,3847241.4255],[37524728.216,3847499.2321],[37523783.9282,3847496.7431],[37523785.2464,3846986.667]]],[[[37524728.9087,3847241.4255],[37524729.5866,3846989.1559],[37524258.8101,3846987.903],[37524259.5115,3846721.7653],[37525184.3781,3846724.2493],[37525182.9596,3847242.6568],[37524728.9087,3847241.4255]]]]},"resultcode":"success","time":0.003}

Shapefile文件解析

  • 方法名:shpparser

  • 接口功能

    对shp格式进行解析。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/shpparser
  • 请求json示例

    {
    	"file": "shp.zip"
    }
  • 请求参数说明

    名称 必填 类型 说明
    file binary windows支持zip、rar格式,linux仅支持zip格式
  • 返回结果

    {"result":[{"features":[{"geometry":{"coordinates":[[[105.19542115,47.67937261],[112.92900573,53.25006389],[118.25104242,48.84339765],[116.92053325,41.6929581],[108.77116456,38.78289549],[105.19542115,47.67937261]]],"type":"Polygon"},"type":"Feature","properties":{"ID":1}}],"prj":"GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137,298.257223563]],PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.017453292519943295]]","type":"FeatureCollection"}],"resultcode":"success","dir":"E:/Work/KQGIS_Server_Win64_V8.1_20210804/service/tomcat/temp/5af14077-957d-4708-8aa5-fba1effb94a9"}

CAD文件解析

  • 方法名:cadparser

  • 接口功能

    对dxf或dwg格式进行解析

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/cadparser
  • 请求json示例

    {
    	"filename":"CAD.DXF",
    	"name":"getLayers",
    	"layername":"",
    	"fields":"",
    	"where":""
    }
  • 请求参数说明

    表单参数:

    <form action="./rest/services/geometryserver/cadparser" method="post" enctype="multipart/form-data">
    	文件:<input type="file" name="filename"><br>
    	方法名:
    	<select name="method">
    		<option value ="getLayers">getLayers</option>
    		<option value ="getFeatures">getFeatures</option>
    	</select><br>
    	图层名:<input type="text" name="layername"><br>
    	字段名:<input type="text" name="fields"><br>
    	查询条件:<input type="text" name="where"><br>
    	<input type="submit" value="提交">
    </form>
    名称 必填 类型 说明
    action string Servlet URL,且必须为post请求
    filename binary 上传至服务器中的dxf或dwg文件的二进制流
    method string 解析方式;getLayers:通过图层解析;getFeatures:通过要素解析
    layername 条件 string 图层名称,当method为getFeatures时必选
    fields 条件 string 字段名称,当method为getFeatures时必选
    where 可选 string 查询条件,可选项,sql语句中的where子句
  • 返回结果

    其中,{field collection}表示要素类的字段信息。

    {"resultcode":"success","result":{"type":"FeatureDataSet","name":"CAD.DXF","filename":"E:/Work/CAD.DXF","layers":[{"type":"FeatureClass","name":"Point","extent":"112.406164,28.933952,114.510310,30.963777","shapeFieldName":"Shape","shapeType":"Point","fields":"{field collection}"},{"type":"FeatureClass","name":"Polyline","extent":"112.406164,28.933952,114.510310,30.963777","shapeFieldName":"Shape","shapeType":"LineString","fields":{field collection}},{"type":"FeatureClass","name":"Polygon","extent":"112.406164,28.933952,114.510310,30.963777","shapeFieldName":"Shape","shapeType":"Polygon","fields":{field collection}},{"type":"FeatureClass","name":"MultiPatch","extent":"112.406164,28.933952,114.510310,30.963777","shapeFieldName":"Shape","shapeType":"LineString","fields":{field collection}},{"type":"FeatureClass","name":"Annotation","extent":"112.406164,28.933952,114.510310,30.963777","shapeFieldName":"Shape","shapeType":"Point","fields":{field collection}},{"type":"FeatureClass","name":"rect","extent":"112.406164,28.933952,114.510310,30.963777","shapeFieldName":"Shape","shapeType":"Polygon","fields":{field collection}}]},"time":41.638}

图形检查

  • 方法名:geometrycheck

  • 接口功能

    图形的拓朴错误检查

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/geometrycheck
  • 请求json示例

    {
    	"geometries":"{GeometryCollection or Geometry GeoJson Object}",
    	"geoSRS":"{The projection for geometries}",
    	"areaSRS":"{The projection to calculate area or length}",
        "params":
        {
            "PointLimit":0.0000001,
            "AreaLimit":0.01
        }
    }
  • 请求参数说明

    名称 必填 类型 说明
    geometries string 是分析的图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    geoSRS string 图形的坐标所属的空间参考
    areaSRS string 计算面积所使用的空间参考
    params string 图形检查参数n ,PointLimit:容差 AreaLimit:最小面积
  • 返回结果

    {
        "resultcode": "success",
        "result": [
            {
                "id": 0,						//图形序号
                "errors": [
                    {
                        "code": 8201,			//错误编码
                        "name": "对象重叠"	//错误名称
                    }
                ]
            },
            {
                "id": 1,
                "errors": [
                    {
                        "code": 8201,
                        "name": "对象重叠"
                    }
                ]
            }
        ],
        "time": "0.036"
    }
    
    错误编码:
    0x1001 ( 4097 ):自相交 
    0x2001 (8193):小多边形 
    0x2002 (8194):图形未封闭 
    0x2003 (8195):点数少于4
    0x2004 (8196):存在环上环
    0x2005 (8197):多外环   
    0x2006 (8198):重点       
    0x2007 (8199):共点     
    0x2008 (8200):自身悬挂
    0x2009 (8201):对象重叠

几何属性

  • 方法名:area,length,center,bound

  • 接口功能

    支持计算给定线状要素或面状要素的长度、中心点、外接矩形以及面状要素的面积

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/GeometryAttribute
  • 请求json示例

    {
    	"data":"{GeometryCollection or Geometry GeoJson Object}",
    	"attributenames":"area,length,center,bound",
    	"geoSRS":"{The projection for geometries}",
        "areaSRS":"{The projection which uesed to calculate the area}"
    	
    }
  • 请求参数说明

    名称 必填 类型 说明
    data string 要计算面积或长度的图形对象,类型为GeometryCollection或Polygon等GeoJson对象
    attributenames string 需要计算的属性参数,可以为area、length、center、bound中的一个或多个
    geoSRS string 图形的坐标所属的空间参考
    areaSRS string 目标空间参考
  • 返回结果

    {
        "result": [
            {
                "id": 0,
                "area": 31534374.82070503,
                "bound": [
                    115.98963577,
                    31.46767046,
                    116.0690208,
                    31.50514637
                ],
                "center": [
                    116.02932828499999,
                    31.486408414999996
                ],
                "length": 31534374.82070503
            }
        ],
        "resultcode": "success",
        "time": 0.002
    }

空间参考目录树(getCoordinateSystem)

  • 接口说明

    返回空间参考信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/geometryserver/getCoordinateSystem
  • 请求json示例

    {
    	"id": 0,
    	"isRecurse": false
    }
  • 请求参数说明

    名称 必填 类型 说明
    id int 节点id,默认为0,返回根节点
    isRecurse bool 是否递归,默认为false,id对应节点为文件时该参数无效
  • 结果

    id对应的节点为某个文件,isRecurse参数无效:

    {
    	"result": {
    		"id": 5,
    		"isFolder": false,
    		"name": "Africa Lambert Conformal Conic",
    		"wkt": "PROJCS[\"Africa_Lambert_Conformal_Conic\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Lambert_Conformal_Conic\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",25.0],PARAMETER[\"Standard_Parallel_1\",20.0],PARAMETER[\"Standard_Parallel_2\",-23.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0],AUTHORITY[\"ESRI\",102024]]"
    	},
    	"resultcode": "success",
    	"time": 0.001
    }

    id对应的节点为目录,isRecurse为false:

    {
    	"result": {
    		"childNodes": [
    			{
    				"id": 1,
    				"isFolder": true,
    				"name": "Projected Coordinate Systems"
    			}
    		],
    		"id": 0,
    		"isFolder": true,
    		"name": "Coordinate Systems"
    	},
    	"resultcode": "success",
    	"time": 0
    }

    id对应的节点为目录,isRecurse为true:

    {
    	"result": {
    		"childNodes": [
    			{
    				"childNodes": [
    					{
    						"childNodes": [
    							{
    								"id": 3,
    								"isFolder": false,
    								"name": "Africa Albers Equal Area Conic",
    								"wkt": "PROJCS[\"Africa_Albers_Equal_Area_Conic\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Albers\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",25.0],PARAMETER[\"Standard_Parallel_1\",20.0],PARAMETER[\"Standard_Parallel_2\",-23.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0],AUTHORITY[\"ESRI\",102022]]"
    							},
    							{
    								"id": 4,
    								"isFolder": false,
    								"name": "Africa Equidistant Conic",
    								"wkt": "PROJCS[\"Africa_Equidistant_Conic\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Equidistant_Conic\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",25.0],PARAMETER[\"Standard_Parallel_1\",20.0],PARAMETER[\"Standard_Parallel_2\",-23.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0],AUTHORITY[\"ESRI\",102023]]"
    							},
    							{
    								"id": 5,
    								"isFolder": false,
    								"name": "Africa Lambert Conformal Conic",
    								"wkt": "PROJCS[\"Africa_Lambert_Conformal_Conic\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Lambert_Conformal_Conic\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",25.0],PARAMETER[\"Standard_Parallel_1\",20.0],PARAMETER[\"Standard_Parallel_2\",-23.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0],AUTHORITY[\"ESRI\",102024]]"
    							},
    							{
    								"id": 6,
    								"isFolder": false,
    								"name": "Africa Sinusoidal",
    								"wkt": "PROJCS[\"Africa_Sinusoidal\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Sinusoidal\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",15.0],UNIT[\"Meter\",1.0],AUTHORITY[\"ESRI\",102011]]"
    							}
    						],
    						"id": 2,
    						"isFolder": true,
    						"name": "Africa"
    					}
    				],
    				"id": 1,
    				"isFolder": true,
    				"name": "Projected Coordinate Systems"
    			}
    		],
    		"id": 0,
    		"isFolder": true
    		"name": "Coordinate Systems"
    	},
    	"resultcode": "success",
    	"time": 0.001
    }

QueryService-查询服务

差异分析

  • 方法名:difference

  • 接口功能

    图层在where条件下查询到的结果记作result,查询图形geometry再与result作差运算,得到属于geometry但不属于图层的要素信息

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/difference
  • 请求json示例

    {
    	"layerid":"1",
    	"geometry":{"type":"Polygon","coordinates":[[[111.23670927,34.75202349],[111.24876396,34.75096205],[111.24289828,34.74352895],[111.23418553,34.74897716],[111.23670927,34.75202349]]]},
        "geoSRS":"EPSG:4326",
    	"outSRS":"EPSG:4326"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    startIndex int 需要返回结果的起始序号
    reqCount int 要求返回结果的最大记录数
    geometry geojson 用于空间查询的图形对象,GeoJson的geometry格式,类型可以是Polygon,MultiPolygon或者包含这两者的GeometryCollection。该参数和where参数必须有一个存在并且有效。如果geoSRS为空时,则坐标必须是服务的目标空间参考下的坐标
    where string 查询条件,sql语句中的where子句,该参数和geometry参数必须有一个存在并且有效
    orderField string 排序字段,只能为1个
    bIsAsc bool 是否升序,默认为true
    geoSRS string 传入图形的空间参考,如果给定的图形的坐标不是服务的目标空间参考下的坐标,则该参数必须能正确描述坐标的空间参考信息
    outSRS string 输出结果图形的空间参考
    tolerance int 容差值(单位:米)
  • 返回结果

    {"resultcode":"success","result":{"type":"Polygon","coordinates":[[[111.23418553,34.74897716],[111.24289827,34.74352894],[111.24876396,34.75096205],[111.23670927,34.75202349],[111.23418553,34.74897716]]],"center":[111.24147474,34.74777621],"numberReturned":1,"totalFeatures":1,"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"TimeStamp":"周二 6月 30 17:38:12 2020"},"time":0.035}

多层差异分析

  • 方法名:differenceext

  • 接口功能

    图层1在where1条件下查询到的结果与geometry作交集,过滤掉图层1中不相交的部份,结果记作result1,图层2在where2条件下查询到的结果记作result2,result1再与result2作差运算,得到属于result1而不属于result2的要素信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/differenceext
  • 请求json示例

    {
    	"layerid1":"1",
    	"layerid2":"2",
    "geometry":{"type":"Polygon","coordinates":[[[111.22824401,34.7435604],[111.22824401,34.7605046],[111.26902725,34.7605046],[111.26902725,34.7435604],[111.22824401,34.7435604]]]}",
    	"geoSRS":"EPSG:4326",
    	"outSRS":"EPSG:4326",
    	"areaSRS":"EPSG:2361"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerID1 int 图层1的ID
    layerID2 int 图层2的ID
    startIndex int 需要返回结果的起始序号
    reqCount int 要求返回结果的最大记录数
    fields1 string 图层1的字段名
    fields2 string 图层2的字段名
    where1 string 图层1的查询条件,可选项,sql语句中的where子句,该参数和geometry参数必须有一个存在并且有效
    orderField1 string 排序字段,只能为1个
    bIsAsc1 bool 是否升序,默认为true
    where2 string 图层2的查询条件,可选项,sql语句中的where子句,该参数和geometry参数必须有一个存在并且有效
    orderField2 string 排序字段,只能为1个
    bIsAsc2 bool 是否升序,默认为true
    ignorelayerfilter bool 是否忽略图层过滤条件,可选项,默认为true,true:不忽略,false:忽略
    tolerance int 容差值(单位:米)
    minArea int 面积容差(单位:平方米),可选项,图层1和图层2交运算生成的面积小于minArea的geometry将被过滤掉
    minLength int 长度容差(单位:米),可选项,图层1和图层2交运算生成的长度小于minArea的geometry将被过滤掉
    geometry geojson 用于空间查询的图形对象,GeoJson的geometry格式,类型可以是Polygon,MultiPolygon或者包含这两者的GeometryCollection。该参数和where参数必须有一个存在并且有效。如果geoSRS为空时,则坐标必须是服务的目标空间参考下的坐标
    geoSRS string 传入图形的空间参考,可选项,如果给定的图形的坐标不是服务的目标空间参考下的坐标,则该参数必须能正确描述坐标的空间参考信息
    outSRS string 输出结果图形的空间参考
    areaSRS string 输出结果图形面积的空间参考
  • 返回结果

    {"resultcode":"success","result":{"type":"FeatureCollection","fields":[{"name":"BSM","type":"Integer"},{"name":"YSDM","type":"String"},{"name":"XZQDM","type":"String"},{"name":"XZQMC","type":"String"},{"name":"KZMJ","type":"Double"},{"name":"JSMJ","type":"Double"},{"name":"MSSM","type":"String"},{"name":"FID"}],"features":[{"type":"Feature","geometry":{GeoJson as FeatureCollection},"AreaLength":789113.4918969754,"properties":{"BSM":0,"YSDM":"NULL"},"difference":{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"area":328736.02787567986}}},{"type":"Feature","geometry":{GeoJson as FeatureCollection}s,"AreaLength":591830.0754731704,"properties":{"BSM":0,"YSDM":"NULL"},"difference":{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"area":181247.99741792677}}}],"numberReturned":2,"totalFeatures":-1,"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"TimeStamp":"周二 6月 30 17:23:11 2020"},"time":0.244}

叠置分析

  • 方法名:overlap

  • 接口功能

    图层在where条件下查询到的结果记作result,查询图形geometry再与result作交运算,得到图层在相交部份的要素信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/overlap
  • 请求json示例

    {
    	"layerid":"1",
    	"geometry":{"type":"Polygon","coordinates":[[[111.22824401,34.7435604],[111.22824401,34.7605046],[111.26902725,34.7605046],[111.26902725,34.7435604],[111.22824401,34.7435604]]]}",
    	"geoSRS":"EPSG:4326",
    	"outSRS":"EPSG:4326",
    	"areaSRS":"EPSG:2361"	
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    startIndex int 需要返回结果的起始序号
    reqCount int 要求返回结果的最大记录数
    geometry geojson 用于空间查询的图形对象,GeoJson的geometry格式,类型可以是Polygon、MultiPolygon或者包含这两者的GeometryCollection。该参数和where参数必须有一个存在并且有效。如果geoSRS为空时,则坐标必须是服务的目标空间参考下的坐标
    where string 查询条件,sql语句中的where子句,该参数和geometry参数必须有一个存在并且有效
    orderField string 排序字段,只能为1个
    bIsAsc bool 是否升序,默认为true
    geoSRS string 传入图形的空间参考,如果给定的图形的坐标不是服务的目标空间参考下的坐标,则该参数必须能正确描述坐标的空间参考信息
    outSRS string 输出结果图形的空间参考
    areaSRS string 计算图形面积或长度的空间参考
    tolerance int 容差值(单位:米)
    fields string 需要返回的字段,默认为返回所有字段
  • 返回结果

    {"resultcode":"success","result":{"type":"FeatureCollection","fields":[{"name":"BSM","type":"Integer"},{"name":"YSDM","type":"String"},{"name":"XZQDM","type":"String"},{"name":"XZQMC","type":"String"},{"name":"KZMJ","type":"Double"},{"name":"JSMJ","type":"Double"},{"name":"MSSM","type":"String"},{"name":"FID"},{"name":"AreaLength1","aliasName":"原始面积或长度","type":"Double"},{"name":"AreaLength2","aliasName":"重叠面积或长度","type":"Double"}],"features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[111.26241699,34.74356132],[111.26443952,34.74552049],[111.23956544,34.75139915],[111.25377314,34.74356199],[111.26241699,34.74356132]]]},"properties":{"AreaLength1":785438.7206,"AreaLength2":652029.0877,"BSM":0,"YSDM":"","XZQDM":"","XZQMC":"","KZMJ":0.0,"JSMJ":0.0,"MSSM":"","FID":"0"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[111.26902724,34.75447768],[111.2633625,34.75499959],[111.26902724,34.74817768],[111.26902724,34.75447768]]]},"properties":{"AreaLength1":589060.8779,"AreaLength2":181247.9974,"BSM":0,"YSDM":"","XZQDM":"","XZQMC":"","KZMJ":0.0,"JSMJ":0.0,"MSSM":"","FID":"2"}}],"numberReturned":2,"totalFeatures":-1,"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"TimeStamp":"周二 6月 30 17:53:06 2020"},"time":0.046}

多层叠置分析

  • 方法名:overlapext

  • 接口功能

    图层1在where1条件下查询到的结果与geometry作相交判断,过滤掉图层1中不相交的部份,结果记作result1,图层2在where2条件下查询到的结果记作result2,result1再与result2作交运算,得到result1和result2交集的要素信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/overlapext
  • 请求json示例

    {
    	"layerid1":"1",
    	"layerid2":"2",
    "geometry":{"type":"Polygon","coordinates":[[[111.22824401,34.7435604],[111.22824401,34.7605046],[111.26902725,34.7605046],[111.26902725,34.7435604],[111.22824401,34.7435604]]]},
    	"geoSRS":"EPSG:4326",
    	"outSRS":"EPSG:4326",
    	"areaSRS":"EPSG:2361"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid1 int 图层1的ID
    layerid2 int 图层2的ID
    startIndex int 需要返回结果的起始序号
    reqCount int 要求返回结果的最大记录数
    fields1 string 图层1的字段名
    fields2 string 图层2的字段名
    where1 string 图层1的查询条件,,sql语句中的where子句,该参数和geometry参数必须有一个存在并且有效
    orderField1 string 排序字段,只能为1个
    bIsAsc1 bool 是否升序,默认为true
    where2 string 图层2的查询条件,sql语句中的where子句,该参数和geometry参数必须有一个存在并且有效
    orderField2 string 排序字段,只能为1个
    bIsAsc2 bool 是否升序,默认为true
    ignorelayerfilter bool 是否忽略图层过滤条件,可选项,默认为true,true:不忽略,false:忽略
    tolerance int 容差值(单位:米)
    minArea int 面积容差(单位:平方米),图层1和图层2交运算生成的面积小于minArea的geometry将被过滤掉
    minLength int 长度容差(单位:米),图层1和图层2交运算生成的长度小于minArea的geometry将被过滤掉
    geometry geojson 用于空间查询的图形对象,GeoJson的geometry格式,类型可以是Polygon,MultiPolygon或者包含这两者的GeometryCollection。若geometry为空,则不作空间过滤查询全部结果。如果geoSRS为空时,则坐标必须是服务的目标空间参考下的坐标
    geoSRS string 传入图形的空间参考,如果给定的图形的坐标不是服务的目标空间参考下的坐标,则该参数必须能正确描述坐标的空间参考信息
    outSRS string 输出结果图形的空间参考
    areaSRS string 输出结果图形面积的空间参考
  • 返回结果

    {"resultcode":"success","result":{"fields":[{"name":"BSM","type":"Integer"},{"name":"YSDM","type":"String"},{"name":"XZQDM","type":"String"},{"name":"XZQMC","type":"String"},{"name":"KZMJ","type":"Double"},{"name":"JSMJ","type":"Double"},{"name":"MSSM","type":"String"},{"name":"FID"}],"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[111.23956544,34.75139915],[111.25928076,34.74052307],[111.26443952,34.74552049],[111.23956544,34.75139915]]]},"AreaLength":789113.4918969754,"properties":{"BSM":0,"YSDM":"","XZQDM":"","XZQMC":"","KZMJ":0.0,"JSMJ":0.0,"MSSM":"","FID":"0"},"overlaps":[{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":2874.6045789672946,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":89033.82425593224,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":41971.20128819321,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":44265.061802680546,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":15020.125344466145,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":75012.21392821816,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":25800.273649796993,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":16506.477318129146,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":13232.030597282394,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":28406.29406631251,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":14821.242991512258,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":8173.719373761715,"properties":{}}]}],"numberReturned":1,"totalFeatures":-1,"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"TimeStamp":"周二 6月 30 17:54:56 2020"},"time":0.166}

表字段查询

  • 方法名:fields

  • 接口功能

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/fields
  • 请求json示例

    {
    	"layerId":"1",
    	"isSummaryField":"true",
    	"maxGroupItemCount":""
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerId int 图层ID
    isSummaryField string 是否对字段进行分类汇总,默认为false
    maxGroupItemCount int 最大分组数,默认为1000
  • 返回结果

    • isSummaryField=false
    {"result":{"fields":[{"name":"BSM","aliasname":"","type":"Integer","length":9,"precision":0,"scale":0},{"name":"YSDM","aliasname":"","type":"String","length":10,"precision":0,"scale":0},{"name":"DLMC","aliasname":"","type":"String","length":30,"precision":0,"scale":0}]},"resultcode":"success","time":0.003}
    • isSummaryField=true
    {"result":{"groupfields":[{"name":"DLMC","aliasname":"","type":"String","length":30,"precision":0,"scale":0}],"summaryfields":[{"name":"BSM","aliasname":"","type":"Integer","length":9,"precision":0,"scale":0}]},"resultcode":"success","time":0.011}

唯一值查询

  • 方法名:uniquevalue

  • 接口功能

    该功能返回指定要素图层指定字段的唯一值信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/hsqxzq/queryserver/uniquevalue
  • 请求json示例

    {
        "layerId": 1,
    	"fieldName": "XZQMC"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerId int 图层ID
    fieldName string 字段名
  • 返回结果

    {"resultcode":"success","result":{"fieldinfo":{"name":"XZQMC","type":"String","length":200},"values":["'建设乡二渔场'","'土桥村'","'省农科院'","'洪山乡渔牧三场'","'华钢砖厂'","'何刘村'","'钢铁村'","'沿江村'","'九峰乡养殖场'","'东湖'","'洪山区水泥厂'","'洪山乡渔牧二场'","'长征村'","'石咀砖瓦厂'","'珞南街'","'武汉市第二福利院'","'磨山村桥梁村争议'","'洪山乡渔牧五场'","'九峰村'","'马驿村'","'前丰村'","'武丰村柴林头村争议'","'新洪村'","'五星村'","'北洋桥村'","'关山街'","'和平乡九峰乡争议'","'江夏区洪山区争议'","'联合村'","'团结村'","'努力村'","'天兴畜牧场'","'老桥村渔业村争议'","'贾岭村'","'卸甲村'","'建和村'","'姚家岭村'","'火箭村'","'建设村'","'武东村'","'市收容遣送站'","'老桥村'","'晒湖'","'渣家庙村'","'大罗村'","'团山'","'大洲村'","'白马洲村'","'程墩村'","'团山水厂'","'新建村'","'西湾村'","'东湖村渔光村争议'","'白浒村'","'东方红村'","'菜科所'","'东港村'","'九峰建筑队'","'和平乡二渔场'","'中南民族学院'","'滨湖村'","'红旗纸厂'","'红胜村'","'建设乡渔牧四场'","'红光村'","'金王村'","'建和村渔业村争议'","'青菱养殖场'","'厂前村'","'花山村'","'林管会村'","'关山村卓刀泉村争议'","'何董村'","'群联村'","'保丰村'","'野芷湖农场'","'工业港村'","'复兴村'","'长江村'","'李桥村'","'花山渔场'","'建设乡长江'","'星火村'","'市苗圃'","'青菱湖'","'群利村'","'渔业村'","'和平乡园林场'","'洪山乡渔牧一场'","'群建村新农村争议'","'洪山乡水科所'","'左岭村'","'鲁巷果园'","'武汉果木研究所'","'挽月中学'","'李桥养殖场'","'崇阳村'","'石咀村'","'杨泗矶村'","'快岭村'","'洪山乡群英砖厂'","'市园林场'","'新农村'","'天兴村'","'建阳村'","'武丰村'","'洪山林场'","'洪山村'","'白洋山村'","'东方村'","'鼓架村'","'华工鱼池'","'青菱村'","'青菱乡长江'","'风光村'","'先建村汤孙湖村争议'","'山湖村'","'部队靶场'","'钢花新村'","'横堤村'","'清丰村'","'毛坦村'","'狮子山街'","'渔光村'","'柴林头村铁机村争议'","'联丰村'","'春和村'","'和平乡四渔场'","'群建村'","'南湖养殖场(南湖)'","'青山良种场'","'江心村'","'和平乡飞地'","'彭李村'","'野芷湖'","'军地'","'同心村'","'严西湖渔场'","'和平乡一渔场'","'九峰乡政府'","'无线电电表厂'","'四新村'","'杨林村'","'天兴乡长江'","'五一村'","'井冈村'","'红霞村'","'洪山乡幸福村'","'三角路村'","'后山村'","'洪山乡渔牧四场'","'东兴洲村'","'北港村'","'吕墩村'","'周庄村'","'左岭镇长江'","'建设乡一渔场'","'新路村'","'新集村'","'花山镇长江'","'四砖厂'","'曙光村'","'和平村'","'光霞村'","'市油料所'","'花园村'","'红旗街'","'彭李村卸甲村争议'","'南湖村'","'清潭村'","'和平乡先锋村'","'余家头村'","'湖光村'","'建强村'","'磨山村'","'新路村渔牧三场争议'","'建洲村'","'群力村'","'省中医学院农场'","'严东湖养殖场'","'杨春湖'","'天兴乡农民集体所有'","'洪山乡向阳村'","'赛山村'","'青菱湖渔场'","'洪山乡良种二场'","'泉井村'","'红军村'","'黎明村'","'奶牛场'","'余家湖村'","'黄家湖'","'卢家咀村'","'金塘村'","'红焰村'","'三星村'","'胜利村'","'火官庙村'","'向家尾村'","'烽火村'","'龚家岭村'","'东湖村'","'湖北省林业科研所'","'建设乡三渔场'","'武昌牛奶场'","'北湖农场'","'新路村汤孙湖村争议'","'华中科技大学'","'新村村'","'新洲区阳逻农场'","'东亭村'","'卓刀泉村'","'洪山砖厂'","'武昌东站'","'吴桥渔场'","'武汉第三制药厂'","'华中农业大学'","'铁机村'","'桥梁村'","'和平乡长江'","'吴桥村'","'园艺村'","'上街村'","'白玉山公园'","'建群村'","'群英村'","'九峰小学'","'关山村'","'武徐村'","'省品改站'","'姚家岭村余家湖村争议'","'黄陂岭村'","'林场'","'新跃村'","'朝阳村'","'青山区洪山区争议'","'胡教村'","'九峰种鸡场'","'胜新村'","'柴林头村大洲村争议'","'九峰园林场'","'乡斧头山'","'胜强村'","'先建村'","'徐东村'","'柴林头村'","'洪山乡园林场'","'长山小学'","'和平乡五渔场'","'武汉市蔬菜公司'","'马湖村'","'九峰竹林场'","'高潮村'","'汤孙湖村'","'板桥村'","'竹子湖'","'双建村'","'武汉微型电机厂'","'红旗村'"],"numberReturned":259,"totalFeatures":259,"TimeStamp":"周六 5月 8 18:00:55 2021"},"time":0.401}

空间查询

  • 方法名:query

  • 接口功能

    该功能是使用指定的where条件或空间条件查询指定要素图层中的要素信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/query
  • 请求json示例

    {
    	"layerId":"3",
    	"startIndex":"0",
    	"reqCount":"2",
    	"geometry":{"type":"Polygon","coordinates":[[[12099015.36044702,2702930.389277815],[12099015.36044702,2691685.575121517],[12081023.65779695,2691685.575121517],[12081023.65779695,2702930.389277815],[12099015.36044702,2702930.389277815]]]},
    	"fields":"NAME,PAC,SHAPE",
    	"where":"",
        "geoSRS":"",
        "outSRS":"",
    	"areaSRS":""
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerId int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    startIndex int 需要返回结果的起始序号
    reqCount int 要求返回结果的最大记录数
    geometry geojson 用于空间查询的图形对象,GeoJson的geometry格式,类型可以是Polygon,MultiPolygon或者包含这两者的GeometryCollection。该参数和where参数必须有一个存在并且有效。如果geoSRS为空时,则坐标必须是服务的目标空间参考下的坐标
    where string 查询条件,sql语句中的where子句,该参数和geometry参数必须有一个存在并且有效
    orderField string 排序字段,只能为1个
    bIsAsc bool 是否升序,默认为true
    outSRS string 输出结果图形的空间参考
    geoSRS string 传入图形的空间参考,如果给定的图形的坐标不是服务的目标空间参考下的坐标,则该参数必须能正确描述坐标的空间参考信息
    areaSRS string 计算图形面积或长度的空间参考
    tolerance int 容差值(单位:米)
    fields string 需要返回的字段,默认为返回所有字段
    returnGeometry bool 是否返回图形信息,默认为true
  • 返回结果

    {"result":{"type":"FeatureCollection","fields":[{"name":"hzxm","aliasName":"hzxm"},{"name":"OBJECTID","aliasName":"OBJECTID"}],"features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[12089413.938445061,2697746.581308918],[12089409.640327526,2697731.610107625],[12089423.658564394,2697727.5265782736],[12089427.969651438,2697742.49409919],[12089413.938445061,2697746.581308918]]]},"properties":{"hzxm":"石干忠","OBJECTID":121}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[12089391.032815544,2697749.725214579],[12089386.767469764,2697736.597366425],[12089393.750075433,2697734.4442261546],[12089397.775243433,2697747.646098966],[12089391.032815544,2697749.725214579]]]},"properties":{"hzxm":"苏兰忠","OBJECTID":122}}]},"time":0.06,"resultcode":"success"}

汇总查询

  • 方法名:summary

  • 接口功能

    该功能是使用指定的where条件或空间条件查询指定要素图层中的要素信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/summary
  • 请求json示例

    {
        "startIndex": "0",
        "reqCount": "1000000",
        "where": "",
        "layerId": "93",
        "geometry": {
            "type": "PolyGon",
            "coordinates": [
                [
                    [
                        104.7967190721603,
                        30.379618149023937
                    ],
                    [
                        104.7967190721603,
                        30.189802667921317
                    ],
                    [
                        104.42196102810148,
                        30.189802667921317
                    ],
                    [
                        104.42196102810148,
                        30.379618149023937
                    ],
                    [
                        104.7967190721603,
                        30.379618149023937
                    ]
                ]
            ]
        },
        "groupFields": "DLMC",
        "summaryfields": "TBMJ,TBDLMJ,$area$,$length$",
        "summarytypes": "sum,min,max,count",
        "isOverlap": "true",
        "geoSRS": "EPSG:4326",
        "areaSRS": "EPSG:2359"
    }
  • 请求参数说明

    名称 必选 类型 说明
    layerId int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    startIndex int 汇总所使用的符合条件的记录的起始序号
    reqCount int 汇总所使用的符合条件的最大记录数,如果不指定,则最多统计10W条记录
    geometry geojson 用于空间查询的图形对象,GeoJson的geometry格式,类型可以是Polygon,MultiPolygon或者包含这两者的GeometryCollection。该参数和where参数必须有一个存在并且有效。如果geoSRS为空时,则坐标必须是服务的目标空间参考下的坐标
    where string 查询条件,sql语句中的where子句,该参数和geometry参数必须有一个存在并且有效
    orderField string 排序字段,只能为1个
    bIsAsc bool 是否升序,默认为true
    geoSRS string n 传入图形的空间参考,必选项,如果给定的图形的坐标不是服务的目标空间参考下的坐标,则该参数必须能正确描述坐标的空间参考信息。
    areaSRS string 计算图形面积或长度的空间参考
    tolerance int 容差值(单位:米)
    groupfields string 分组字段,如果是多个字段,用逗号间隔。字段的类型只能为字符串、整数值、日期类型。分组字段是有序的。最多只能返回10000个分组
    summaryfields string 汇总字段,如果是多个字段,用逗号间隔。字段类型只能数值。如果需要汇总面积,加入字段“$area$”,汇总长度,加入字段"$length$"
    summarytypes string 汇总类型,sum:求和,min:最小值,max:最大值,avg:平均值,count:计数,只进行计数,不需要指定汇总字段
    isOverlap string 如果用图形进行查询时,是否需要进行叠置分析后再计算面积
  • 返回结果

    {
        "result": {
            "names": "村庄,旱地,水田,铁路用地,有林地", 	//返回的全部分组名称,逗号间隔
            "itemcount": 5,                          	//返回的分组数
            "recordcount": 10,                     	//参与汇总的记录数
            "items": [                                	//分组项
                {
                    "name": "村庄",                 	//分组名称
                    "count": 2,                       //本分组的记录数
                    "values": [                      	//汇总值
                        {  "fieldname": "$area$",       //汇总字段名(此外为图形面积)
                            "min": 2781.0215467190574, 	//最小值
                            "max": 8378.022469853538, 	//最大值
                            "sum": 11159.044016572596   	//总和
                        },
                        {
                            "fieldname": "tbmj",
                            "min": 2780.9900000000002,
                            "max": 8377.87,
                            "sum": 11158.86
                        }
                    ]
                },
                {
                    "name": "旱地",
                    "count": 1,
                    "values": [
                        {
                            "fieldname": "$area$",
                            "min": 175745.16660739313,
                            "max": 175745.16660739313,
                            "sum": 175745.16660739313
                        },
                        {
                            "fieldname": "tbmj",
                            "min": 175742.44,
                            "max": 175742.44,
                            "sum": 175742.44
                        }
                    ]
                },
                {
                    "name": "水田",
                    "count": 3,
                    "values": [
                        {
                            "fieldname": "$area$",
                            "min": 3821.4989801011907,
                            "max": 31169.678325965666,
                            "sum": 56911.97305606377
                        },
                        {
                            "fieldname": "tbmj",
                            "min": 3821.46,
                            "max": 31169.170000000002,
                            "sum": 56911.05
                        }
                    ]
                },
                {
                    "name": "铁路用地",
                    "count": 1,
                    "values": [
                        {
                            "fieldname": "$area$",
                            "min": 1632.6445632451068,
                            "max": 1632.6445632451068,
                            "sum": 1632.6445632451068
                        },
                        {
                            "fieldname": "tbmj",
                            "min": 1632.6200000000001,
                            "max": 1632.6200000000001,
                            "sum": 1632.6200000000001
                        }
                    ]
                },
                {
                    "name": "有林地",
                    "count": 3,
                    "values": [
                        {
                            "fieldname": "$area$",
                            "min": 2728.177289549174,
                            "max": 14144.675862328972,
                            "sum": 23064.756126107073
                        },
                        {
                            "fieldname": "tbmj",
                            "min": 2728.12,
                            "max": 14144.45,
                            "sum": 23064.34
                        }
                    ]
                }
            ]
        },
        "time": "0.702",     		//消耗时间
    	"resultcode": "success",   	//返回结果代码,”success”表示成功,”error”表示失败
    	"message":""		      	//错误消息,resultcode为“error”时存在。
    }

执行SQL语句

  • 方法名:execute

  • 接口功能

    该功能是向服务发送一条sql,并在后台服务执行,返回sql语句的执行结果。可以为select、update语句,包含delete、drop等关键字的sql语句不能执行。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/execute
  • 请求json示例

    {
    	"startIndex":"0",
    	"reqCount":"100",
    	"sql":"select name,pac from $$4$$"
    }
  • 请求参数说明

    名称 必填 类型 说明
    startndex int 需要返回结果的起始序号
    reqCount int 要求返回结果的最大数量
    sql string sql语句,该sql语句中的表名用$${图层ID}$$来替代,后台根据图层ID来替换成表名。“$$”为标记符
  • 返回结果

    {"result":{"type":"FeatureCollection",
    "fields":[{"name":"name","type":"string"},{"name":"pac","type":"string"}],
    "features":[
    {"type":"Feature","properties":{"name":"’西燕镇’","pac":"’450125106’"}},
    {"type":"Feature","properties":{"name":"’白圩镇’","pac":"’450125103’"}},
    {"type":"Feature","properties":{"name":"’大丰镇’","pac":"’450125100’"}},
    {"type":"Feature","properties":{"name":"’三里镇’","pac":"’450125104’"}},
    {"type":"Feature","properties":{"name":"’塘红乡’","pac":"’450125203’"}},
    {"type":"Feature","properties":{"name":"’巷贤镇’","pac":"’450125102’"}},
    {"type":"Feature","properties":{"name":"’木山乡’","pac":"’450125202’"}},
    {"type":"Feature","properties":{"name":"’乔贤镇’","pac":"’450125105’"}},
    {"type":"Feature","properties":{"name":"’明亮镇’","pac":"’450125101’"}},
    {"type":"Feature","properties":{"name":"’澄泰乡’","pac":"’450125200’"}}
       ]
      }, 
    "time":0.0,
    "resultcode":"success"
    }

    注:返回结果中,属性字段类型为字符时,字段值将被单引号所包含

(8.5不支持)相关分析

  • 方法名:Correlation

  • 接口功能

    相关分析,计算两个变量的相关系数,反映变量之间相关关系密切程度的统计指标。

    主要研究两个或两个以上处于同等地位的随机变量间的相关关系的统计分析方法。例如,人的身高和体重之间;空气中的相对湿度与降雨量之间的相关关系都是相关分析研究的问题。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/Correlation
  • 请求json示例

    {
    	"layerid":"1",
    	"fieldName":"HJYS",
    	"corrFieldNames":"JTYS,SYYS,GYYS,ZHFZ"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    fieldName string 因变量字段,只能为单个字段
    corrFieldNames string 自变量字段,可以为多个字段,用逗号分隔
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "outputPath": "E:/Work/KQGIS_Desktop_V8.1.4.9.3_for_Windows_64_WS_20200715_0722_2/service/tomcat/rest/download/SpatialStatistics/Correlation.20200731144109.{ee5996dd-30c2-4eeb-969e-9505758455f5}.txt"
        },
        "time": 24.907
    }

(8.5不支持)回归分析

  • 方法名:Regress

  • 接口功能

    回归分析,计算每个因子的权重,得出各个自变量对目标变量产生的影响,因此,需要求出各个自变量的影响程度。

    这种技术通常用于预测分析,时间序列模型以及发现变量之间的因果关系。例如,司机的鲁莽驾驶与道路交通事故数量之间的关系,最好的研究方法就是回归。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/Regress
  • 请求json示例

    {
    	"layerid":"1",
    	"fieldName":"HJYS",
    	"corrFieldNames":"JTYS,SYYS,GYYS,ZHFZ"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    fieldName string 因变量字段,只能为单个字段
    corrFieldNames string 自变量字段,可以为多个字段,用逗号分隔
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "outputPath": "E:/Work/KQGIS_Desktop_V8.1.4.9.3_for_Windows_64_WS_20200715_0722_2/service/tomcat/rest/download/SpatialStatistics/Regress.20200731144723.{81597724-a591-4c26-b1d8-cfc871810019}.csv"
        },
        "time": 0.323
    }

(8.5不支持)聚类分析

  • 方法名:Clustering

  • 接口功能

    聚类分析,将对象集合分组为由类似的对象组成的多个类的分析过程。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/Clustering
  • 请求json示例

    {
    	"layerid":"1",
    	"corrFieldNames":"HJYS,JTYS",
    	"classCount":"2"
    }
  • 请求参数说明

    名称 必选 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    corrFieldNames string 聚类字段,可以为多个字段,用逗号分隔
    classCount string 分类数,整型
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "outputPath": "E:/Work/KQGIS_Desktop_V8.1.4.9.3_for_Windows_64_WS_20200715_0722_2/service/tomcat/rest/download/SpatialStatistics/Clustering.20200731145234.{5c9256db-ea7d-4b24-b5d0-192a44cd4bdf}.csv"
        },
        "time": 0.352
    }

(8.5不支持)主成份分析

  • 方法名:MainElement

  • 接口功能

    主成分分析,通过正交变换将一组可能存在相关性的变量转换为一组线性不相关的变量,转换后的这组变量叫主成分。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/MainElement
  • 请求json示例

    {
    	"layerid":"1",
    	"corrFieldNames":"BH,HJYS,JTYS,SYYS,GYYS"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    corrFieldNames string 分析字段,可以为多个字段,用逗号分隔
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "outputPath": "E:/Work/KQGIS_Desktop_V8.1.4.9.3_for_Windows_64_WS_20200715_0722_2/service/tomcat/rest/download/SpatialStatistics/MainElement.20200731145522.{b53a62c4-131d-4790-ae6f-f070df3380c4}.csv"
        },
        "time": 0.201
    }

(8.5不支持)秩相关分析

  • 方法名:RankCorrelation

  • 接口功能

    秩相关分析,是将两要素的样本值按数据的大小顺序排列位次,以各要素样本值的位次代替实际数据而求得的一种统计量。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/RankCorrelation
  • 请求json示例

    {
    	"layerid":"1",
    	"fieldName":"HJYS",
    	"corrFieldNames":"JTYS,SYYS,GYYS,ZHFZ",
    	"method":"0"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    fieldName string 因变量字段,只能为单个字段
    corrFieldNames string 自变量字段,可以为多个字段,用逗号分隔
    method int 因变量字段,整型,默认为0;0:Spearman方法,1:Kendall方法
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "outputPath": "E:/Work/KQGIS_Desktop_V8.1.4.9.3_for_Windows_64_WS_20200715_0722_2/service/tomcat/rest/download/SpatialStatistics/RankCorrelation.20200731150223.{8c488de3-d5ac-4101-b19a-f6e57b0b78e1}.csv"
        },
        "time": 0.15
    }

(8.5不支持)局部空间自相关分析

  • 方法名:LocalMoranI

  • 接口功能

    描述一个空间单元与其领域的相似程度,能够表示每个局部单元服从全局总趋势的程度(包括方向和量级),并提示空间异质,说明空间依赖是如何随位置变化的。可应用于,如中国省区城市化水平的空间分布聚集点

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/LocalMoranI
  • 请求json示例

    {
    	"layerid":"1",
    	"fieldName":"HJYS",
    	"spatialRelMode":"0",
    	"disType":"0",
    	"disThreshold":"0.0",
    	"isRowStandard":"false"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    fieldName string 分析字段,只能为单个字段
    spatialRelMode int 空间关系,整型,默认为0;0:反距离;1:反距离平方;2:固定距离;3:无差别距离
    disType int 距离方式,整型,默认为0;1:曼哈顿距离
    disThreshold int 距离阈值,默认为0.0
    isRowStandard bool 是否进行行标准化,默认为 false
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "outputPath": "E:/Work/KQGIS_Desktop_V8.1.4.9.3_for_Windows_64_WS_20200715_0722_2/service/tomcat/rest/download/SpatialStatistics/LocalMoranI.20200731152123.{b25fe4df-d7b2-4e0d-ace5-bbc1631f0f8d}.zip"
        },
        "time": 0.301
    }

生成空间权重矩阵

  • 方法名:CreateWeightMatrix

  • 接口功能

    构建一个空间权重矩阵文件,以表示数据集中各要素间的空间关系。空间权重矩阵可将数据集中各要素间的空间关系进行量化。

    因为空间权重矩阵要对数据强加一种结构,所以应选择可最恰当地反映要素彼此间实际交互方式的概念化(当然,还需考虑要尝试测量的对象)。例如,如果要测量森林中某种特定种类的种子繁殖树种的聚类,使用某种形式的反距离可能最适合。但是,如果要评估某一地区通勤者的地理分布,行程时间和行程成本可能是更好的选择。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/CreateWeightMatrix
  • 请求json示例

    {
    	"layerid":"1",
    	"spatialRelMode":"0",
    	"disType":"0",
    	"disThreshold":"0.0",
    	"isRowStandard":"false"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    spatialRelMode int 空间关系,整型,默认为0;0:反距离;1:反距离平方;2:固定距离;3:无差别距离
    disType int 距离方式,整型,默认为0
    disThreshold int 距离阈值,浮点型,可选项。默认为0.0
    isRowStandard bool 是否进行行标准化,布尔型,可选项,默认为 false
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "outputPath": "E:/Work/KQGIS_Desktop_V8.1.4.9.3_for_Windows_64_WS_20200715_0722_2/service/tomcat/rest/download/SpatialStatistics/CreateWeightMatrix.20200731151435.{89c00279-e5dc-4604-bd00-536049f5a559}.csv"
        },
        "time": 10.88
    }

空间自相关分析

  • 方法名:AutoCorrelation

  • 接口功能

    确定某一变量是否在空间上相关,其相关程度如何,空间自相关系数用来定量地描述事物在空间上的依赖关系。

    可适用于,如度量种族或民族分离随时间推移的总体趋势-分离程度是逐渐增强还是逐渐减弱

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/AutoCorrelation
  • 请求json示例

    {
        "layerid":"1",
        "fieldName":"锌",
        "spatialRelMode":"0",
        "disType":"0",
        "disThreshold":"0.0",
        "isRowStandard":"false"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID。
    fieldName string 分析字段,只能为单个字段
    spatialRelMode int 空间关系,整型,默认为0;0:反距离;1:反距离平方;2:固定距离;3:无差别距离
    disType int 距离方式,整型,默认为0;1:曼哈顿距离
    disThreshold int 距离阈值,默认为0.0
    isRowStandard bool 是否进行行标准化,默认为 false
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "outputPath": "E:/Work/KQGIS_Desktop_V8.1.4.9.3_for_Windows_64_WS_20200715_0722_2/service/tomcat/rest/download/SpatialStatistics/AutoCorrelation.20200731151917.{5697fa5e-2787-4e9b-9292-59a3dd838df5}.txt"
        },
        "time": 0.232
    }

高低聚类分析

  • 方法名:GpClustering

  • 接口功能

    测量特定区域的聚合程度,工具可针对指定的研究区域测量高值或低值的密度。

    汇总空间现象聚类的程度以检查不同时期或不同位置的变化。例如,众所周知的城市及其人口聚类。使用高/低聚类分析时,可以随时间来比较某个城市的人口聚类的程度(城镇发展以及密集度的分析)

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/GpClustering
  • 请求json示例

    {
    	"layerId":"1",
    	"fieldName":"磷",
    	"spatialRelMode":"0",
    	"disType":"0",
    	"disThreshold":"0.0",
    	"isRowStandard":"false"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerId int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    fieldName string 分析字段,只能为单个字段
    spatialRelMode int 空间关系,整型,默认为0;0:反距离;1:反距离平方;2:固定距离;3:无差别距离
    disType int 距离方式,整型,默认为0;1:曼哈顿距离
    disThreshold int 距离阈值,默认为0.0
    isRowStandard bool 是否进行行标准化,默认为 false
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "outputPath": "E:/Work/KQGIS_Desktop_V8.1.4.9.3_for_Windows_64_WS_20200715_0722_2/service/tomcat/rest/download/SpatialStatistics/GpClustering.20200731152543.{8886ee54-1e80-4537-86dc-6751f8b1397a}.txt"
        },
        "time": 0.244
    }

频数分析

  • 方法名:Frequency

  • 接口功能

    读取表和一组字段,这一组字段作为唯一字段值,获取各唯一字段值出现的次数。如果指定了汇总字段,则频数计算结果还会对各唯一字段值的每个汇总字段的数值型属性值进行求和。如掷硬币实验:在10次掷硬币中,有4次正面朝上,我们说这10次试验中‘正面朝上’的频数是4

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/Frequency
  • 请求json示例

    {
    	"layerid":"1",
    	"frequencyFields":"有机质,全氮,磷",
    	"sumFields":"硫,钙,镁"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    frequencyFields string 频数字段,可以为多个字段,用逗号分隔
    sumFields string 汇总字段,可以为多个字段,用逗号分隔
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "outputPath": "E:/Work/KQGIS_Desktop_V8.1.4.9.3_for_Windows_64_WS_20200715_0722_2/service/tomcat/rest/download/SpatialStatistics/Frequency.20200731152934.{865fc022-6782-4588-ab99-a20378fe37fe}.txt"
        },
        "time": 0.114
    }

汇总统计分析

  • 方法名:SumStatistics

  • 接口功能

    读取表和一组字段、汇总字段,这一组字段作为唯一字段值进行分类,汇总统计会对每一类的汇总字段计算汇总统计数据。可进行的统计运算:总和、中值、最大值、最小值、计数。

    通常按照类别进行汇总,如分别计算每种土地利用类别的总面积,将计算每种土地利用类别的汇总统计数据,以便显示该类中宗地的数量、最小和最大宗地的大小、平均宗地大小以及该类的总面积

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/SumStatistics
  • 请求json示例

    {
    	"layerid":"1",
    	"statisticsFieldName":"全氮",
    	"statisticsType":"0",
    	"classifyFieldNames":"有机质,全氮,磷"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerid int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    statisticsFieldName string 统计字段,只能为单个字段
    statisticsType int 统计类型,整型,默认为0;0:相加;1:平均值;2:最大值;3:最小值;4:计数
    classifyFieldNames string 分类字段,可以为多个字段,用逗号分隔
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "outputPath": "E:/Work/KQGIS_Desktop_V8.1.4.9.3_for_Windows_64_WS_20200715_0722_2/service/tomcat/rest/download/SpatialStatistics/SumStatistics.20200731153359.{017493a1-c905-45c5-8e70-3c6a5dbefa37}.txt"
        },
        "time": 0.085

创建要素类

  • 方法名:featureClassCreate

  • 接口功能

    该功能是将给定的要素集导入到指定的图层中

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/featureClassCreate
  • 请求json示例

    {
    	"tableName":"TEST_XZDW",
    	"spaceName":"",
    	"datasetName":"",
    	"shapeType":"line",
    	"aliasName":"线状地物",
        "prj":"EPSG:2359",
    	"fields":[
            {
                "name": "DLMC",
                "aliasName":"DLMC",
                "type":"nvarchar2",
                "length":30,
                "precision":0,
                "scale":0,
                "nullable":true,
                "defaultvalue":""
            }
        ]
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerId int 数据源的图层ID,指定要创建的要素类的数据库,该ID可以是服务中的任一数据图层的ID,只需要能确定数据源即可
    tableName string 表名,指定要创建的要素类的表名
    aliasName string 图层别名,指定要创建的要素类的别名
    datasetName string 数据集名,指定要创建的要素类所属的数据集名称
    shapeType string 要素的图形类型,指定要创建的要素类的图形类型;point:点;multipoint:多点;line,polyline,linestring,path:线;area,polygon:面
    prj string 空间参考,指定要创建的要素类的空间参考
    fields json array 字段描述,指定要创建的要素类字段信息。

    fields该参数是一个json对象数组。数组中的每一个元素是一个json对象。其中type可选如下类型:

    序号 名称 说明 备注
    1 smallint 短整形
    2 Int,integer 整形
    3 bigint 8字节整形
    4 float 单精度浮点型
    5 double 双精度浮点型
    6 numeric 数字类型 需要指定数值精度和小数位位数
    7 String,nvarchar,nvarchar2 字符串 需要指定字段长度
    8 Date,dateTime 日期类型
    9 image 二进制流

    Length:字段长度

    Precision:数值精度

    Scale:最大有效小数位数

    Nullable:是否可为空,true:可为空,false:不可为空

  • 返回结果

    • 样式

      {"result":{"ID":2244},"time":"1.439","resultcode":"success"}
    • 说明

      创建要素类成功
      ”resultcode”为”success”
      创建要素类失败
      ”resultcode”为”error”,”message”为错误信息
      biemaiResult:创建要素成功,”result”为返回结果,”ID”为创建成功的要素类编号
      查询图层字段

要素导入

  • 方法名:featureimport

  • 接口功能

    该功能是将给定的要素集导入到指定的图层中

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/featureimport
  • 请求json示例

    {
    	"layerId":"3",
    	"forceImport":"true",
    	"data":{GeoJson as FeatureCollection},
    	"geoSRS":""
    }
    • data为Feature
    {'layerId': '2', 'forceImport': 'true', 'data': {'type': 'Feature', 'ID': 'Feature1', 'geometry': {'type': 'Polygon', 'coordinates': [[[114.34699355, 30.55756985], [114.34699355, 30.60955912], [114.4399688, 30.60955912], [114.4399688, 30.55756985], [114.34699355, 30.55756985]]]}, 'properties': {'GEOMETRY': '1', 'XZBM': '2', 'FHDM': '3', 'QSRQ': '2021/11/30 00:00:00', 'ZZRQ': '2021/12/01 00:00:00', 'BSM': 4, 'YSDM': '5', 'XZQDM': '6', 'XZQMC': '7', 'KZMJ': 8, 'JSMJ': 9, 'MSSM': '10', 'BGRQ': '2021/11/30 00:00:00', 'KANQDB_LENGTH': 11, 'KANQDB_AREA': 12}}, 'geoSRS': 'EPSG:4326', 'outSRS': 'EPSG:4326'}
    • data为FeatureColleciton

      {"type":"FeatureCollection","features":[{"type":"Feature","ID":"Feature1","geometry":{"type":"Polygon","coordinates":[[[111.21344252,34.75327645],[111.21344252,34.764024],[111.22819765,34.764024],[111.22819765,34.75327645],[111.21344252,34.75327645]]]},"properties":{"BSM":"","YSDM":"","XZQDM":"","XZQMC":"中文","KZMJ":"","JSMJ":"","MSSM":""}}],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}}
  • 请求参数说明

    名称 必填 类型 说明
    layerId int 入库的目标图层ID
    forceImport bool 强制导入标识,该参数指定是否在导入图形与原图层中的要素有压盖的情况下,是否强制导入,true为强制导入,false为非强制导入
    data string 要导入的要素数据,该参数是一个FeatureCollection或Feature类型的GeoJson对象,如果是FeatureCollection时,每个要素要指定一个标识
    geoSRS string 图形的空间参考

    data用于返回结果内容的标识,如下所示:

    • data为Feature
    {
    	"type":"Feature",
    	"ID":"Feature1",
    	"properties":{PROPERTIES},
    	"geometry":{GeoJson as FeatureCollection}
    }
    • data为FeatureCollection
    {
        "type": "FeatureCollection",
        "features": [
            {
                "type": "Feature",
                "ID": "Feature1",
                "properties": {PROPERTIES},
                "geometry": {GeoJson as FeatureCollection}
            }
        ]
    }
  • 返回结果

    • 样式

      {
      "result":[
      {"ID":"Feature1","status":"success","OID":123},
      {"ID":"Feature2","status":"overlap","overlap":{FeatureCollection} },
      {"ID":"Feature2","status":"error","message":{ERROR Message} }
      ]
      },"time":"0.078","resultcode":"success"}
    • 说明

      • 要素入库成功,”status”为”success”,”OID”为入库分配到的唯一ID
      • 如果入库图形与图层中的其它图形有压盖,则”status”值为”overlap”,并且压盖的要素存储到”overlap”字段中
      • 如果要素入库失败,则”status”为”error”,并将错误信息写入到”message”字段中

要素更新

  • 方法名:featureupdate

  • 接口功能

    该功能是将给定的要素更新到指定的图层中

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/featureupdate
  • 请求json示例

    {
    	"layerId":"3",
    	"forceImport":"true",
    	"data":{GeoJson as FeatureCollection},
    	"geoSRS":""
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerId int 入库的目标图层ID
    forceImport string 强制导入标识,该参数指定是否在导入图形与原图层中的要素有压盖的情况下,是否强制导入,true为强制导入,false为非强制导入
    data string 要导入的要素数据,
    geoSRS string 图形的空间参考

    data该参数是一个FeatureCollection或Feature类型的GeoJson对象,每个要素要单独指定一个where条件,作为更新的查询条件,该条件存储在Feature中,字段名”where”,如下所示:

    {
        "type":"Feature",
        "ID":"Feature1",
        "where":"obecjtid=123",
        "properties":{PROPERTIES},
        "geometry":{GEOMETRY} 
    }
  • 返回结果

    • 样式

      {
          "result":[
          {"ID":"Feature1","status":"success","OID":123},
          {"ID":"Feature2","status":"overlap","overlap":{FeatureCollection} },
          {"ID":"Feature2","status":"error","message":{ERROR Message} },
          ],
          "time":"0.078",
          "resultcode":"success"
      }
    • 说明

      • 要素入库成功,”status”为”success”,”OID”为入库分配到的唯一ID
      • 如果入库图形与图层中的其它图形有压盖,则”status”值为”overlap”,并且压盖的要素存储到”overlap”字段中
      • 如果要素入库失败,则”status”为”error”,并将错误信息写入到”message”字段中

要素删除

  • 方法名:featuredelete

  • 接口功能

    删除指定的要素

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/queryserver/featuredelete
  • 请求json示例

    {
    	"layerId":"3",
    	"where":"objectid=123"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerId int 图层ID,必须是叶子节点(非复合图层)、矢量图层的图层ID
    where string 删除条件,where语句
  • 返回结果

    {
        "resultcode": "success",
        "time": 0.052,
        "result": {
            "querycount": 23,
            "deletecount": 12
        }
    }

    querycount:查询条件查询到的要素记录数

    deletecount:实际删除的要素记录数

RasterAnalysisService-栅格分析服务

函数分析

  • 接口功能

    该功能是对影像进行函数分析

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/rasterserver/function
  • 请求json示例

    {
    	"LayerId":"1",
    	"type":"1",
        "outputpath":"E:/Work/test/data"
    }
  • 请求参数说明

    名称 必填 类型 说明
    LayerId int 图层id
    type int 算法类型 1取绝对值,2取负 3平方,4开方,5 int,6 float,7 rounddown ,8 roundup
    outputpath string 输出文件路径
  • 返回结果

    • 正确

      {
          "result": "/KQGis/download/22f8de50-cbe7-4de1-811f-09d46e771503/analysis_result.img",
          "filename": "analysis_result.img",
          "resultcode": "success",
          "time": 6276,
          "url": "http://127.0.0.1:8699/KQGis/download/22f8de50-cbe7-4de1-811f-09d46e771503/analysis_result.img"
      }
    • 错误

代数分析

  • 接口功能

    该功能是对影像1和影像2之间进行代数分析

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/rasterserver/algebra
  • 请求json示例

    {
    	"LayerId":"1",
    	"LayerId2":"2",
    	"type":"1",
        "outputpath":"E:/Work/test/data"
    }
  • 请求参数说明

    名称 必填 类型 说明
    LayerId int 影像1图层id
    LayerId2 int 影像2图层id
    type int 算法类型 1: plus 2:Minus 3:Times 4:Divide
    outputpath string 输出文件路径
  • 返回结果

    • 正确

      {
          "result": "/KQGis/download/ed18ee97-ba0e-4812-8d45-2b81380ad024/analysis_result.img",
          "filename": "analysis_result.img",
          "resultcode": "success",
          "time": 1061,
          "url": "http://127.0.0.1:8699/KQGis/download/ed18ee97-ba0e-4812-8d45-2b81380ad024/analysis_result.img"
      }
    • 错误

逻辑分析

  • 接口功能

    该功能是对影像1和影像2之间做逻辑分析

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/rasterserver/logic
  • 请求json示例

    {
    	"LayerId":"1",
    	"LayerId2":"2",
    	"type":"1",
        "outputpath":"E:/Work/test/data"
    }
  • 请求参数说明

    名称 必填 类型 说明
    LayerId int 影像1图层id
    LayerId2 int 影像2图层id
    type int 算法类型 5: or 6:and 7:xor 8:diff 9:equal 10:not equal
    11:less than 12:less than equal 13:greater than 14: greater than equal 15:over
    outputpath string 输出文件路径
  • 返回结果

    • 正确

      {
          "result": "/KQGis/download/f2f89688-1235-4037-9c34-d217bde1ed58/analysis_result.img",
          "filename": "analysis_result.img",
          "resultcode": "success",
          "time": 863,
          "url": "http://127.0.0.1:8699/KQGis/download/f2f89688-1235-4037-9c34-d217bde1ed58/analysis_result.img"
      }
    • 错误

条件选择

  • 接口功能

    该功能是对影像根据过滤条件做运算

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/rasterserver/conditionselect
  • 请求json示例

    {
    	"LayerId":"1",
    	"condition":"Value = 12",
        "outputpath":"E:/Work/test/data"
    }
  • 请求参数说明

    名称 必填 类型 说明
    LayerId int 影像1图层id
    condition string 过滤条件
    outputpath string 输出文件路径
  • 返回结果

    • 正确

      {"resultcode":"success","time":23303,"filename":"analysis_result.img"}
    • 错误

CatalogService-目录服务

获取数据目录

  • 方法名:proc

  • 接口功能

    该功能是获取给定数据源的要素集及要素类层级结构信息

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/CatalogServer/proc
  • 请求json示例

    • 8.1

      {
      	"request":"GetCatalog",
      	"dbName":"E:/Work/数据/矢量数据/全球服务底图/省.shp",
      	"dbType":"21"
      }
      {
      	"request":"GetCatalog",
      	"server":"",
      	"instance":"",
          "dbname":"127.0.0.1/orcl",
      	"userName":"user",
      	"password":"pwd",
          "dbType":"4"	
      }
    • 8.5

        {
        	"request":"GetCatalog",
            "datasource":{
                "type":"ShapeFile",
                "filepath":"E:/Work/数据/矢量数据/全球服务底图",
                "tablename":"省.shp"
            }
        }
        {
        	"request":"GetCatalog",
            "datasource":{
                "type":"KqOracle",
                "server":"",
                "instance":"",
                "database":"127.0.0.1/orcl",
                "userName":"KQ",
                "password":"KQ",
                "tablename":"省"
            }
        }
  • 请求参数说明

    名称 必填 类型 说明
    request string
    server string 数据源服务器IP,如果为文件型数据源则忽略此参数
    instance string 数据库实例名,如果为文件型数据源则忽略此参数
    dbName string 数据源名称,如果为数据库型数据源则为数据源名,如果为文件型数据源则为文件路径
    userName string 用户名,如果为文件型数据源则忽略此参数
    password string 密码,如果为文件型数据源则忽略此参数
    dbType string 数据源类型,如果为CAD文件数据源(dxf或dwg为后缀)则可忽略此参数,否则必选
    rectOutSRS string 输出外接矩形空间参考,可选项,默认为图层空间参考
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "featureDatasets": [],
            "featureClasses": [{
                "datasetId": -1,
                "id": -1,
                "indexId": 0,
                "layerId": -1,
                "name": "省",
                "fullName": "省",
                "aliasName": "",
                "extension": "",
                "extensionSize": 0,
                "featureType": 1,
                "falseX": 0.0,
                "falseY": 0.0,
                "owner": "",
                "rasterColumnId": -1,
                "rect": [73.48646299829446,
                18.158588002239328,
                135.08665200213614,
                53.56157300724229],
                "shapeFieldName": "",
                "shapeType": 4,
                "spatialReference": "",
                "XYTolerance": 0.0,
                "XYUnit": 0.0,
                "fieldCount": 0
            }]
        },
        "time": 0.003
    }

获取字段属性

  • 方法名:proc

  • 接口功能

    该功能是获取给定数据源字段属性信息

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/CatalogServer/proc
  • 请求json示例

    • 8.1

      {
      	"request":"GetFieldInfo",
          "dbName":"E:/Work/数据/矢量数据/全球服务底图/省.shp",
      	"FeatureClassName":"省",
      	"dbType": 21
      }
      {
      	"request":"GetFieldInfo",
      	"server":"",
      	"instance":"",
          "dbName":"127.0.0.1/orcl",
          "userName":"user",
          "password":"pwd",
          "FeatureClassName":"province",
          "dbType":"4"
      }
    • 8.5

      {
          "request": "GetFieldInfo",
          "datasource": {
              "type": "ShapeFile",
              "filepath": "E:/Work/数据/矢量数据/全球服务底图",
              "tablename": "省.shp"
          }
      }
      {
          "request": "GetFieldInfo",
          "datasource": {
              "type": "KqOracle",
              "server": "",
              "instance": "",
              "database": "127.0.0.1/orcl",
              "userName": "KQ",
              "password": "KQ",
              "tablename": "省"
          }
      }
  • 请求参数说明

    名称 必填 类型 说明
    request string
    FeatureClassName string 要素类名
    server string 数据源服务器IP,如果为文件型数据源则忽略此参数
    instance string 数据库实例名,如果为文件型数据源则忽略此参数
    dbName string 数据源名称,如果为数据库型数据源则为数据源名,如果为文件型数据源则为文件路径
    userName string 用户名,如果为文件型数据源则忽略此参数
    password string 密码,如果为文件型数据源则忽略此参数
    dbType string 数据源类型,如果为CAD文件数据源(dxf或dwg为后缀)则可忽略此参数,否则必选
  • 返回结果

    {
        "resultcode": "success",
        "result": {s
            "fields": [{
                "name": "FID_quangu",
                "aliasname": "",
                "type": "Integer",
                "length": 9,
                "precision": 0,
                "scale": 0
            },
            {
                "name": "Id",
                "aliasname": "",
                "type": "Integer",
                "length": 9,
                "precision": 0,
                "scale": 0
            },
            {
                "name": "FID_县",
                "aliasname": "",
                "type": "Integer",
                "length": 9,
                "precision": 0,
                "scale": 0
            },
            {
                "name": "面积",
                "aliasname": "",
                "type": "Double",
                "length": 18,
                "precision": 11,
                "scale": 18
            },
            {
                "name": "周长",
                "aliasname": "",
                "type": "Double",
                "length": 18,
                "precision": 11,
                "scale": 18
            },
            {
                "name": "颜色",
                "aliasname": "",
                "type": "Integer",
                "length": 9,
                "precision": 0,
                "scale": 0
            },
            {
                "name": "MaxSimpTol",
                "aliasname": "",
                "type": "Double",
                "length": 18,
                "precision": 11,
                "scale": 18
            },
            {
                "name": "MinSimpTol",
                "aliasname": "",
                "type": "Double",
                "length": 18,
                "precision": 11,
                "scale": 18
            },
            {
                "name": "省代码",
                "aliasname": "",
                "type": "String",
                "length": 20,
                "precision": 0,
                "scale": 0
            },
            {
                "name": "省名称",
                "aliasname": "",
                "type": "String",
                "length": 100,
                "precision": 0,
                "scale": 0
            },
            {
                "name": "FID",
                "aliasname": "FID",
                "type": "OID",
                "length": 8,
                "precision": 0,
                "scale": 0
            }]
        },
        "time": 0.041
    }
    其中,返回的字段类型type有如下几种:
    	Char
    	BYTE
    	short
    	UINT16
    	Integer
    	UINT
    	Bigint
    	UINT64
    	Float
    	Double
    	String
    	Date
    	Time
    	OID
    	Geometry
    	Blob
    	Raster
    	GUID
    	GlobalID
    	XML
    	Number
    	Unknown

获取要素类

  • 方法名:proc

  • 接口功能

    该功能是获取给定数据源要素类信息

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/CatalogServer/proc
    http://127.0.0.1:8699/KQGis/rest/services/CatalogServer/proc
  • 请求json示例

    • 8.1

      {
      	"request":"GetFeatureClass",
          "dbName":"E:/data/全球服务底图/省.shp",
      	"FeatureClassName":"省",
          "dbType":"21"
      }
      {
      	"request":"GetFeatureClass",
      	"server":"",
      	"instance":"",
          "dbname":"127.0.0.1/orcl",
          "userName":"user",
          "password":"pwd",
          "FeatureClassName":"province",
          "dbType":"4"
      }
    • 8.5

      {
          "request": "GetFeatureClass",
          "datasource": {
              "type": "ShapeFile",
              "filepath": "E:/Work/数据/矢量数据/全球服务底图",
              "tablename": "省.shp"
          }
      }
      {
          "request": "GetFeatureClass",
          "datasource": {
              "type": "KqOracle",
              "server": "",
              "instance": "",
              "database": "127.0.0.1/orcl",
              "userName": "KQ",
              "password": "KQ",
              "tablename": "省"
          }
      }
  • 请求参数说明

    名称 必填 类型 说明
    request string
    FeatureClassName string 要素类名
    server string 数据源服务器IP,如果为文件型数据源则忽略此参数,否则必选
    instance string 数据库实例名,如果为文件型数据源则忽略此参数
    dbname string 数据源名称,必选项,如果为数据库型数据源则为数据源名,如果为文件型数据源则为文件路径
    userName string 用户名,如果为文件型数据源则忽略此参数,否则必选
    password string 密码,如果为文件型数据源则忽略此参数,否则必选
    dbType string 数据源类型,如果为CAD文件数据源(dxf或dwg为后缀)则可忽略此参数,否则必选
    rectOutSRS string 输出外接矩形空间参考,可选项,默认为图层空间参考
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "datasetId": -1,
            "id": -1,
            "indexId": 0,
            "layerId": -1,
            "name": "省",
            "fullName": "省",
            "aliasName": "",
            "extension": "",
            "extensionSize": 0,
            "featureType": 1,
            "falseX": 0.0,
            "falseY": 0.0,
            "owner": "",
            "rasterColumnId": -1,
            "rect": [73.48646299829446,
            18.158588002239328,
            135.08665200213614,
            53.56157300724229],
            "shapeFieldName": "#SHAPE#",
            "shapeType": 4,
            "spatialReference": "",
            "XYTolerance": 0.0,
            "XYUnit": 0.0,
            "fieldCount": 11
        },
        "time": 10.411
    }

获取要素

  • 方法名:proc

  • 接口功能

    该功能是获取给定数据要素信息

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/CatalogServer/proc
  • 请求json示例

    • 8.1

      {
          "request":"GetFeature",
          "dbType":"21",
          "dbName":"E:/data/全球服务底图/省.shp",
          "FeatureClassName":"省",
          "geometry":{"type":"Polygon","coordinates":[[[114.31838185,30.38087037],[114.49351041,30.33520866],[114.37548891,30.19061337],[114.22701078,30.25530078],[114.31838185,30.38087037]]]},
          "outSRS":"EPSG:4326",
          "reqCount":10
      }
      {
          "request":"GetFeature",
          "dbType": 4,
          "server":"",
          "instance":"",
          "dbName":"127.0.0.1/orcl",
          "userName":"usr",
          "password":"pwd",
          "FeatureClassName":"省",
          "reqCount":2
      }
    • 8.5

      {
          "request": "GetFeature",
          "datasource": {
              "type": "ShapeFile",
              "filepath": "E:/Work/数据/矢量数据/全球服务底图",
              "tablename": "省.shp"
          },
          "geometry":{"type":"Polygon","coordinates":[[[114.31838185,30.38087037],[114.49351041,30.33520866],[114.37548891,30.19061337],[114.22701078,30.25530078],[114.31838185,30.38087037]]]},
          "outSRS": "EPSG:4326",
          "reqCount": 10
      }
       {
            "request":"GetFeature",
            "datasource":{
                "type":"KqOracle",
                "server":"",
                "instance":"",
                "database":"127.0.0.1/orcl",
                "userName":"KQ",
                "password":"KQ",
                "tablename":"省"
            }
            "reqCount":2
        }
  • 请求参数说明

    名称 必填 类型 说明
    request string
    FeatureClassName string 要素名
    server string 数据源服务器IP,如果为文件型数据源则忽略此参数
    instance string 数据库实例名,如果为文件型数据源则忽略此参数
    dbName string 数据源名称,如果为数据库型数据源则为数据源名,如果为文件型数据源则为文件路径
    userName string 用户名,如果为文件型数据源则忽略此参数
    password string 密码,如果为文件型数据源则忽略此参数
    dbType int 数据源类型,如果为CAD文件数据源(dxf或dwg为后缀)则可忽略此参数
    geometry string 用于空间查询的图形对象,可选项,GeoJson的geometry格式,类型可以是Polygon、MultiPolygon或者包含这两者的GeometryCollection
    geoSRS string 传入图形的坐标所属的空间参考,可选项,若为空则采用给定要素类的空间参考
    outSRS string 目标空间参考,可选项,若为空则采用给定要素类的空间参考
    reqCount int 请求要素数,可选项,默认为1000条
    startIndex string 需要返回结果的起始序号
    fields string 需要返回的字段,默认为返回所有字段
    returnGeometry string 是否返回几何信息,可选项,默认为true
    returnOID string 是否返回要素的oid,可选项,默认为true
    where string 查询条件,sql语句中的where子句
  • 返回结果

    {"resultcode":"success","result":{"type":"FeatureCollection","fields":[{"name":"FID_quangu","type":"Integer"},{"name":"Id","type":"Integer"},{"name":"FID_县","type":"Integer"},{"name":"名称","type":"String"},{"name":"代码","type":"String"},{"name":"面积","type":"Double"},{"name":"周长","type":"Double"},{"name":"颜色","type":"Integer"},{"name":"MaxSimpTol","type":"Double"},{"name":"MinSimpTol","type":"Double"},{"name":"县代码","type":"String"},{"name":"县名称","type":"String"},{"name":"市代码","type":"String"},{"name":"市名称","type":"String"},{"name":"省代码","type":"String"},{"name":"省名称","type":"String"},{"name":"FID","aliasName":"FID","type":"OID"},{"name":"AreaLength1","aliasName":"原始面积或长度","type":"Double"},{"name":"AreaLength2","aliasName":"重叠面积或长度","type":"Double"}],"features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[114.58364799,30.459596],[114.57623999,30.464228],[114.57636199,30.468134],[114.588676,30.487189],[114.58118299,30.491144],[114.56564999,30.493208],[114.56600099,30.495387],[114.57496499,30.507113],[114.57922999,30.515316],[114.580466,30.519415],[114.57951999,30.5268],[114.57801699,30.529008],[114.572203,30.531505],[114.56629799,30.532333],[114.55712,30.531106],[114.545164,30.535795],[114.54259299,30.535359],[114.538236,30.531616],[114.524969,30.51381],[114.51981199,30.501053],[114.52055899,30.490744],[114.51189199,30.481427],[114.50967999,30.473423],[114.50129499,30.466239],[114.49946399,30.468269],[114.49848699,30.467628],[114.49549699,30.458861],[114.49118599,30.459193],[114.487997,30.462991],[114.47861199,30.459455],[114.47437799,30.459446],[114.47100599,30.465475],[114.46674099,30.467015],[114.465642,30.468833],[114.46563499,30.472214],[114.46954099,30.47824],[114.45713499,30.4855],[114.457242,30.492724],[114.451299,30.495385],[114.444729,30.495969],[114.43429199,30.494997],[114.42750199,30.493745],[114.41990299,30.490403],[114.40963399,30.472745],[114.40389599,30.469043],[114.39563399,30.468733],[114.39383299,30.472142],[114.39523699,30.477732],[114.39358899,30.480224],[114.38412799,30.483054],[114.37157799,30.484858],[114.36940299,30.484471],[114.36694599,30.481852],[114.36455099,30.473725],[114.359508,30.465554],[114.36164399,30.459115],[114.35914899,30.452303],[114.35096299,30.445853],[114.34163999,30.442715],[114.33363599,30.4314],[114.33088999,30.430036],[114.31836199,30.431204],[114.30716899,30.43732],[114.304652,30.43762],[114.30181299,30.445882],[114.29813599,30.444616],[114.29238299,30.450086],[114.28500599,30.451673],[114.28158,30.448401],[114.281466,30.441863],[114.27880999,30.439526],[114.276499,30.433807],[114.27383599,30.431579],[114.27221899,30.421809],[114.26644299,30.422625],[114.25731799,30.416898],[114.25245099,30.416075],[114.24641599,30.419238],[114.23880099,30.428047],[114.23330099,30.428409],[114.22974499,30.42525],[114.228143,30.420113],[114.22938699,30.393355],[114.21990299,30.386419],[114.215654,30.387095],[114.21072499,30.391362],[114.205278,30.4032],[114.20055499,30.4073],[114.19570999,30.40532],[114.19110899,30.393367],[114.18745499,30.391124],[114.18263299,30.393725],[114.168579,30.405113],[114.14276099,30.378263],[114.12953999,30.362197],[114.12248199,30.356506],[114.10847399,30.348679],[114.10493899,30.345228],[114.09837299,30.335185],[114.091911,30.316543],[114.085586,30.281902],[114.07899499,30.258272],[114.07529399,30.250517],[114.05662499,30.226877],[114.05058199,30.220521],[114.04665299,30.219413],[114.031379,30.207881],[114.030105,30.206193],[114.03069299,30.2038],[114.03639899,30.202532],[114.04244999,30.20339],[114.05188699,30.20838],[114.05656399,30.206006],[114.058929,30.206393],[114.064087,30.211133],[114.06913,30.21267],[114.07163999,30.212429],[114.07760599,30.206171],[114.082008,30.207468],[114.08653299,30.205567],[114.09469599,30.208183],[114.096894,30.210719],[114.099472,30.210596],[114.10183799,30.208404],[114.10399699,30.2038],[114.10242499,30.200727],[114.103127,30.19885],[114.10981799,30.197023],[114.11162599,30.193601],[114.11216799,30.187402],[114.12252899,30.171078],[114.134256,30.156811],[114.138467,30.154595],[114.14103799,30.149306],[114.146036,30.144754],[114.14782899,30.141349],[114.149256,30.13094],[114.14505199,30.117731],[114.145883,30.113386],[114.15474899,30.111992],[114.153971,30.106187],[114.15533699,30.104261],[114.16452299,30.103287],[114.170702,30.095884],[114.18503099,30.091955],[114.18674699,30.089061],[114.19067699,30.073585],[114.19079899,30.066014],[114.188831,30.054568],[114.18965499,30.047761],[114.19227099,30.043102],[114.202167,30.034279],[114.20684399,30.025931],[114.20689699,30.01807],[114.20360099,30.01223],[114.227726,30.000056],[114.23203499,29.996059],[114.23882099,29.995955],[114.24741799,30.000605],[114.25884699,30.002007],[114.291348,30.008928],[114.30082399,30.015109],[114.318357,30.020336],[114.32718399,30.029027],[114.34036799,30.028447],[114.35529899,30.035402],[114.36581999,30.03042],[114.38012599,30.026982],[114.38942599,30.026446],[114.399833,30.023289],[114.42310299,30.010466],[114.445442,30.003887],[114.46462299,29.995756],[114.47329799,29.988674],[114.47615899,29.989486],[114.48146099,29.995133],[114.484505,29.995471],[114.50725699,29.978087],[114.51067499,29.977024],[114.51872399,29.977095],[114.52504099,29.969811],[114.53233499,29.9769],[114.53320499,29.979712],[114.53244899,29.982971],[114.52614699,29.986342],[114.53147299,29.990589],[114.531808,29.992778],[114.53107599,29.993864],[114.52533899,29.994901],[114.52768199,29.998024],[114.53175499,30.000057],[114.53516499,30.009286],[114.535615,30.012847],[114.53129699,30.018005],[114.52917599,30.0248],[114.53038899,30.026761],[114.53999499,30.023984],[114.54339699,30.025301],[114.543855,30.028574],[114.550882,30.03287],[114.55221699,30.035357],[114.54709799,30.040897],[114.53872799,30.056835],[114.53870499,30.061136],[114.540635,30.066222],[114.53747699,30.069715],[114.53916199,30.077258],[114.53831599,30.080055],[114.52842799,30.086614],[114.52733699,30.088324],[114.52825199,30.095221],[114.52196599,30.099485],[114.512528,30.103066],[114.51107799,30.109296],[114.51200899,30.115445],[114.50558499,30.119588],[114.49898499,30.126369],[114.49784099,30.136735],[114.49886999,30.141109],[114.50381499,30.147668],[114.50183799,30.15378],[114.50425699,30.157712],[114.51329,30.16433],[114.50843799,30.169188],[114.50637,30.173405],[114.506668,30.175133],[114.51138299,30.176863],[114.513443,30.178958],[114.512337,30.188008],[114.51364899,30.191179],[114.51663199,30.193697],[114.52485699,30.194908],[114.52844199,30.197203],[114.53420999,30.205201],[114.538101,30.221269],[114.53720099,30.229737],[114.53817,30.237266],[114.55670199,30.250976],[114.56153099,30.256782],[114.56169899,30.26802],[114.56397999,30.276033],[114.56736799,30.278323],[114.57111399,30.279006],[114.584557,30.287181],[114.588372,30.29441],[114.58673099,30.316633],[114.59242999,30.341957],[114.59094999,30.34991],[114.58463299,30.361515],[114.58271799,30.36762],[114.58399999,30.392367],[114.58675299,30.412993],[114.58418299,30.415651],[114.58493699,30.424095],[114.58394599,30.427521],[114.57743799,30.438211],[114.57752899,30.440386],[114.581679,30.44452],[114.58220599,30.457432],[114.58364799,30.459596]]]},"properties":{"AreaLength1":2013358944.9949,"AreaLength2":2013358944.9949,"FID_quangu":0,"Id":0,"FID_县":3321,"名称":"武汉市江夏区","代码":"420115","面积":2015.195,"周长":242.654,"颜色":5,"MaxSimpTol":220,"MinSimpTol":80,"县代码":"420115","县名称":"武汉市江夏区","市代码":"420100","市名称":"武汉市","省代码":"420000","省名称":"湖北省","FID":576}}],"numberReturned":1,"totalFeatures":-1,"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4490"}},"TimeStamp":"周三 10月 16 10:51:35 2019"},"time":12.211}

DataService-数据服务

获取数据源列表

  • 方法名:proc

  • 接口功能

    该功能是获取数据服务中的数据源列表

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/data/DataServer/proc
  • 请求json示例

    {
    	"request":"GetDatasourceList"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string
  • 返回结果

    • 8.1

      {
          "resultcode": "success",
          "result": [{
              "id": 1,
              "type": 21,
              "typename": "文件数据源",
              "path": "E:/Work/data/shp/smx/GHJBNTBHQ.shp"
          },
          {
              "id": 2,
              "type": 21,
              "typename": "文件数据源",
              "path": "E:/Work/data/shp/smx/GHJBNTTZ.shp"
          },
          {
              "id": 3,
              "type": 21,
              "typename": "文件数据源",
              "path": "E:/Work/data/shp/smx/XZQ_CUN.shp"
          },
          {
              "id": 4,
              "type": 21,
              "typename": "文件数据源",
              "path": "E:/Work/data/shp/smx/XZQ_XIAN.shp"
          },
          {
              "id": 5,
              "type": 21,
              "typename": "文件数据源",
              "path": "E:/Work/data/shp/smx/XZQ_XIANG.shp"
          }],
          "time": 0.0
      }
    • 8.5

      {
      	"resultcode": "success",
      	"result": [
      		{
      			"id": 1,
      			"title": "ShapeFile:E:/Work/数据/矢量数据/三门峡",
      			"connkey": "o5ckJyBviiI2PbGoy5C0NzV2jEHESAeZJzdlQ0g11jN4M5VeCCK6DSnuyy0OjFMHByKjZZtlPihXSELf2eKS5s9iltwR1bSdTn1JngvzgYbQTqS2+oujLcZO8+no7dfSmh/x4576OUFvurRCZ6Sfgw=="
      		},
      		{
      			"id": 2,
      			"title": "GDB:E:/Work/数据/矢量数据/gdb/阿富汗.gdb",
      			"connkey": "o5ckJyBviiI2PbGoy5C0N7j4q0Lf74YzDZfd2TG1se7UDHzzsYBi0RTtNe4B7xw5ff2WZhu7DdGHt4F1hxqe1uuWGrP0zktqyr6awqFErU7zPMuQO18+tUKDfyHxyhqjfAhD0wjUixchNwFJ9XqTag=="
      		},
      		{
      			"id": 3,
      			"title": "KqOracle:172.16.0.14/orcl@KQ",
      			"connkey": "o5ckJyBviiI2PbGoy5C0N7Rgo7f6dOaCFjtGLYG/fpRKhBmcdSWN8fHzpcheohploh7dkLXt+DI7od7V91tKRpA73+P6bI4KmyBF7QB3TH4WkxrvHatuWAer1TQYR/tNjPNVgyLwpBBDrAqhWEoYxc/Ab5qWYTArII0EEDzXZtoaquZY/f/ZFJRwjf+Et0qRPegeOoKBq/JKcRZXQtyUZB1DsGduKk4x4UhCk3ptk22bbtRl+R4E8fPkaCPf3Unz"
      		}
      	],
      	"time": 0
      }

获取数据目录

  • 方法名:proc

  • 接口功能

    该功能是获取数据服务中给定数据源的要素集及要素类层级结构信息

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/data/DataServer/proc
  • 请求json示例

    {
    	"request":"GetCatalog",
    	"datasourceId":"1"
    }
  • 请求参数说明

    名称 必选 类型 说明
    request string
    datasourceId int 数据服务中数据源对应的id
    rectOutSRS string 输出外接矩形空间参考,可选项,默认为图层空间参考
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "featureDatasets": [],
            "featureClasses": [{
                "datasetId": -1,
                "id": -1,
                "indexId": 0,
                "layerId": -1,
                "name": "GHJBNTBHQ",
                "fullName": "GHJBNTBHQ",
                "aliasName": "",
                "extension": "",
                "extensionSize": 0,
                "featureType": 1,
                "falseX": 0.0,
                "falseY": 0.0,
                "owner": "",
                "rasterColumnId": -1,
                "rect": [37521351.54503,
                3840958.645884,
                37526796.511906,
                3847434.061552],
                "shapeFieldName": "",
                "shapeType": 4,
                "spatialReference": "PROJCS[\"Xian_1980_3_Degree_GK_Zone_37\",GEOGCS[\"GCS_Xian_1980\",DATUM[\"Xian_1980\",SPHEROID[\"Xian_1980\",6378140.0,298.257]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",37500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",111.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]",
                "XYTolerance": 0.0,
                "XYUnit": 0.0,
                "fieldCount": 0
            }]
        },
        "time": 0.033
    }

获取字段属性

  • 方法名:proc

  • 接口功能

    该功能是获取数据服务中给定数据源的字段属性信息

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/DataServer/proc
  • 请求json示例

    • 8.1

      {
      	"request":"GetFieldInfo",
      	"datasourceId":"1",
      	"FeatureClassName":"GHJBNTBHQ"	
      }
    • 8.5

      • ShapeFile

        {
        	"request": "GetFieldInfo",
        	"datasourceId": "1",
        	"tablename": "XZQ_CUN.shp"
        }
      • KqOracle

        {
        	"request": "GetFieldInfo",
        	"datasourceId": "1",
        	"tablename": "XZQ_CUN"
        }
  • 请求参数说明

    名称 必填 类型 说明
    request string
    datasourceId int 数据服务中数据源对应的id
    FeatureClassName string 要素类名
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "fields": [{
                "name": "BSM",
                "aliasname": "",
                "type": "Integer",
                "length": 9,
                "precision": 0,
                "scale": 0
            },
            {
                "name": "YSDM",
                "aliasname": "",
                "type": "String",
                "length": 10,
                "precision": 0,
                "scale": 0
            },
            {
                "name": "BHQBH",
                "aliasname": "",
                "type": "String",
                "length": 4,
                "precision": 0,
                "scale": 0
            },
            {
                "name": "BHQMJ",
                "aliasname": "",
                "type": "Double",
                "length": 19,
                "precision": 11,
                "scale": 18
            },
            {
                "name": "NYDMJ",
                "aliasname": "",
                "type": "Double",
                "length": 19,
                "precision": 11,
                "scale": 18
            },
            {
                "name": "GDMJ",
                "aliasname": "",
                "type": "Double",
                "length": 19,
                "precision": 11,
                "scale": 18
            },
            {
                "name": "JBNTMJ",
                "aliasname": "",
                "type": "Double",
                "length": 19,
                "precision": 11,
                "scale": 18
            },
            {
                "name": "SM",
                "aliasname": "",
                "type": "String",
                "length": 200,
                "precision": 0,
                "scale": 0
            },
            {
                "name": "FID",
                "aliasname": "FID",
                "type": "OID",
                "length": 8,
                "precision": 0,
                "scale": 0
            }]
        },
        "time": 0.001
    }

获取要素类

  • 方法名:proc

  • 接口功能

    该功能是获取数据服务中给定数据源的要素类信息

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/data/DataServer/proc
  • 请求json示例

    • 8.1

      {
      	"request":"GetFeatureClass",
      	"datasourceId":"1",
      	"FeatureClassName":"GHJBNTBHQ"
      }
    • 8.5

      • ShapeFile

        {
        	"request":"GetFeatureClass",
        	"datasourceId": "1"
        }
      • KqOracle

        {
        	"request":"GetFeatureClass",
        	"datasourceId": "1",
            "tablename":"XZQ_CUN"
        }
  • 请求参数说明

    名称 必选 类型 说明
    request string
    datasourceId int 数据服务中数据源对应的id
    FeatureClassName string 要素类名
    rectOutSRS string 输出外接矩形空间参考,可选项,默认为图层空间参考
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "datasetId": -1,
            "id": -1,
            "indexId": 0,
            "layerId": -1,
            "name": "GHJBNTBHQ",
            "fullName": "GHJBNTBHQ",
            "aliasName": "",
            "extension": "",
            "extensionSize": 0,
            "featureType": 1,
            "falseX": 0.0,
            "falseY": 0.0,
            "owner": "",
            "rasterColumnId": -1,
            "rect": [37521351.54503,
            3840958.645884,
            37526796.511906,
            3847434.061552],
            "shapeFieldName": "#SHAPE#",
            "shapeType": 4,
            "spatialReference": "PROJCS[\"Xian_1980_3_Degree_GK_Zone_37\",GEOGCS[\"GCS_Xian_1980\",DATUM[\"Xian_1980\",SPHEROID[\"Xian_1980\",6378140.0,298.257]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",37500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",111.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]",
            "XYTolerance": 0.0,
            "XYUnit": 0.0,
            "fieldCount": 9
        },
        "time": 0.001
    }

获取要素

  • 方法名:proc

  • 接口功能

    该功能是获取数据服务中给定数据源的要素信息

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/DataServer/proc
  • 请求json示例

    • 8.1

      {
      	"request":"GetFeature",
      	"datasourceId":"1",
      	"FeatureClassName":"GHJBNTBHQ",
          "geometry":"{GeometryCollection or Geometry GeoJson Object}",
      	"outSRS":"EPSG:4326",
      	"reqCount":"2"
      }
    • 8.5

      • ShapeFile

        {
        	"request":"GetFeature",
        	"datasourceId": "1"
        }
      • KqOracle

        {
        	"request":"GetFeature",
        	"datasourceId": "1",
            "tablename":"XZQ_CUN",
            "startIndex":0,
            "reqCount":1
        }
  • 请求参数说明

    名称 必选 类型 说明
    request string
    datasourceId int 数据服务中数据源对应的id
    FeatureClassName string 要素类名
    geometry string 用于空间查询的图形对象,GeoJson的geometry格式,类型可以是Polygon、MultiPolygon或者包含这两者的GeometryCollection
    outSRS string 目标空间参考,可选项,若为空则采用给定要素类的空间参考
    reqCount int 请求要素数,可选项,默认为1000条
    startIndex int 需要返回结果的起始序号,可选项
    fields string 需要返回的字段,默认为返回所有字段
    returnGeometry bool 是否返回几何信息,可选项,默认为true
    returnOID bool 是否返回要素的oid,可选项,默认为true
    where string 查询条件,sql语句中的where子句,可选项
    geoSRS string 传入图形的坐标所属的空间参考,可选项,若为空则采用给定要素类的空间参考
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "type": "FeatureCollection",
            "fields": [{
                "name": "BSM",
                "type": "Integer"
            },
            {
                "name": "YSDM",
                "type": "String"
            },
            {
                "name": "BHQBH",
                "type": "String"
            },
            {
                "name": "BHQMJ",
                "type": "Double"
            },
            {
                "name": "NYDMJ",
                "type": "Double"
            },
            {
                "name": "GDMJ",
                "type": "Double"
            },
            {
                "name": "JBNTMJ",
                "type": "Double"
            },
            {
                "name": "SM",
                "type": "String"
            },
            {
                "name": "FID",
                "aliasName": "FID",
                "type": "OID"
            },
            {
                "name": "AreaLength1",
                "aliasName": "原始面积或长度",
                "type": "Double"
            },
            {
                "name": "AreaLength2",
                "aliasName": "重叠面积或长度",
                "type": "Double"
            }],
            "features": [{
                "type": "Feature",
                "geometry": {
                    "type": "Polygon",
                    "coordinates": [[[111.26154155,
                    34.69658116],
                    [111.2614387,
                    34.69699809],
                    [111.2613714,
                    34.69733429],
                    [111.26133625,
                    34.69754406],
                    [111.26134296,
                    34.69760857],
                    [111.26135281,
                    34.69763544],
                    [111.26167073,
                    34.69780816],
                    [111.26162539,
                    34.69788084],
                    [111.2616158,
                    34.69793732],
                    [111.26161594,
                    34.69798034],
                    [111.26171063,
                    34.69807423],
                    [111.26182153,
                    34.69814389],
                    [111.26185441,
                    34.69824867],
                    [111.26185151,
                    34.69836159],
                    [111.26181322,
                    34.69860632],
                    [111.26169685,
                    34.69886735],
                    [111.26163555,
                    34.69903955],
                    [111.26158074,
                    34.69920904],
                    [111.26149009,
                    34.69936785],
                    [111.26139601,
                    34.69946752],
                    [111.26131805,
                    34.69952146],
                    [111.26122692,
                    34.69952703],
                    [111.26112602,
                    34.69952994],
                    [111.26103478,
                    34.69950056],
                    [111.26096299,
                    34.69944426],
                    [111.2610228,
                    34.69931105],
                    [111.2610808,
                    34.69912273],
                    [111.26115141,
                    34.69880266],
                    [111.26116707,
                    34.69860637],
                    [111.26113353,
                    34.69829458],
                    [111.26105189,
                    34.69821141],
                    [111.26092149,
                    34.69814717],
                    [111.26085952,
                    34.69810966],
                    [111.2608366,
                    34.69806669],
                    [111.26083319,
                    34.69801831],
                    [111.26092342,
                    34.69772508],
                    [111.26101033,
                    34.69741572],
                    [111.26112658,
                    34.69711705],
                    [111.2612362,
                    34.69678076],
                    [111.26131025,
                    34.69652251],
                    [111.26154155,
                    34.69658116]]]
                },
                "properties": {
                    "AreaLength1": 15410.5428,
                    "AreaLength2": 15410.5428,
                    "BSM": 13793,
                    "YSDM": "2003020370",
                    "BHQBH": "",
                    "BHQMJ": 0.0,
                    "NYDMJ": 0.0,
                    "GDMJ": 0.0,
                    "JBNTMJ": 0.0,
                    "SM": "",
                    "FID": 0
                }
            },
            {
                "type": "Feature",
                "geometry": {
                    "type": "Polygon",
                    "coordinates": [[[111.26238518,
                    34.69675947],
                    [111.26287417,
                    34.69687793],
                    [111.26294922,
                    34.69693422],
                    [111.26313637,
                    34.69706018],
                    [111.26307699,
                    34.69730642],
                    [111.26295188,
                    34.69737256],
                    [111.2628837,
                    34.69742917],
                    [111.26283842,
                    34.69752067],
                    [111.26273476,
                    34.6976822],
                    [111.26265696,
                    34.69778453],
                    [111.26262782,
                    34.69783298],
                    [111.26258238,
                    34.69787341],
                    [111.26253687,
                    34.69789502],
                    [111.26243274,
                    34.69790599],
                    [111.26232534,
                    34.6979116],
                    [111.26227,
                    34.69791172],
                    [111.26218852,
                    34.69787695],
                    [111.26222845,
                    34.69763893],
                    [111.26227654,
                    34.69740493],
                    [111.26227929,
                    34.69724362],
                    [111.26235965,
                    34.69692083],
                    [111.26238518,
                    34.69675947]]]
                },
                "properties": {
                    "AreaLength1": 6874.2908,
                    "AreaLength2": 6874.2908,
                    "BSM": 13869,
                    "YSDM": "2003020370",
                    "BHQBH": "",
                    "BHQMJ": 0.0,
                    "NYDMJ": 0.0,
                    "GDMJ": 0.0,
                    "JBNTMJ": 0.0,
                    "SM": "",
                    "FID": 1
                }
            }],
            "numberReturned": 2,
            "totalFeatures": -1,
            "crs": {
                "type": "name",
                "properties": {
                    "name": "urn:ogc:def:crs:EPSG::4326"
                }
            },
            "TimeStamp": "周五 4月 3 14:41:07 2020"
        },
        "time": 0.01
    }

AnalysisService-通用查询分析服务

差异分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "difference",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/三门峡/XZQ_CUN.shp",
              "featureclassname": "XZQ_CUN"
          },
          "geometry": {
              "type": "Polygon",
              "coordinates": [
                  [
                      [
                          111.23670927,
                          34.75202349
                      ],
                      [
                          111.24876396,
                          34.75096205
                      ],
                      [
                          111.24289828,
                          34.74352895
                      ],
                      [
                          111.23418553,
                          34.74897716
                      ],
                      [
                          111.23670927,
                          34.75202349
                      ]
                  ]
              ]
          },
          "geoSRS": "EPSG:4326",
          "outSRS": "EPSG:4326"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源

    其它参数:同Query服务

  • 返回结果

    {"resultcode":"success","result":{"type":"Polygon","coordinates":[[[111.23418553,34.74897716],[111.23660298,34.74746562],[111.23668925,34.74752019],[111.23712959,34.74785782],[111.23739019,34.7479379],[111.23740081,34.74793838],[111.2376213,34.7479482],[111.23777731,34.74787536],[111.23790869,34.74777511],[111.23797073,34.74772777],[111.23823218,34.74760315],[111.23852826,34.74757302],[111.23871389,34.74761295],[111.238916,34.74772538],[111.23935142,34.74814793],[111.23942235,34.74817368],[111.23969036,34.74827096],[111.23981841,34.74831744],[111.24011247,34.74842418],[111.24077732,34.74873448],[111.24128981,34.74893669],[111.24146158,34.74900445],[111.24211656,34.74927717],[111.24246826,34.74934094],[111.24294678,34.74936953],[111.24313402,34.74940274],[111.24355122,34.74960607],[111.24404536,34.75000138],[111.24402603,34.75011169],[111.24402306,34.75015585],[111.24406201,34.7502185],[111.24415985,34.75026694],[111.24445319,34.75034955],[111.24468131,34.75039901],[111.24481796,34.75046274],[111.2449672,34.75058532],[111.2451074,34.75079751],[111.2451892,34.75092631],[111.24529198,34.75107202],[111.24538537,34.75118703],[111.24543548,34.75125525],[111.23670927,34.75202349],[111.23418553,34.74897716]]],"center":[111.2398105,34.74974455],"numberReturned":1,"totalFeatures":1,"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"TimeStamp":"周五 7月 3 10:47:34 2020"},"time":0.547}

多层差异分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "differenceext",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/三门峡/triangle.shp",
              "featureclassname": "triangle"
          },
          "datasource2": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/三门峡/GHJBNTBHQ.shp",
              "featureclassname": "GHJBNTBHQ"
          },
          "geometry": {
              "type": "Polygon",
              "coordinates": [
                  [
                      [
                          111.22824401,
                          34.7435604
                      ],
                      [
                          111.22824401,
                          34.7605046
                      ],
                      [
                          111.26902725,
                          34.7605046
                      ],
                      [
                          111.26902725,
                          34.7435604
                      ],
                      [
                          111.22824401,
                          34.7435604
                      ]
                  ]
              ]
          },
          "geoSRS": "EPSG:4326",
          "outSRS": "EPSG:4326"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源

    其它参数:同Query服务

  • 返回结果

    {"resultcode":"success","result":{"type":"FeatureCollection","fields":[{"name":"BSM","type":"Integer"},{"name":"YSDM","type":"String"},{"name":"XZQDM","type":"String"},{"name":"XZQMC","type":"String"},{"name":"KZMJ","type":"Double"},{"name":"JSMJ","type":"Double"},{"name":"MSSM","type":"String"},{"name":"FID"},{"name":"AreaLength1","aliasName":"原始面积或长度","type":"Double"},{"name":"AreaLength2","aliasName":"重叠面积或长度","type":"Double"}],"features":[{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"AreaLength1":4617681.6775,"AreaLength2":388724.3926,"BSM":646,"YSDM":"1000600100","XZQDM":"411202003004","XZQMC":"野鹿村","KZMJ":4617622.12,"JSMJ":4617622.11,"MSSM":"00","FID":"0"}}],"numberReturned":1,"totalFeatures":-1,"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"TimeStamp":"周五 7月 3 11:04:16 2020"},"time":0.033}

叠置分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    {
        "request": "overlap",
        "datasource": {
            "type": "file",
            "type2": 21,
            "path": "E:/Work/数据/矢量数据/三门峡/XZQ_CUN.shp",
            "featureclassname": "XZQ_CUN"
        },
        "geometry": {
            "type": "Polygon",
            "coordinates": [
                [
                    [
                        111.23670927,
                        34.75202349
                    ],
                    [
                        111.24876396,
                        34.75096205
                    ],
                    [
                        111.24289828,
                        34.74352895
                    ],
                    [
                        111.23418553,
                        34.74897716
                    ],
                    [
                        111.23670927,
                        34.75202349
                    ]
                ]
            ]
        },
        "geoSRS": "EPSG:4326",
        "outSRS": "EPSG:4326"
    }
  • 请求参数说明

    名称 必选 类型 说明
    datasource json object 数据源

    其它参数:同Query服务

  • 返回结果

    {"resultcode":"success","result":{"type":"FeatureCollection","fields":[{"name":"BSM","type":"Integer"},{"name":"YSDM","type":"String"},{"name":"XZQDM","type":"String"},{"name":"XZQMC","type":"String"},{"name":"KZMJ","type":"Double"},{"name":"JSMJ","type":"Double"},{"name":"MSSM","type":"String"},{"name":"FID"},{"name":"AreaLength1","aliasName":"原始面积或长度","type":"Double"},{"name":"AreaLength2","aliasName":"重叠面积或长度","type":"Double"}],"features":[{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"AreaLength1":4617681.6775,"AreaLength2":388724.3926,"BSM":646,"YSDM":"1000600100","XZQDM":"411202003004","XZQMC":"野鹿村","KZMJ":4617622.12,"JSMJ":4617622.11,"MSSM":"00","FID":"0"}}],"numberReturned":1,"totalFeatures":-1,"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"TimeStamp":"周五 7月 3 11:04:16 2020"},"time":0.033}

多层叠置分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "overlapext",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/三门峡/triangle.shp",
              "featureclassname": "triangle"
          },
          "datasource2": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/三门峡/GHJBNTBHQ.shp",
              "featureclassname": "GHJBNTBHQ"
          },
          "geometry": {
              "type": "Polygon",
              "coordinates": [
                  [
                      [
                          111.22824401,
                          34.7435604
                      ],
                      [
                          111.22824401,
                          34.7605046
                      ],
                      [
                          111.26902725,
                          34.7605046
                      ],
                      [
                          111.26902725,
                          34.7435604
                      ],
                      [
                          111.22824401,
                          34.7435604
                      ]
                  ]
              ]
          },
          "geoSRS": "EPSG:4326",
          "outSRS": "EPSG:4326"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必选 类型 说明
    datasource json object 数据源

    其它参数:同Query服务

  • 返回结果

    {"resultcode":"success","result":{"fields":[{"name":"BSM","type":"Integer"},{"name":"YSDM","type":"String"},{"name":"XZQDM","type":"String"},{"name":"XZQMC","type":"String"},{"name":"KZMJ","type":"Double"},{"name":"JSMJ","type":"Double"},{"name":"MSSM","type":"String"},{"name":"FID"}],"type":"FeatureCollection","features":[{"type":"Feature","geometry":{GeoJson as FeatureCollection},"AreaLength":789113.4918969754,"properties":{"BSM":0,"YSDM":"","XZQDM":"","XZQMC":"","KZMJ":0.0,"JSMJ":0.0,"MSSM":"","FID":"0"},"overlaps":[{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":2874.6045789672946,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":89033.82425593224,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":41971.20128819321,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":44265.061802680546,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":15020.125344466145,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":75012.21392821816,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":25800.273649796993,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":16506.477318129146,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":13232.030597282394,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":28406.29406631251,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":14821.242991512258,"properties":{}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"result_area":8173.719373761715,"properties":{}}]}],"numberReturned":1,"totalFeatures":-1,"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"TimeStamp":"周五 7月 3 11:06:18 2020"},"time":0.148}

表字段查询

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "fields",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/三门峡/GHJBNTBHQ.shp",
              "featureclassname": "GHJBNTBHQ"
          },
          "isSummaryField": "true",
          "maxGroupItemCount": "1000"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    {"resultcode":"success","result":{"groupfields":[{"name":"YSDM","aliasname":"","type":"String","length":10,"precision":0,"scale":0}],"summaryfields":[{"name":"BSM","aliasname":"","type":"Integer","length":9,"precision":0,"scale":0},{"name":"BHQMJ","aliasname":"","type":"Double","length":19,"precision":11,"scale":18},{"name":"NYDMJ","aliasname":"","type":"Double","length":19,"precision":11,"scale":18},{"name":"GDMJ","aliasname":"","type":"Double","length":19,"precision":11,"scale":18},{"name":"JBNTMJ","aliasname":"","type":"Double","length":19,"precision":11,"scale":18}]},"time":0.131}

唯一值查询

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
      	"request": "UniqueValue",
          "fieldName": "XZQMC",
      	"datasource": {
      		"type": "dataservice",
      		"url": "http://127.0.0.1:8699/KQGis/rest/services/ds_all/DataServer/proc?",
      		"datasourceid": 3,
      		"featureclassname": "XZQ_CUN"
      	}
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

空间查询

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "query",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/三门峡/GHJBNTBHQ.shp",
              "featureclassname": "GHJBNTBHQ"
          },
          "startindex": "0",
          "reqcount": "1000",
          "geometry": {
              "type": "Polygon",
              "coordinates": [
                  [
                      [
                          111.2562825,
                          34.73701762
                      ],
                      [
                          111.2562825,
                          34.75111692
                      ],
                      [
                          111.27514476,
                          34.75111692
                      ],
                      [
                          111.27514476,
                          34.73701762
                      ],
                      [
                          111.2562825,
                          34.73701762
                      ]
                  ]
              ]
          },
          "fields": "BSM,YSDM,DLMC",
          "geoSRS": "EPSG:4326",
          "outSRS": "EPSG:4326",
          "areaSRS": "EPSG:2361"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    {"resultcode":"success","result":{"type":"FeatureCollection","fields":[{"name":"BSM","type":"Integer"},{"name":"YSDM","type":"String"},{"name":"FID"}],"features":[{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13811,"YSDM":"2003020370","FID":"97"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13801,"YSDM":"2003020370","FID":"98"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13832,"YSDM":"2003020370","FID":"100"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13831,"YSDM":"2003020370","FID":"104"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13737,"YSDM":"2003020370","FID":"106"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13834,"YSDM":"2003020370","FID":"109"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13827,"YSDM":"2003020370","FID":"110"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13795,"YSDM":"2003020370","FID":"112"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13794,"YSDM":"2003020370","FID":"114"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13829,"YSDM":"2003020370","FID":"115"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13712,"YSDM":"2003020370","FID":"116"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13796,"YSDM":"2003020370","FID":"119"}},{"type":"Feature","geometry":{GeoJson as FeatureCollection},"properties":{"BSM":13828,"YSDM":"2003020370","FID":"123"}}],"numberReturned":13,"totalFeatures":-1,"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"TimeStamp":"周五 7月 3 11:21:54 2020"},"time":0.034}

汇总查询

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "summary",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/三门峡/GHJBNTBHQ.shp",
              "featureclassname": "GHJBNTBHQ"
          },
          "startindex": "0",
          "reqcount": "1000",
          "geometry": {
              "type": "Polygon",
              "coordinates": [
                  [
                      [
                          111.2562825,
                          34.73701762
                      ],
                      [
                          111.2562825,
                          34.75111692
                      ],
                      [
                          111.27514476,
                          34.75111692
                      ],
                      [
                          111.27514476,
                          34.73701762
                      ],
                      [
                          111.2562825,
                          34.73701762
                      ]
                  ]
              ]
          },
          "groupFields": "YSDM",
          "summaryfields": "$area$,$length$",
          "summarytypes": "sum,min,max,count",
          "isoverlap": "true",
          "where": "",
          "geoSRS": "EPSG:4326",
          "outSRS": "EPSG:4326",
          "areaSRS": "EPSG:2361"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    {"resultcode":"success","result":{"names":"2003020370","itemcount":1,"recordcount":13,"items":[{"name":"2003020370","count":13,"values":[{"fieldname":"$area$","min":34.90741146,"max":98910.24220054,"sum":487554.00668017},{"fieldname":"$length$","min":27.38662574,"max":2199.68859418,"sum":12900.35220824}]}]},"time":0.04}

执行SQL文件

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "execute",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/三门峡/XZQ_CUN.shp",
              "featureclassname": "XZQ_CUN"
          },
          "startindex": "0",
          "reqcount": "1000",
          "sql": "select XZQMC,XZQDM from XZQ_CUN"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource string json对象,必选项,参见{Datasource Json Object}
  • 返回结果

    {"resultcode":"success","result":{"type":"FeatureCollection","fields":[{"name":"XZQMC"},{"name":"XZQDM"}],"features":[{"type":"Feature","properties":{"XZQMC":"野鹿村","XZQDM":"411202003004"}},{"type":"Feature","properties":{"XZQMC":"候桥村","XZQDM":"411202003005"}},{"type":"Feature","properties":{"XZQMC":"朱家沟村","XZQDM":"411202003006"}},{"type":"Feature","properties":{"XZQMC":"候家沟村","XZQDM":"411202003007"}},{"type":"Feature","properties":{"XZQMC":"杨家沟村","XZQDM":"411202003008"}},{"type":"Feature","properties":{"XZQMC":"磁钟村","XZQDM":"411202004001"}},{"type":"Feature","properties":{"XZQMC":"贾庄村","XZQDM":"411202004002"}},{"type":"Feature","properties":{"XZQMC":"南鹿坡村","XZQDM":"411202004003"}},{"type":"Feature","properties":{"XZQMC":"杨家窑村","XZQDM":"411202004006"}},{"type":"Feature","properties":{"XZQMC":"赵家后村","XZQDM":"411202004008"}},{"type":"Feature","properties":{"XZQMC":"交口村","XZQDM":"411202003001"}},{"type":"Feature","properties":{"XZQMC":"泉脑村","XZQDM":"411202004007"}}],"numberReturned":12,"totalFeatures":-1,"TimeStamp":"周五 7月 3 11:45:35 2020"},"time":0.077}

(8.5不支持)相关分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    {
        "request": "Correlation",
        "datasource": {
            "type": "file",
            "type2": 21,
            "path": "E:/Work/数据/矢量数据/空间统计分析测试数据/相关-回归-聚类-主成份/相关-回归-聚类-主成份.shp",
            "featureclassname": "相关-回归-聚类-主成份"
        },
        "fieldName": "HJYS",
        "corrFieldNames": "JTYS,SYYS,GYYS,ZHFZ"
    }
  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    同Query服务

(8.5不支持)回归分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "Regress",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/空间统计分析测试数据/相关-回归-聚类-主成份/相关-回归-聚类-主成份.shp",
              "featureclassname": "相关-回归-聚类-主成份"
          },
          "fieldName": "HJYS",
          "corrFieldNames": "JTYS,SYYS,GYYS,ZHFZ"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource string json对象,必选项,参见{Datasource Json Object}
  • 返回结果

    同Query服务

(8.5不支持)聚类分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "Clustering",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/空间统计分析测试数据/相关-回归-聚类-主成份/相关-回归-聚类-主成份.shp",
              "featureclassname": "相关-回归-聚类-主成份"
          },
          "corrFieldNames": "HJYS,JTYS",
          "classCount": "2"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    同Query服务

(8.5不支持)主成份分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "MainElement",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/空间统计分析测试数据/相关-回归-聚类-主成份/相关-回归-聚类-主成份.shp",
              "featureclassname": "相关-回归-聚类-主成份"
          },
          "corrFieldNames": "BH,HJYS,JTYS,SYYS,GYYS"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    同Query服务

(8.5不支持)秩相关分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "RankCorrelation",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/空间统计分析测试数据/相关-回归-聚类-主成份/相关-回归-聚类-主成份.shp",
              "featureclassname": "相关-回归-聚类-主成份"
          },
          "fieldName": "HJYS",
          "corrFieldNames": "JTYS,SYYS,GYYS,ZHFZ",
          "method": "0"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    同Query服务

(8.5不支持)局部空间自相关分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "LocalMoranI",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/空间统计分析测试数据/相关-回归-聚类-主成份/相关-回归-聚类-主成份.shp",
              "featureclassname": "相关-回归-聚类-主成份"
          },
          "fieldName": "HJYS",
          "spatialRelMode": "0",
          "disType": "0",
          "disThreshold": "0.0",
          "isRowStandard": "false"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    同Query服务

生成空间权重矩阵

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "CreateWeightMatrix",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/空间统计分析测试数据/汇总-频数-高低聚类-空间自相关-生成权重矩阵/农业采样点.shp",
              "featureclassname": "农业采样点"
          },
          "spatialRelMode": "0",
          "disType": "0",
          "disThreshold": "0.0",
          "isRowStandard": "false"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    同Query服务

空间自相关分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "AutoCorrelation",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/空间统计分析测试数据/汇总-频数-高低聚类-空间自相关-生成权重矩阵/农业采样点.shp",
              "featureclassname": "农业采样点"
          },
          "fieldName": "锌",
          "spatialRelMode": "0",
          "disType": "0",
          "disThreshold": "0.0",
          "isRowStandard": "false"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必选 类型 说明
    datasource json object 数据源
  • 返回结果

    同Query服务

高低聚类分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    {
        "request": "GpClustering",
        "datasource": {
            "type": "file",
            "type2": 21,
            "path": "E:/Work/数据/矢量数据/空间统计分析测试数据/汇总-频数-高低聚类-空间自相关-生成权重矩阵/农业采样点.shp",
            "featureclassname": "农业采样点"
        },
        "fieldName": "磷",
        "spatialRelMode": "0",
        "disType": "0",
        "disThreshold": "0.0",
        "isRowStandard": "false"
    }
  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    同Query服务

频数分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "frequency",
          "datasource": {
              "type": "dataservice",
              "url": "http://127.0.0.1:8699/KQGis/rest/services/ds_all/DataServer/proc?",
              "datasourceid": 8,
              "featureclassname": "农业采样点"
          },
          "frequencyFields": "有机质,全氮,磷",
          "sumFields": "硫,钙,镁"
      }
    • 8.5

      数据源参考数据源连接

  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    同Query服务

汇总统计分析

  • 方法名:proc

  • 接口功能

    同Query服务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/AnalysisServer/proc
  • 请求json示例

    • 8.1

      {
          "request": "SumStatistics",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/空间统计分析测试数据/汇总-频数-高低聚类-空间自相关-生成权重矩阵/农业采样点.shp",
              "featureclassname": "农业采样点"
          },
          "statisticsType": "0",
          "statisticsFieldName": "全氮",
          "classifyFieldNames": "有机质,全氮,磷"
      }
    • 8.5

      {
          "request": "SumStatistics",
          "datasource": {
              "type": "file",
              "type2": 21,
              "path": "E:/Work/数据/矢量数据/空间统计分析测试数据/汇总-频数-高低聚类-空间自相关-生成权重矩阵/农业采样点.shp",
              "featureclassname": "农业采样点"
          },
          "statisticsType": "0",
          "statisticsFieldName": "全氮",
          "classifyFieldNames": "有机质,全氮,磷"
      }
  • 请求参数说明

    名称 必填 类型 说明
    datasource json object 数据源
  • 返回结果

    同Query服务

(8.5不支持)DatastoreService-数据存储服务

进度查询

  • 方法名:proc

  • 接口功能

    查询指定上传任务的进度,默认返回整体进度信息。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/DatastoreServer/proc
  • 请求json示例

    {
        "request":"queryStatus",
        "taskId":"{4ae58acc-c69d-419f-8a61-81335c8e6b6c}",
        "retRunning": true,
        "retSucceed": true,
        "retFailed": true
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法
    taskId string 任务id
    retRunning bool 否返回正在执行的任务进度,默认为false
    retSucceed bool 是否返回执行成功的任务进度,默认为false
    retFailed bool 是否返回执行失败的任务进度,默认为false
  • 返回结果

    {"result":{"mainProgress":{"guid":"{4ae58acc-c69d-419f-8a61-81335c8e6b6c}","startTime":"2020-08-31 16:57:54","endTime":"2020-08-31 16:58:09","costTime":"14722","finishedCount":"17","succeedCount":"16","status":"1","message":""},"runningTasks":[],"succcedTasks":["guid","{fde4902e-f855-4cee-a8ad-985c4a7e19c6}","key","filepath=E:/Work/数据/矢量数据/三门峡/JQLXDW.shp","startTime","2020-08-31 16:57:54","endTime","2020-08-31 16:57:58","costTime","24","allCount","24","finishedCount","24","validCount","24","commitCount","24","status","1","message","","guid","{d6351f9e-51fd-4b4b-aeb7-d0127c61180d}","key","filepath=E:/Work/数据/矢量数据/三门峡/GHJBNTBHQ.shp","startTime","2020-08-31 16:57:54","endTime","2020-08-31 16:57:58","costTime","125","allCount","125","finishedCount","125","validCount","125","commitCount","125","status","1","message","","guid","{06db0da7-d55b-4c5e-8ac9-6f74711c53a5}","key","filepath=E:/Work/数据/矢量数据/三门峡/GHJBNTTZ.shp","startTime","2020-08-31 16:57:54","endTime","2020-08-31 16:57:58","costTime","387","allCount","387","finishedCount","387","validCount","387","commitCount","387","status","1","message","","guid","{d60b9938-9977-4e90-a8a3-04408ef24573}","key","filepath=E:/Work/数据/矢量数据/三门峡/JQXZDW.shp","startTime","2020-08-31 16:57:58","endTime","2020-08-31 16:58:00","costTime","1243","allCount","1243","finishedCount","1243","validCount","1243","commitCount","1243","status","1","message","","guid","{d3b34e00-1e78-4a8c-baab-4a21e936abee}","key","filepath=E:/Work/数据/矢量数据/三门峡/MZTDZZZDXM.shp","startTime","2020-08-31 16:58:00","endTime","2020-08-31 16:58:01","costTime","2","allCount","2","finishedCount","2","validCount","2","commitCount","2","status","1","message","","guid","{5dfbd7db-a232-434e-baa3-01a651e0b91c}","key","filepath=E:/Work/数据/矢量数据/三门峡/MZZDJSXM.shp","startTime","2020-08-31 16:58:01","endTime","2020-08-31 16:58:01","costTime","0","allCount","0","finishedCount","0","validCount","0","commitCount","0","status","1","message","","guid","{98ae85a3-27e2-420d-b3b8-231123818a52}","key","filepath=E:/Work/数据/矢量数据/三门峡/JSYDGZBJ.shp","startTime","2020-08-31 16:57:59","endTime","2020-08-31 16:58:02","costTime","3283","allCount","3283","finishedCount","3283","validCount","3283","commitCount","3283","status","1","message","","guid","{c4b79076-63d3-4697-bd31-1847e68bf9a4}","key","filepath=E:/Work/数据/矢量数据/三门峡/JQDLJX.shp","startTime","2020-08-31 16:57:54","endTime","2020-08-31 16:58:02","costTime","3291","allCount","3291","finishedCount","3291","validCount","3291","commitCount","3291","status","1","message","","guid","{c8e58fc0-60e4-47a1-91c3-195872924355}","key","filepath=E:/Work/数据/矢量数据/三门峡/polygon.shp","startTime","2020-08-31 16:58:02","endTime","2020-08-31 16:58:04","costTime","1","allCount"],"failedTasks":[]},"time":0.004,"resultcode":"success"}

创建数据库

  • 方法名:proc

  • 接口功能

    创建数据库工作空间。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/DatastoreServer/proc
  • 请求json示例

    {
        "request": "createWorkspace",
        "datasource":{
            "type": "KqOracle",
            "database": "127.0.0.1/orcl",
            "sysuser": "sys",
            "syspassword": "123456",
            "tablespace": "KQ",
            "username": "KQ",
            "password": "KQ"
        }
    }
  • 请求参数说明

    参数名 示例值 参数类型 是否必填 参数描述
    request createWorkspace String 处理方法
    datasource Object 数据源
    datasource.type KqOracle String 数据源类型
    datasource.server Object 数据库服务器名
    datasource.instance Object 数据库实例名
    datasource.database 172.16.0.14/orcl String 数据库名
    datasource.tablespace KQ String 数据库表空间名
    datasource.sysuser sys String 数据库系统管理员用户名
    datasource.syspassword SYS String 数据库系统管理员密码
    datasource.username KQ String 数据库用户名
    datasource.password KQ String 数据库密码
  • 返回结果

    {
    	"resultcode":"success"
    }

创建要素集

  • 方法名:proc

  • 接口功能

    创建要素集。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/DatastoreServer/proc
  • 请求json示例

    {
    	"request": "createFeatureDataset",
    	"datasource": {
    		"type": "KqOracle",
    		"server": "",
    		"instance": "",
    		"database": "172.16.0.14/orcl",
    		"tablespace": "KQ",
    		"username": "KQ",
    		"password": "KQ",
    		"dataset": "三门峡",
            "outSRS": "EPSG:2361"
    	}
    }
  • 请求参数说明

    参数名 示例值 参数类型 是否必填 参数描述
    request createFeatureDataset String 处理方法
    datasource Object 数据源
    datasource.type KqOracle String 数据源类型
    datasource.server String 数据库服务器名
    datasource.instance String 数据库实例名
    datasource.database 172.16.0.14/orcl String 数据库名
    datasource.tablespace KQ String 数据库表空间名
    datasource.username KQ String 数据库用户名
    datasource.password KQ String 数据库密码
    datasource.dataset 三门峡 String 数据集名
    datasource.outSRS EPSG:2361 String 目标空间参考
  • 返回结果

    {
    	"resultcode":"success"
    }

删除要素表

  • 方法名:proc

  • 接口功能

    删除要素表。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/DatastoreServer/proc
  • 请求json示例

    {
    	"request": "delFeatureClass",
    	"datasource": {
    		"type": "KqOracle",
    		"server": "",
    		"instance": "",
    		"database": "172.16.0.14/orcl",
    		"username": "KQ",
    		"password": "KQ",
    		"tableName": "XZQ_CUN"
    	}
    }
  • 请求参数说明

    参数名 示例值 参数类型 是否必填 参数描述
    request delFeatureClass String 处理方法
    datasource Object 数据源
    datasource.type KqOracle String 数据源类型
    datasource.server Object 数据库服务器名
    datasource.instance Object 数据库实例名
    datasource.database 172.16.0.14/orcl String 数据库名
    datasource.username KQ String 数据库用户名
    datasource.password KQ String 数据库密码
    datasource.tableName XZQ_CUN String 数据库表名
  • 返回结果

    {
    	"resultcode": "success",
    	"time": 0.181
    }

删除要素集

  • 方法名:proc

  • 接口功能

    删除要素集。

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/DatastoreServer/proc
  • 请求json示例

    {
    	"request": "delFeatureDataset",
    	"datasource": {
    		"type": "KqOracle",
    		"server": "",
    		"instance": "",
    		"database": "172.16.0.14/orcl",
    		"username": "KQ",
    		"password": "KQ",
    		"dataset": "三门峡"
    	}
    }
  • 请求参数说明

    参数名 示例值 参数类型 是否必填 参数描述
    request delFeatureDataset String 处理方法
    datasource Object 数据源
    datasource.type KqOracle String 数据源类型
    datasource.server Object 数据库服务器名
    datasource.instance Object 数据库实例名
    datasource.database 172.16.0.14/orcl String 数据库名
    datasource.username KQ String 数据库用户名
    datasource.password KQ String 数据库密码
    datasource.dataset 三门峡 String 数据集名
  • 返回结果

    {
    	"resultcode": "success",
    	"time": 1.821
    }

开始入库

  • 方法名:proc

  • 接口功能

    开始上传指定数据到指定数据库。

  • 请求地址

    Shapefile文件入Kq Oracle库

    http://127.0.0.1:8699/KQGis/rest/services/DatastoreServer/proc
  • 请求json示例

    注意:Options选项暂不支持。

    {
        "request": "startUpload",
        "overwrite": true,
        "retTotalCount": true,
        "srcDatasource": {
            "type": "Shapefile",
            "filepath": "E:/Work/数据/矢量数据/全国",
            "options": {
                "where": "",
                "geometry": "",
                "geoSRS": "",
                "outSRS": ""
            }
        },
        "desDatasource": {
            "type": "KqOracle",
            "database": "127.0.0.1/orcl",
            "username": "KQ",
            "password": "KQ",
            "dataset": ""
        }
    }
    • Shapfile

      {
          "type": "Shapefile",
          "filepath": "E:/Work/数据/矢量数据/全国",
          "options": {
              "where": "",
              "geometry": "",
              "geoSRS": "",
              "outSRS": ""
          }
      }
      {
          "type": "Shapefile",
          "filepath": "E:/work/数据/矢量数据/smx",
          "tablename": "xian.shp",
          "options": {
              "where": "",
              "geometry": "",
              "geoSRS": "",
              "outSRS": ""
          }
      }
    • GeoJson

      {
          "type": "GeoJson",
          "filepath": "E:/Work/数据/矢量数据",
          "tablename": "test.geojson",
          "options": {
              "where": "",
              "geometry": "",
              "geoSRS": "",
              "outSRS": ""
          }
      }
    • KqOracle

      {
          "type": "KqOracle",
          "server": "",
          "instance": "",
          "database": "",
          "username": "",
          "password": "",
          "tablename": "",
          "options": {
              "where": "",
              "geometry": "",
              "geoSRS": "",
              "outSRS": ""
          }
      }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法
    overwrite bool 如果目标数据库存在该数据是否覆盖
    retTotalCount bool 是否计算并返回单个文件或表的要素总数。注意:如果选true,数据量大时会明显降低入库速度
    srcDatasource json array 原始数据源列表
    desDatasource json object 目标数据源
    ├─ options json object 附加选项,暂不支持
  • 返回结果

    {
        "resultcode": "success",
        "result":{
        	"taskId":"{4ae58acc-c69d-419f-8a61-81335c8e6b6c}"
    	}
    }

停止入库

  • 方法名:proc

  • 接口功能

    停止指定的上传任务

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/DatastoreServer/proc
  • 请求json示例

    {
    	"request":"stopUpload",
    	"taskId":"{4ae58acc-c69d-419f-8a61-81335c8e6b6c}"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 请求方法
    taskId string 任务id
  • 返回结果

    {
        "resultcode":"success"
    }

(8.5不支持)NetworkService-网络分析服务

最优路径分析

  • 方法名:route

  • 接口功能

    最优路径分析,给定起点和终点坐标,也可指定途经点或必须避开的障碍点坐标,自动规划出一条最优线路

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/road_speed/networkserver/route
  • 请求json示例

    {
        "layerId":"1",
        "origin":"106.65128292,26.68761179",
        "destination":"106.7857021,26.54293729",
        "middlepoint":[[106.68318799,26.62353767],[106.72501407,26.57076272]],
        "geoSRS":"EPSG:4326",
        "outSRS":"EPSG:4326",
        "impedence":11
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerId int 图层ID
    origin string 起点坐标
    destination string 终点坐标
    middlepoint json array 途经点坐标集合
    barrierpoints json array 障碍点坐标集合
    avoidareas geojson 障碍面
    geoSRS string 图形的坐标所属的空间参考
    outSRS string 目标空间参考
    impedence int 阻抗,默认为10,选项:10-长度 11-速度,10表示最短距离,11表示最短时间
  • 返回结果

    {"result":{"paths":[{"ditance":25646.614674729255,"count":51,"duration":2283,"segments":{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"无名道路","level":4,"length":24.34140949370272,"maxspeed":40,"duration":2,"direction":"直走"},"geometry":{"type":"LineString","coordinates":[[36365757.80365372,2953728.427707983],[36365734.46081927,2953735.3281641975]]}},{"type":"Feature","properties":{"name":"无名道路","level":4,"length":20.49415853934508,"maxspeed":40,"duration":1,"direction":"左转"},"geometry":{"type":"LineString","coordinates":[[36378977.82924645,2937543.453433113],[36378986.01328745,2937562.242579106]]}}]}}]},"resultcode":"success","time":3771}

旅行商分析

  • 方法名:tsp

  • 接口功能

    旅行商分析

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/networkserver/tsp
  • 请求json示例

    {
        "layerId":"1",
    	"origin":"106.65128292,26.68761179",
        "destination":"106.7857021,26.54293729",
        "middlepoint":[[106.68318799,26.62353767],[106.72501407,26.57076272]],
        "barrierpoints":[[106.68318799,26.62353767],[106.72501407,26.57076272]],
        "geoSRS":"EPSG:4326",
        "outSRS":"EPSG:2361"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerId int 图层ID
    origin string 起点坐标
    destination string 终点坐标
    middlepoint json array 途经点坐标集合
    barrierpoints json array 障碍点坐标集合
    avoidareas geojson 障碍面
    geoSRS string 图形的坐标所属的空间参考
    outSRS string 目标空间参考
    impedence int 阻抗,默认为10。选项:10-长度 11-速度,10表示最短距离,11表示最短时间
  • 返回结果

{"result":{"paths":[{"ditance":25646.614674729255,"count":51,"duration":2283,"segments":{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"无名道路","level":4,"length":24.34140949370272,"maxspeed":40,"duration":2,"direction":"直走"},"geometry":{"type":"LineString","coordinates":[[36365757.80365372,2953728.427707983],[36365734.46081927,2953735.3281641975]]}},{"type":"Feature","properties":{"name":"无名道路","level":4,"length":20.49415853934508,"maxspeed":40,"duration":1,"direction":"左转"},"geometry":{"type":"LineString","coordinates":[[36378977.82924645,2937543.453433113],[36378986.01328745,2937562.242579106]]}}]}}]},"resultcode":"success","time":3771}

追溯分析

  • 方法名:traceback

  • 接口功能

    向上追溯给定起点的上游线路或向下追溯给定起点的下游线路

  • 请求地址

    http://127.0.0.1:8699/KQGis/rest/services/{ServiceName}/networkserver/traceback
  • 请求json示例

    {
    	"mode":"0",
    	"layerId":"1",
    	"origin":"113.402645,29.748042",
    	"geoSRS":"EPSG:4326",
    	"outSRS":"EPSG:2361"
    }
  • 请求参数说明

    名称 必填 类型 说明
    layerId int 图层ID
    mode int 追溯模式,默认为0。选项:0-向上追溯;1-向下追溯
    origin string 起点坐标
    geoSRS string 图形的坐标所属的空间参考
    outSRS string 目标空间参考
  • 返回结果

    {"result":{"paths":[{"ditance":25646.614674729255,"count":51,"duration":2283,"segments":{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"无名道路","level":4,"length":24.34140949370272,"maxspeed":40,"duration":2,"direction":"直走"},"geometry":{"type":"LineString","coordinates":[[36365757.80365372,2953728.427707983],[36365734.46081927,2953735.3281641975]]}},{"type":"Feature","properties":{"name":"无名道路","level":4,"length":20.49415853934508,"maxspeed":40,"duration":1,"direction":"左转"},"geometry":{"type":"LineString","coordinates":[[36378977.82924645,2937543.453433113],[36378986.01328745,2937562.242579106]]}}]}}]},"resultcode":"success","time":3771}

PlottingService-标绘服务

putProject

  • 接口功能

    录入工程。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/PlottingServer/proc
  • 请求json示例

    {
        "request": "putProject",
        "datasource": {
    		"type": "KqOracle",
    		"server": "",
    		"instance": "",
    		"database": "172.16.0.14/orcl",
    		"username": "KQ5",
    		"password": "KQ5"
        },
        "project": {
            "projectname": "工程1",
            "srs": "",
            "symbolrefscale": "5000000",
            "layers": [
                {
                    "layerid": 14,
                    "parentid": 13,
                    "layertype": 1,
                    "layername": "图元层",
                    "parentname": "图元层root",
                    "symbolrefscale": "0",
                    "elements": []
                },
                {
                    "layerid": 15,
                    "parentid": 14,
                    "layertype": 5,
                    "layername": "子图层(500万)",
                    "parentname": "图元层",
                    "symbolrefscale": "5000000",
                    "elements": [
                        {
                            "AttGeneral": {
                                "Degree": 0,
                                "Fill": {},
                                "FillMarker": [],
                                "Line": {
                                    "PenStyle": 1,
                                    "StrokeColor": "(255,0,0,255)",
                                    "StrokeWidth": 0.5,
                                    "Units": 0
                                },
                                "m": "N"
                            },
                            "AttMark": {
                                "Font": {
                                    "Angle": 0,
                                    "Color": "(0,0,0,255)",
                                    "Family": "微软雅黑",
                                    "IsBold": false,
                                    "IsItalic": false,
                                    "IsStrikeThrough": false,
                                    "IsUnderLine": false,
                                    "Size": 10,
                                    "Spacing": 0
                                },
                                "Shadow": {
                                    "Color": "(0,0,0,255)",
                                    "OffsetX": 0,
                                    "OffsetY": 0,
                                    "Visible": false
                                },
                                "Show": {
                                    "OffsetX": 0,
                                    "OffsetY": 0,
                                    "Position": 1
                                },
                                "Text": ""
                            },
                            "AttSerif": {
                                "Line": {
                                    "StrokeColor": "(0,0,250,255)",
                                    "StrokeWidth": 0.5,
                                    "Units": 1
                                }
                            },
                            "AttTail": {
                                "Line": {
                                    "PenStyle": 1,
                                    "StrokeColor": "(0,0,0,255)",
                                    "StrokeWidth": 0.5,
                                    "Units": 1
                                }
                            },
                            "GeoType": 0,
                            "Height": 28.42204724409449,
                            "MousePoint": [
                                [
                                    110.16796875,
                                    35.28890015886219
                                ]
                            ],
                            "Name": "陆军",
                            "Properties": {
                                "Factor": 0.5801330118372635,
                                "lineWidthProportion": 136.06299212598428,
                                "nGeoType": 0,
                                "wsStyleFile": "E:/1KQJBPlotting_Online/bin/win/x64/Debug/data/style/01 单位与人员/0101军兵种、专业兵.style"
                            },
                            "Units": 1,
                            "Width": 68.03149606299214
                        }
                    ]
                }
            ]
        }
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    datasource json object 数据源
    project json object 工程
    ├─ name string 工程名
    ├─ srs string 空间参考
    ├─ symbolrefscale double 参考比例尺
    ├─ layers json array 图层
    ├─ layerid int 图层ID
    ├─ layertype int 图层类型
    ├─ layername string 图层名
    ├─ parentname string 父图层名
    ├─ symbolrefscale double 参考比例尺
    ├─ elements json array 符号数组
  • 返回结果

    • 正确

      {
          "resultcode":"success",
          "result":{
              "projectid": 1
          }
      }

getProject

  • 接口功能

    查询工程。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/PlottingServer/proc
  • 请求json示例

    {
        "request":"getProject",
        "datasource":
        {
    		"type": "KqOracle",
    		"server": "",
    		"instance": "",
    		"database": "172.16.0.14/orcl",
    		"username": "KQ5",
    		"password": "KQ5"
        },
        "projectId":1
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    datasource json object 数据源
    projectId int 工程ID
  • 返回结果

    • 正确

      {"resultcode":"success","result":{"projectname":{"projectid":1,"projectname":"工程1","srs":"","symbolrefscale":5000000,"layers":[{"layerid":14,"parentid":13,"layertype":1,"layername":"图元层","parentname":"图元层root","symbolrefscale":0.0,"elements":[]},{"layerid":15,"parentid":14,"layertype":5,"layername":" 子图层(500万)","parentname":"图元层","symbolrefscale":5000000.0,"elements":[{"elementname":"陆军","isstatic":false,"element":{"AttGeneral":{"Degree":0,"Fill":{},"FillMarker":[],"Line":{"PenStyle":1,"StrokeColor":"(255,0,0,255)","StrokeWidth":0.5,"Units":0},"m":"N"},"AttMark":{"Font":{"Angle":0,"Color":"(0,0,0,255)","Family":"微软雅黑","IsBold":false,"IsItalic":false,"IsStrikeThrough":false,"IsUnderLine":false,"Size":10,"Spacing":0},"Shadow":{"Color":"(0,0,0,255)","OffsetX":0,"OffsetY":0,"Visible":false},"Show":{"OffsetX":0,"OffsetY":0,"Position":1},"Text":""},"AttSerif":{"Line":{"StrokeColor":"(0,0,250,255)","StrokeWidth":0.5,"Units":1}},"AttTail":{},"GeoType":0,"Height":28.42204724409449,"MousePoint":[[110.16796875,35.28890015886219]],"Name":"陆军","Properties":{"Factor":0.5801330118372635,"lineWidthProportion":136.06299212598428,"nGeoType":0,"wsStyleFile":"E:/1KQJBPlotting_Online/bin/win/x64/Debug/data/style/01 单位与人员/0101军兵种、专业兵.style"},"Units":1,"Width":68.03149606299214}}]}]}},"time":8417}

delProject

  • 接口功能

    删除工程。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/PlottingServer/proc
  • 请求json示例

    {
        "request":"delProject",
        "datasource":
        {
    		"type": "KqOracle",
    		"server": "",
    		"instance": "",
    		"database": "172.16.0.14/orcl",
    		"username": "KQ5",
    		"password": "KQ5"
        },
        "projectId":1
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    datasource json object 数据源
    projectId int 工程ID
  • 返回结果

    • 正确

      {
          "resultcode":"success"
      }

(8.5不支持)RasterCatalogService-栅格目录服务(仅供某项目使用)

getStatus

  • 接口功能

    查询任务进度信息。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
        "request":"getStatus",
        "taskId":"123"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    taskId string 任务id
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "status": 1,	//任务状态  -1:失败  0:执行中  1:成功
            "type": 7,		//任务类型
            "taskId": "1",	//任务id
            "outputPath": "/home/kanq/output/output_clip.tif"
            "progress": "100.00",	//任务进度百分比
            "starttime": "2021-04-15 14:45:53",
            "endtime": "2021-04-15 14:45:53",
            "costtime": 0,	//任务耗时,单位:ms
            "msg": ""	//消息
        }
    }
  • 返回参数说明

    名称 类型 说明
    resultcode string 请求状态标志
    status int 任务状态,-1-失败 0-执行中 1-成功
    type int 任务类型
    taskId string 任务id
    outputPath string 输出路径,任务为裁剪时生效
    progress string 任务进度百分比
    starttime string 任务起始时间
    endtime string 任务结束时间
    costtime int 任务耗时,单位:ms
    msg string 任务消息
    message string 请求错误消息

getHardwareInfo

  • 接口功能

    获取硬件信息。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"getHardwareInfo",
        "dirPath":"/home/kanq/data/image_output"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    dirPath string 物理文件夹绝对路径
  • 返回结果

    dirPath为空

    {
        "resultcode": "success",
        "result": {
            "disk": {
                "disk_total_mb": 238470.99609375,
                "disk_free_mb": 125660.82421875
            }
        }
    }

    dirPath不为空

    {
        "resultcode": "success",
        "result": {
            "disk": {
                "disk_total_mb": 238470.99609375,
                "disk_free_mb": 125660.82421875
            },
            "memory": {
                "mem_total_mb": 4012.015625,
                "mem_free_mb": 1974.67578125
            }
        }
    }

synchronize

  • 接口功能

    同步服务信息。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"synchronize",
        "taskId":"1",
    	"dirPath":"/1",
    	"bIsOverWrite":true
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    taskId string 任务id
    dirPath string 目录路径
    bIsOverWrite bool 是否覆盖
  • 返回结果

asc2tif

  • 接口功能

    ASC转TIF。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request": "asc2tif",
        "taskId": "1",
    	"paths":["E:/Work/数据/影像数据/asc/srtm_60_05.asc"],
        "bIsOverwrite":false
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    taskId string 任务id
    paths string asc文件路径
    bIsOverwrite bool 是否覆盖
  • 返回结果

searchCRS

  • 接口功能

    查询空间参考。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
        "request":"searchCRS",
        "type":1,
        "project_type":"",
        "datum":"D_WGS_1984",
        "degree":6,
        "zone":"20",
        "zone_type":"1",
        "epsg:":"",
        "key":"",
        "limit":10,
        "offset":0
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    type int 坐标类型,0表示大地坐标,1表示平面坐标。
    project_type string 投影类型,如"Gauss_Kruger"表示高斯投影。
    datum string 椭球体,如"D_Beijing_1954",D_Xian_1980","D_China_2000"。
    degree int 可选3或6。
    zone int 分带号,整数。
    zone_type int 分带类型,0表示CM中央经线,1表示带带号
    longitude int 经度,整数。
    epsg int epsg代号。
    key string 坐标系名或EPSG代码的关键字,只允许单条关键字。
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "count": 2,
            "projections": [
                {
                    "id": 3343,
                    "prefix": "Projected Coordinate Systems/UTM/WGS 1984/Northern Hemisphere",
                    "name": "WGS 1984 UTM Zone 50N",
                    "crs": "PROJCS[\"WGS_1984_UTM_Zone_50N\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",117.0],PARAMETER[\"Scale_Factor\",0.9996],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0],AUTHORITY[\"EPSG\",32650]]",
                    "type": 1,
                    "project_type": 0,
                    "epsg": 32650,
                    "degree": 6,
                    "zone": 20,
                    "zone_type": 1,
                    "longitude": 117
                },
                {
                    "id": 3403,
                    "prefix": "Projected Coordinate Systems/UTM/WGS 1984/Southern Hemisphere",
                    "name": "WGS 1984 UTM Zone 50S",
                    "crs": "PROJCS[\"WGS_1984_UTM_Zone_50S\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",10000000.0],PARAMETER[\"Central_Meridian\",117.0],PARAMETER[\"Scale_Factor\",0.9996],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0],AUTHORITY[\"EPSG\",32750]]",
                    "type": 1,
                    "project_type": 0,
                    "epsg": 32750,
                    "degree": 6,
                    "zone": 20,
                    "zone_type": 1,
                    "longitude": 117
                }
            ]
        }
    }

getEPSG

  • 接口功能

    获取EPSG代号。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
        "request": "getEPSG",
        "srs": "GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433],AUTHORITY[\"EPSG\",4326]]"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    srs string wkt格式空间参考
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "EPSG": "EPSG:4326"
        }
    }

resolutionConvert

  • 接口功能

    分辨率转换。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
        "request":"resolutionConvert",
        "srcSRS":"EPSG:4326",
        "desSRS":"EPSG:3857",
        "resolution":0.1
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    srcSRS string 源空间参考
    desSRS string 目标空间参考
    resolution double 分辨率
  • 返回结果

    {
        "resultcode": "success",
        "result": {
            "resolution": 11131.949079327402
        }
    }

createRasterCatalog

  • 接口功能

    插入栅格目录。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    • 挂载物理目录
    {
        "request": "createRasterCatalog",
        "taskId": "1",
        "datasetId": "1",
        "datasetName": "鄂州市",
        "mountOptions": [
            {
                "path": "/home/kanq/data/鄂州市/华容区",
                "filters": "*.tif,*.img",
                "bIsRecurse": true
            },
            {
                "path": "/home/kanq/data/鄂州市/鄂城区",
                "filters": "*.tif,*.img",
                "bIsRecurse": true
            },
            {
                "path": "/home/kanq/data/鄂州市/梁子湖区",
                "filters": "*.tif,*.img",
                "bIsRecurse": true
            }
        ],
        "srs": "EPSG:2362",
        "bIsCreateParamid": false,
        "bIsOverrideParamid": false
    }
    • 直接挂载图幅,目前限制只允许传单幅影像
    {
        "request": "createRasterCatalog",
        "taskId": "1",
        "datasetId": "1",
        "datasetName": "鄂州市",
        "mountOptions": [
            {
                "path": "/home/kanq/data/asc/1.tif",
                "filters": "*.tif,*.img",
                "bIsRecurse": true
            }
        ],
        "srs": "EPSG:2362",
        "bIsCreateParamid": false,
        "bIsOverrideParamid": false
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    taskId string 任务id
    datasetId int 数据集id
    datasetName string 数据集名称
    mountOptions json array 挂载选项
    srs string 栅格目录空间参考
    bIsCreateParamid bool 是否创建金字塔
    bIsOverrideParamid bool 是否覆盖已有金字塔
  • 返回结果

    • 正确

    • 错误

insertRasterCatalog

  • 接口功能

    追加挂载目录。

  • 请求地址

    172.16.0.3:19080/seis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
        "request": "insertRasterCatalog",
        "taskId" "1",
        "dirPath": "/1",
        "mountOptions": [
            {
                "path": "/home/kanq/data/鄂州市/葛店开发区",
                "filters": "*.tif,*.img",
                "bIsRecurse": true
            }
        ],
        "srs": "EPSG:2362",
        "bIsCreateParamid": false,
        "bIsOverrideParamid": false
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    taskId string 任务id
    layerId int 图层id
    datasetName string 数据集名称
    mountOptions json array 挂载路径
    srs string 栅格目录空间参考
    bIsCreateParamid bool 是否创建金字塔
    bIsOverrideParamid bool 是否覆盖已有金字塔
  • 返回结果

removeRasterCatalog

  • 接口功能

    移除栅格目录。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"removeRasterCatalog",
    	"dirPath":"/1/葛店开发区"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    dirPath string 目录路径
  • 返回结果

    • 正确

    • 错误

getRasterFileSRS

  • 接口功能

    获取栅格文件空间参考。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"getRasterFileSRS",
    	"filePath":"E:/Work/数据/根目录/鄂州市/鄂城区/H50G038013DOM.tif",
        "bIsPhysicalPath":true
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    filePath string 文件路径
    bIsPhysicalPath bool filePath是否为物理路径
  • 返回结果

setRasterFileSRS

  • 接口功能

    设置栅格文件空间参考。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"setRasterFileSRS",
    	"filePaths":["E:/Work/数据/根目录/鄂州市/鄂城区/H50G038013DOM.tif"],
        "bIsPhysicalPath":true,
        "bIsInternal":false,
    	"srs":"EPSG:2363"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    filePaths string 文件列表
    bIsPhysicalPath bool path是否为物理路径
    bIsInternal bool 设置的空间参考是否写入原始文件中,如为false则会在同级目录创建prj文件
    srs string 空间参考
  • 返回结果

setRasterCatalogSRS

  • 接口功能

    设置栅格目录空间参考。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
        "request":"setRasterCatalogSRS",
    	"dirPaths":["E:/Work/数据/根目录/鄂州市"],
    	"bIsPhysicalPath":true,
        "bIsOnlyForWithoutSRS":true,
    	"srs":"EPSG:4326"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    dirPaths string 目录路径
    bIsPhysicalPath bool dirPath是否为物理路径
    bIsOnlyForWithoutSRS bool 默认为true,是否只设置空间参考为空的图幅,dirPaths为物理路径时有效
    srs string 空间参考
  • 返回结果

getDiffSrsFilePaths

  • 接口功能

    获取不同空间参考图幅列表。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"getDiffSrsFilePaths",
    	"paths":["E:/Work/数据/根目录/鄂州市/鄂城区","E:/Work/数据/根目录/鄂州市/华容区"],
    	"srs":"EPSG:4326",
    	"bIsWithSRS":true
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    paths string 目标路径
    srs string 空间参考
    bIsWithSRS bool 是否返回空间参考,为false则只返回路径
  • 返回结果

setPathVisible

  • 接口功能

    设置栅格路径可见性。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"setPathVisible",
    	"path":"/1/华容区/H50G034014DOM.tif",
    	"bIsVisible":false
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    path string 数据路径
    bIsVisible bool
  • 返回结果

setPathZorder

  • 接口功能

    设置栅格路径顺序。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"setPathZorder",
    	"path":"/1/华容区/H50G034014DOM.tif",
    	"zorder":1
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    path bool 图幅或目录路径
    zorder int 顺序值,zorder值根据叠加顺序从底到顶递增
  • 返回结果

updateZorder

  • 接口功能

    批量更新栅格目录顺序。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request": "updateZorder",
    	"dirPath": "/1",
    	"paths": [
    		"/华容区",
    		"/鄂城区",
    		"/H50G040010DOM.tif",
    		"/梁子湖"
    	],
    	"offset": 0
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    dirPath string 为相对dirPath的相对路径,若为空则会按dirPath在数据库中存储的当前zorder值全部重排。
    paths string 目录路径
    offset int 为受影响范围内的第1个path的zorder值,paths不为空时有效,默认为0。
  • 返回结果

getRasterFileList

  • 接口功能

    获取图幅列表。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"getRasterFileList",
    	"dirPath":"/1",
    	"bIsRecurse":false,
    	"bIsWithAdds":true,
        "offset":0,
        "limit":0
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    dirPath string 目录路径
    bIsRecurse bool 是否递归,默认为false
    bIsWithAdds bool 默认为false,返回除图幅路径外的附加信息
    offset int 返回偏移量,默认为0
    limit int 返回数量,默认为0,为0时返回全部

    注意:递归与不递归返回的结果格式不一样。

  • 返回结果

    {
        "resultcode": "success",
      	"result": [
            {
              "path": "/鄂州市/华容区",
                "bIsDir": true,
                "bIsVisible": true,
                "zorder": 0
            },
            {
                "path": "/鄂州市/梁子湖",
                "bIsDir": true,
                "bIsVisible": true,
                "zorder": 1
            },
            {
                "path": "/鄂州市/葛店开发区",
                "bIsDir": true,
                "bIsVisible": true,
                "zorder": 2
            },
            {
                "path": "/鄂州市/鄂城区",
                "bIsDir": true,
                "bIsVisible": true,
                "zorder": 3
            },
            {
                "id":1,
                "path": "/1/鄂城区/H50G040010DOM.tif",
                "bIsDir": false,
                "bIsVisible": true,
                "zorder": 4
            }
        ]
    }

searchRasterFiles

  • 接口功能

    模糊查询图幅文件列表

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"searchRasterFiles",
    	"key":"H50G"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    key string 搜索关键词
  • 返回结果

queryRasterFiles

  • 接口功能

    空间查询图幅列表。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
        "request": "queryRasterFiles",
        "dirPath": ["/240"],
    	"geometry": {
            "coordinates": [
                [
                    [
                        115.834672,
                        39.463208
                    ],
                    [
                        115.834672,
                        40.283106
                    ],
                    [
                        116.735538,
                        40.283106
                    ],
                    [
                        116.735538,
                        39.463208
                    ],
                    [
                        115.834672,
                        39.463208
                    ]
                ]
            ],
            "type": "Polygon"
        },
        "geoSRS": "EPSG:4326",
        "bIsRetPhysicalPath": true,
        "bIsSkipVisibleFalse": false
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    dirPath json array 栅格目录
    geometry geojson 查询范围,若不传,则返回全部记录
    geoSRS 条件 string 查询范围图形空间参考,当geometry不为空时必填
    bIsRetPhysicalPath bool 默认为false,是否返回物理路径
    bIsSkipVisibleFalse bool 默认为false,是否跳过不可见图幅
  • 返回结果

    {
        "resultcode": "success",
        "result": [
            {
                "bandCount": "3",
                "filePath": "E:/Work/数据/影像数据/北京市-分区/昌平区/昌平区_卫图_Level_13.tif",
                "height": 3856,
                "id": "1",
                "rect": "115.83812714,40.03520966,116.50005341,40.39157867",
                "resolution_x": 0.000171661376953125,
                "resolution_y": -0.000171661376953125,
                "srs": "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433],AUTHORITY[\"EPSG\",\"4326\"]]",
                "width": 2076
            },
            {
                "bandCount": "3",
                "filePath": "E:/Work/数据/影像数据/北京市-分区/大兴区/大兴区_卫图_Level_13.tif",
                "height": 2981,
                "id": "2",
                "rect": "116.20943069,39.44143295,116.72115326,39.83058929",
                "resolution_x": 0.000171661376953125,
                "resolution_y": -0.000171661376953125,
                "srs": "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433],AUTHORITY[\"EPSG\",\"4326\"]]",
                "width": 2267
            }
        ]
    }

getLogicalPath

  • 接口功能

    通过id获取逻辑路径。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"getLogicalPath",
    	"id":"1",
    	"bIsDir":true
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    id int 图幅或栅格目录id
    bIsDir bool 是否为栅格目录
  • 返回结果

    • 正确

      • 通过图幅id

        {
            "resultcode": "success",
            "result": {
                "path": "/1/华容区/H50G034012DOM.tif"
            }
        }
      • 通过栅格目录id

        {
            "resultcode": "success",
            "result": {
                "path": "/1/华容区"
            }
        }
    • 错误

getPhysicalPath

  • 接口功能

    通过id或逻辑路径获取物理路径。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    • 通过图幅或栅格目录id
    {
    	"request":"getPhysicalPath",
    	"id":"2",
    	"bIsDir":true
    }
    • 通过图幅逻辑路径

      {
      	"request": "getPhysicalPath",
          "path": "/1/华容区/H50G034012DOM.tif",
          "bIsDir": false
      }
    • 通过栅格目录逻辑路径

      {
      	"request": "getPhysicalPath",
          "path": "/1/华容区",
          "bIsDir": true
      }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    id 条件 int 图幅或栅格目录id,与参数path二选一,且必选
    path 条件 string 图幅或栅格目录逻辑路径,与参数id二选一,且必选
    bIsDir bool 是否为栅格目录
  • 返回结果

    • 通过图幅逻辑路径
    {
        "resultcode": "success",
        "result": {
            "path": "E:/Work/数据/影像数据/北京市-分区/大兴区/大兴区_卫图_Level_13.tif"
        }
    }
    • 通过栅格目录逻辑路径
    {
        "resultcode": "success",
        "result": {
            "path": "E:/Work/数据/影像数据/北京市-分区/昌平区"
        }
    }

getRasterFileMetaInfo

  • 接口功能

    获取图幅元数据。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request": "getRasterFileMetaInfo",
    	"filePath": "/1/华容区/H50G034014DOM.tif"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    filePath string 数据路径
  • 返回结果

    • 正确

    • 错误

getRasterCatalogMetaInfo

  • 接口功能

    获取栅格目录元数据。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"getRasterCatalogMetaInfo",
    	"dirPath":"/1"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理请求
    dirPath string 路径
  • 返回结果

    {
        "resultcode": "success",
    	"result": {
            "Count": 5,
            "Extent": "115.83800000,39.44140000,116.72100000,40.39160000",
            "ID": "338",
            "SRS": "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]]",
            "Title": "/dx",
            "Visible": 1,
            "Zorder": 0
        }
    }

createRasterCatalogThumb

  • 接口功能

    生成栅格数据集下所有图幅png格式的缩略图。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"createRasterCatalogThumb",
    	"dirPath":"/1",
    	"taskId": "1",
    	"width":500,
    	"height":0,
    	"bIsSkipExist":false
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    taskId int 任务id
    dirPath string 目录路径
    width int 宽度
    height int 高度,默认为0,若height=0则高度按比例自适应
    bIsSkipExist bool 是否跳过已存在,若为true且存在时则直接返回,否则重新生成
  • 返回结果

getRasterFileThumb

  • 接口功能

    获取图幅缩略图。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"getRasterFileThumb",
    	"filePath":"/1/华容区/H50G034014DOM.tif"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    filePath string 图幅路径
  • 返回结果

createPreviewThumb

  • 接口功能

    生成栅格数据集预览图。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"createPreviewThumb",
        "taskId":"1",
    	"dirPath":"/1",
        "width":1024,
        "height":0,
        "bIsSkipExist":false
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    taskId string 任务id
    dirPath string 目录路径
    width int 宽度,建议最小值为1024
    height int 高度,默认为0,若height=0则高度按比例自适应
    bIsSkipExist bool 是否跳过已存在,若为true且存在时则直接返回,否则重新生成
  • 返回结果

getPreviewThumb

  • 接口功能

    获取栅格数据集预览图。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request":"getPreviewThumb",
    	"dirPath":"/1"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    dirPath string 路径
  • 返回结果

getRasterCatalogClipSize

  • 接口功能

    获取栅格目数据集裁剪文件大小。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
    	"request": "getRasterCatalogClipSize",
    	"dirPath": "/1",
    	"bIsPhysicalPath": false,
    	"scale":10000,
    	"geometry": {
    		"type": "Polygon",
    		"coordinates": [
    			[
    				[
    					114.632,
    					30.2456
    				],
    				[
    					114.632,
    					30.4455
    				],
    				[
    					114.918,
    					30.4455
    				],
    				[
    					114.918,
    					30.2456
    				],
    				[
    					114.632,
    					30.2456
    				]
    			]
    		]
    	},
    	"geoSRS":"EPSG:4326"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    dirPath string 目录路径
    bIsPhysicalPath bool dirPath是否为物理路径,若为否则dirPath必须为栅格数据集逻辑路径
    resolution double 分辨率,单位与outSRS保持一致
    scale int 比例尺,大于或等于1的数,resolution为空时生效,若scale也为空则采用第1幅影像的分辨率
    geometry geojson 裁剪图形
    geoSRS string 裁剪图形空间参考
  • 返回结果

createRasterCatalogClip

  • 接口功能

    生成栅格数据集裁剪影像。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    • 目录裁剪
    {
        "request": "createRasterCatalogClip",
        "taskId": "1",
        "dirPath": ["/1","/2"],
        "bIsPhysicalPath": false,
        "sample_type": "0",
        "downloadpath": "/home/kanq/output",
        "outputName": "output"
        "scale":"1000",
        "skipVisibleFalse": "true",
        "geometry": {
            "type": "Polygon",
            "coordinates": [
                [
                    [
                        114.632,
                        30.2456
                    ],
                    [
                        114.632,
                        30.4455
                    ],
                    [
                        114.918,
                        30.4455
                    ],
                    [
                        114.918,
                        30.2456
                    ],
                    [
                        114.632,
                        30.2456
                    ]
                ]
            ]
        },
        "geoSRS": "EPSG:4326",
        "outSRS": "EPSG:4326"
    }
    • 图幅裁剪
    {
        "request": "createRasterCatalogClip",
        "taskId": "1",
        "filePath": "/1/ABC.tif",
        "bIsPhysicalPath": "false",
        "sample_type": "0",
        "downloadpath": "/home/kanq/output",
        "outputName": "output",
        "skipVisibleFalse": "true",
        "geometry": {
            "type": "Polygon",
            "coordinates": [
                [
                    [
                        114.632,
                        30.2456
                    ],
                    [
                        114.632,
                        30.4455
                    ],
                    [
                        114.918,
                        30.4455
                    ],
                    [
                        114.918,
                        30.2456
                    ],
                    [
                        114.632,
                        30.2456
                    ]
                ]
            ]
        },
        "geoSRS": "EPSG:4326",
        "outSRS": "EPSG:4326"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    taskId string 任务id
    dirPath 条件 json array 目录路径,filePath与dirPath参数二选一。
    filePath 条件 string 图幅路径,filePath与dirPath参数二选一。
    bIsPhysicalPath bool dirPath或filePath是否为物理路径,若为否则dirPath必须为栅格数据集逻辑路径
    sample_type int 重采样方法,选项:0-最邻近,1-双线性插值,2-三次卷积插值。如果采用原分辨率裁剪,则nResMethod始终按0值处理
    downloadpath string 输出文件夹绝对路径,区分大小写
    outputName string 输出文件名,不带后缀
    resolution double 分辨率,单位与outSRS保持一致
    scale double 比例尺,大于或等于1的数,resolution为空时生效,若scale也为空则采用第1幅影像的分辨率
    skipVisibleFalse bool 是否跳过不可见图幅
    geometry geojson 裁剪图形
    geoSRS string 裁剪图形空间参考
    outSRS string 输出影像空间参考,若为空则采用第1幅影像的空间参考。如果输出空间参考与原始影像不一致会重投影导致速度慢
  • 返回结果

getRasterCatalogClip

  • 接口功能

    获取裁剪影像。

  • 请求地址

    127.0.0.1:8699/KQGis/rest/services/RasterCatalogServer/proc
  • 请求json示例

    {
        "request": "getRasterCatalogClip",
        "taskId": "1"
    }
  • 请求参数说明

    名称 必填 类型 说明
    request string 处理方法
    taskId string 任务id
  • 返回结果

VectorCatalogService-矢量目录服务(内测中,暂不对外)

通用

  • 请求地址

http://127.0.0.1:8699/KQGis/rest/services/VectorCatalogServer/proc

  • 返回通用项
"resultcode": "success",   	//返回结果代码,”success”表示成功,”error”表示失败
"message":""		      	//错误消息,resultcode为“error”时存在。
  • 参数要求

请求参数json编码要求是utf8格式。

空间数据集元数据信息获取

  • 接口功能

    获取要素数据集元数据信息。

  • 请求参数 json

{
    "request": "VectorCatalog",
    "command":"FieldsList",
    "dataset": {
	    "dataset_id": "1226",
            "type": "ShapeFile",
            "dbtype": "",
            "filepath": "D:/KQGIS/湖北shp/RESA.shp",
            "server": "",
            "instance": "",
            "database": "",
            "username": "",
            "password": "",
            "tablename": "",
            "version": ""
        }
}
  • 参数说明

dataset :JsonObject对象,每一个Json描述一个数据源的各项参数,内容为:

参数 说明
type 数据源类型,字符串,支持以下类型Shapefile、KqAccess、KqSqlServer、KqOracle、KqDM、KqKingbase、KqPostgreSql、KqHighGo、KqGaussDB、KqKingbaseES、KqUXDB、KqMySql、KqOpenFileGdb、KqSqlite、KqKingbaseV8、KqMongoDB、ArcAccess、ArcGdb、ArcOracle、ArcSqlServer、ArcPg
filepath 文件路径,当数据源为文件或文件目录时有效,数据源类型为Shapefile、KqAccess、KqGdb、KqGdm、ArcAccess、ArcGdb为文件型数据源。
server 数据库服务器地址(IP或机器名)
instance 数据库实例名或端口
database 数据库名称
username 数据源用户名
password 数据库密码(base64编码)
tablename 表名,如果是数据库,则为表名,如果是文件类型,则为文件名称,不带路径。如果没有设置,则会根据filepath获取文件名称,如filepath 是文件的话。例如"filepath": "D:/KQGIS/湖北shp/BOUA.shp", 则tablename为BOUA。
version Arcgis数据类型下有效
dbtype 数据连接的类型,在OGR和arcgis数据引擎下有效,内部处理了,可不填写
dataset_id 未使用,输出返回到json中
  • 返回值json

    {
        "bbox": {
            "max_x": 115.95469928500007,
            "max_y": 29.228207735000066,
            "min_x": 108.89815430500005,
            "min_y": 32.851225405000427
        },
        "crs": {
            "crsid": "EPSG:4490",
            "proj4": "+proj=longlat +ellps=GRS80 +no_defs ",
            "show_name": "GCS_China_Geodetic_Coordinate_System_2000",
            "wkt": "GEOGCS[\"GRS 1980(IUGG, 1980)\",DATUM[\"unknown\",SPHEROID[\"GRS80\",6378137,298.257222101]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433]]"
        },
        "dataset_id": "1226",
        "featurecount": 82,
        "featuretabletype": "Polygon",
        "field_list": [
            {
                "aliasName": "FID",
                "cache": false,
                "comment": "",
                "defaultVal": "",
                "editable": false,
                "geofield": false,
                "index": "none",
                "length": 10,
                "name": "FID",
                "null": "not null",
                "precision": 0,
                "systemfield": true,
                "type": "oid"
            },
            {
                "aliasName": "GEOMETRY",
                "cache": false,
                "comment": "",
                "defaultVal": "",
                "editable": false,
                "geofield": true,
                "index": "none",
                "length": 10,
                "name": "GEOMETRY",
                "null": "not null",
                "precision": 0,
                "systemfield": true,
                "type": "geometry"
            },
            {
                "aliasName": "GB",
                "cache": false,
                "comment": "",
                "defaultVal": "",
                "editable": true,
                "geofield": false,
                "index": "none",
                "length": 9,
                "name": "GB",
                "null": "null",
                "precision": 0,
                "systemfield": false,
                "type": "integer"
            },
            {
                "aliasName": "SHAPE_Leng",
                "cache": false,
                "comment": "",
                "defaultVal": "",
                "editable": true,
                "geofield": false,
                "index": "none",
                "length": 18,
                "name": "SHAPE_Leng",
                "null": "null",
                "precision": 4,
                "systemfield": false,
                "type": "double"
            },
            {
                "aliasName": "SHAPE_Area",
                "cache": false,
                "comment": "",
                "defaultVal": "",
                "editable": true,
                "geofield": false,
                "index": "none",
                "length": 18,
                "name": "SHAPE_Area",
                "null": "null",
                "precision": 4,
                "systemfield": false,
                "type": "double"
            }
        ],
        "geometrytype": "Polygon",
        "indexInfo": {
            "indexCount": 0,
            "indexs": [
                
            ]
        },
        "name": "RESA",
        "resultcode": "success"
    }

部分说明

要素表类型

enum FeatureTableType
  {
    FeatureTableUnknown,			// 未知
    FeatureTablePoint,				// 点
    FeatureTableMultiPoint,			// 多点
    FeatureTablePolyline,			// 线
    FeatureTablePolygon,			// 面
    FeatureTableAnnotation			// 注记
};

featuretabletype 值对应FeatureTableType 的枚举,去除 FeatureTable前缀,例如Point

几何类型对应

enum GeoType
  {
    GeoUnknown = 0,       //!< 未知
    GeoEnvelope,         //!< 矩形
    GeoPoint,          //!< 点
    GeoLine,           //!< 线段
    GeoLineString,        //!< 折线
    GeoCurve,          //!< 曲线
    GeoBezier,          //!< 贝塞尔曲线
    GeoEllipticArc,       //!< 椭圆弧
    GeoPath,           //!< 路径
    GeoRing,           //!< 环
    GeoMultiPoint,        //!< 多点
    GeoPolyline,         //!< 多线段
    GeoSimplePolygon,
    GeoPolygon,         //!< 多边形
    GeoBag,           //!< 图形包
    GeoArc           //!< 圆弧
};

geometrytype 值对应GeoType的枚举,去除 Geo前缀,例如Point

字段类型

enum FieldType
    {
        FT_SmallInteger =  0,      ///< 短整
        FT_Integer = 1,            ///< 整型
        FT_Single = 2,             ///< 单精度
        FT_Double = 3,             ///< 双精度
        FT_String = 4,             ///< 字符串
        FT_Date = 5,               ///< 日期
        FT_Oid = 6,                ///< OID
        FT_Geo = 7,                ///< 图形字段
        FT_Blob = 8,                ///< Blob
        FT_BigInteger = 9      ///< 长整
};

type 值对应FieldType的枚举,去除 FT_前缀,转成小写例如integer

  • 示例
{
    "bbox": {
        "max_x": 115.95469928500007,
        "max_y": 29.228207735000066,
        "min_x": 108.89815430500005,
        "min_y": 32.851225405000427
    },
    "crs": {
        "crsid": "EPSG:4490",
        "proj4": "+proj=longlat +ellps=GRS80 +no_defs ",
        "show_name": "GCS_China_Geodetic_Coordinate_System_2000",
        "wkt": "GEOGCS[\"GRS 1980(IUGG, 1980)\",DATUM[\"unknown\",SPHEROID[\"GRS80\",6378137,298.257222101]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433]]"
    },
    "dataset_id": "1226",
    "featurecount": 82,
    "featuretabletype": "Polygon",
    "field_list": [
        {
            "aliasName": "FID",
            "cache": false,
            "comment": "",
            "defaultVal": "",
            "editable": false,
            "geofield": false,
            "index": "none",
            "length": 10,
            "name": "FID",
            "null": "not null",
            "precision": 0,
            "systemfield": true,
            "type": "oid"
        },
        {
            "aliasName": "GEOMETRY",
            "cache": false,
            "comment": "",
            "defaultVal": "",
            "editable": false,
            "geofield": true,
            "index": "none",
            "length": 10,
            "name": "GEOMETRY",
            "null": "not null",
            "precision": 0,
            "systemfield": true,
            "type": "geometry"
        },
        {
            "aliasName": "GB",
            "cache": false,
            "comment": "",
            "defaultVal": "",
            "editable": true,
            "geofield": false,
            "index": "none",
            "length": 9,
            "name": "GB",
            "null": "null",
            "precision": 0,
            "systemfield": false,
            "type": "integer"
        },
        {
            "aliasName": "SHAPE_Leng",
            "cache": false,
            "comment": "",
            "defaultVal": "",
            "editable": true,
            "geofield": false,
            "index": "none",
            "length": 18,
            "name": "SHAPE_Leng",
            "null": "null",
            "precision": 4,
            "systemfield": false,
            "type": "double"
        },
        {
            "aliasName": "SHAPE_Area",
            "cache": false,
            "comment": "",
            "defaultVal": "",
            "editable": true,
            "geofield": false,
            "index": "none",
            "length": 18,
            "name": "SHAPE_Area",
            "null": "null",
            "precision": 4,
            "systemfield": false,
            "type": "double"
        }
    ],
    "geometrytype": "Polygon",
    "indexInfo": {
        "indexCount": 0,
        "indexs": [
            
        ]
    },
    "name": "RESA",
    "resultcode": "success"
}

空间数据集集合元数据信息获取

  • 接口功能说明

    多个数据集元数据查询接口

  • 请求参数 json

{
    "request": "VectorCatalog",
    "command":"FieldsLists",
    "dataset_list": [{
	    "dataset_id": "1222",
            "type": "ShapeFile",
            "dbtype": "",
            "filepath": "D:/KQGIS/湖北shp/RESA.shp",
            "server": "",
            "instance": "",
            "database": "",
            "username": "",
            "password": "",
            "tablename": "RESA",
            "version": ""
        },
	{
            "type": "ShapeFile",
            "dbtype": "",
            "filepath": "D:/KQGIS/湖北shp/BOUA.shp",
            "server": "",
            "instance": "",
            "database": "",
            "username": "",
            "password": "",
            "tablename": "",
            "version": ""
        }]
}
  • 参数说明

dataset_list:JsonArray对象,包含多个数据源的各项参数,参考上章节中的dataset信息。

  • 返回值json
{
    "dataset_list": [
        {
            "bbox": {
                "max_x": 115.95469928500007,
                "max_y": 29.228207735000066,
                "min_x": 108.89815430500005,
                "min_y": 32.851225405000427
            },
            "crs": {
                "crsid": "EPSG:4490",
                "proj4": "+proj=longlat +ellps=GRS80 +no_defs ",
                "show_name": "GCS_China_Geodetic_Coordinate_System_2000",
                "wkt": "GEOGCS[\"GRS 1980(IUGG, 1980)\",DATUM[\"unknown\",SPHEROID[\"GRS80\",6378137,298.257222101]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433]]"
            },
            "dataset_id": "1222",
            "featurecount": 82,
            "featuretabletype": "Polygon",
            "field_list": [
                {
                    "geofield": false,
                    "systemfield": true,
                    "aliasName": "FID",
                    "cache": false,
                    "comment": "",
                    "defaultVal": "",
                    "editable": false,
                    "index": "none",
                    "length": 10,
                    "name": "FID",
                    "null": "not null",
                    "precision": 0,
                    "type": "oid"
                },
                {
                    "geofield": true,
                    "systemfield": true,
                    "aliasName": "GEOMETRY",
                    "cache": false,
                    "comment": "",
                    "defaultVal": "",
                    "editable": false,
                    "index": "none",
                    "length": 10,
                    "name": "GEOMETRY",
                    "null": "not null",
                    "precision": 0,
                    "type": "geometry"
                },
                {
                    "geofield": false,
                    "systemfield": false,
                    "aliasName": "GB",
                    "cache": false,
                    "comment": "",
                    "defaultVal": "",
                    "editable": true,
                    "index": "none",
                    "length": 9,
                    "name": "GB",
                    "null": "null",
                    "precision": 0,
                    "type": "integer"
                },
                {
                    "geofield": false,
                    "systemfield": false,
                    "aliasName": "SHAPE_Leng",
                    "cache": false,
                    "comment": "",
                    "defaultVal": "",
                    "editable": true,
                    "index": "none",
                    "length": 18,
                    "name": "SHAPE_Leng",
                    "null": "null",
                    "precision": 4,
                    "type": "double"
                },
                {
                    "geofield": false,
                    "systemfield": false,
                    "aliasName": "SHAPE_Area",
                    "cache": false,
                    "comment": "",
                    "defaultVal": "",
                    "editable": true,
                    "index": "none",
                    "length": 18,
                    "name": "SHAPE_Area",
                    "null": "null",
                    "precision": 4,
                    "type": "double"
                }
            ],
            "geometrytype": "Polygon",
            "indexInfo": {
                "indexCount": 0,
                "indexs": [
                    
                ]
            },
            "name": "RESA",
            "resultcode": "success"
        },
        {
            "bbox": {
                "max_x": 116.13286450000055,
                "max_y": 29.03276891000014,
                "min_x": 108.36254510500054,
                "min_y": 33.272876110000205
            },
            "crs": {
                "crsid": "EPSG:4490",
                "proj4": "+proj=longlat +ellps=GRS80 +no_defs ",
                "show_name": "GCS_China_Geodetic_Coordinate_System_2000",
                "wkt": "GEOGCS[\"GRS 1980(IUGG, 1980)\",DATUM[\"unknown\",SPHEROID[\"GRS80\",6378137,298.257222101]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433]]"
            },
            "dataset_id": "",
            "featurecount": 110,
            "featuretabletype": "Polygon",
            "field_list": [
                {
                    "geofield": false,
                    "systemfield": true,
                    "aliasName": "FID",
                    "cache": false,
                    "comment": "",
                    "defaultVal": "",
                    "editable": false,
                    "index": "none",
                    "length": 10,
                    "name": "FID",
                    "null": "not null",
                    "precision": 0,
                    "type": "oid"
                },
                {
                    "geofield": true,
                    "systemfield": true,
                    "aliasName": "GEOMETRY",
                    "cache": false,
                    "comment": "",
                    "defaultVal": "",
                    "editable": false,
                    "index": "none",
                    "length": 10,
                    "name": "GEOMETRY",
                    "null": "not null",
                    "precision": 0,
                    "type": "geometry"
                },
                {
                    "geofield": false,
                    "systemfield": false,
                    "aliasName": "PAC",
                    "cache": false,
                    "comment": "",
                    "defaultVal": "",
                    "editable": true,
                    "index": "none",
                    "length": 9,
                    "name": "PAC",
                    "null": "null",
                    "precision": 0,
                    "type": "integer"
                },
                {
                    "geofield": false,
                    "systemfield": false,
                    "aliasName": "NAME",
                    "cache": false,
                    "comment": "",
                    "defaultVal": "",
                    "editable": true,
                    "index": "none",
                    "length": 60,
                    "name": "NAME",
                    "null": "null",
                    "precision": 0,
                    "type": "string"
                },
                {
                    "geofield": false,
                    "systemfield": false,
                    "aliasName": "SHAPE_Leng",
                    "cache": false,
                    "comment": "",
                    "defaultVal": "",
                    "editable": true,
                    "index": "none",
                    "length": 18,
                    "name": "SHAPE_Leng",
                    "null": "null",
                    "precision": 4,
                    "type": "double"
                },
                {
                    "geofield": false,
                    "systemfield": false,
                    "aliasName": "SHAPE_Area",
                    "cache": false,
                    "comment": "",
                    "defaultVal": "",
                    "editable": true,
                    "index": "none",
                    "length": 18,
                    "name": "SHAPE_Area",
                    "null": "null",
                    "precision": 4,
                    "type": "double"
                }
            ],
            "geometrytype": "Polygon",
            "indexInfo": {
                "indexCount": 0,
                "indexs": [
                    
                ]
            },
            "name": "BOUA",
            "resultcode": "success"
        }
    ],
    "resultcode": "success"
}

空间矢量数据集查询

  • 接口功能说明

多个数据集查询接口

  • 请求参数
{
    "request": "VectorCatalog",
    "command": "QueryFeatureTables",
    "dataset_list": [
        {
            "dataset_id": "大幅に",
            "type": "ShapeFile",
            "dbtype": "",
            "filepath": "D:/KQGIS/湖北shp/",
            "server": "",
            "instance": "",
            "database": "",
            "username": "",
            "password": "",
            "tablename": "RESA",
            "version": "",
            "filter": {
                "where": "",
                "geometry": "%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D",
                "subfields": "GB",
                "GroupByClause": "",
                "OrderByClause": "",
                "SpatialRel": "Intersects",
                "query_geo": true
            }
        },
        {
            "dataset_id": "1222",
            "type": "ShapeFile",
            "dbtype": "",
            "filepath": "D:/KQGIS/湖北shp/BOUA.shp",
            "server": "",
            "instance": "",
            "database": "",
            "username": "",
            "password": "",
            "tablename": "",
            "version": "",
            "filter": {
                "where": "PAC%3D420804 or PAC%3D420802",
                "geometry": "%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D",
                "subfields": "PAC,NAME",
                "GroupByClause": "",
                "OrderByClause": "",
                "SpatialRel": "Intersects"
            }
        }
    ],
    "query_define": {
        "geoSRS": "EPSG:4490",
        "geometry": "%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D"
    }
}
  • 参数说明

dataset_list:JsonArray对象,包含多个数据源的各项参数,参考上章节中的dataset信息。

参数 说明
type 数据源类型,字符串,支持以下类型Shapefile、KqAccess、KqSqlServer、KqOracle、KqDM、KqKingbase、KqPostgreSql、KqHighGo、KqGaussDB、KqKingbaseES、KqUXDB、KqMySql、KqOpenFileGdb、KqSqlite、KqKingbaseV8、KqMongoDB、ArcAccess、ArcGdb、ArcOracle、ArcSqlServer、ArcPg
filepath 文件路径,当数据源为文件或文件目录时有效,数据源类型为Shapefile、KqAccess、KqGdb、KqGdm、ArcAccess、ArcGdb为文件型数据源。
server 数据库服务器地址(IP或机器名)
instance 数据库实例名或端口
database 数据库名称
username 数据源用户名
password 数据库密码(base64编码)
tablename 表名,如果是数据库,则为表名,如果是文件类型,则为文件名称,不带路径。如果没有设置,则会根据filepath获取文件名称,如filepath 是文件的话。例如"filepath": "D:/KQGIS/湖北shp/BOUA.shp", 则tablename为BOUA。
version Arcgis数据类型下有效
dbtype 数据连接的类型,在OGR和arcgis数据引擎下有效,内部处理了,可不填写
filter 查询过滤条件
dataset_id 未使用,输出返回到json中

Filter 参数说明

查询过滤条件

参数 说明
where 查询条件,使用url编码之后的字符串,如PAC%3D420804 or PAC%3D420802内部解码成PAC=420804 or PAC=420802
geometry 查询几何对象,geojson格式字符串,此参数如果在设置了query_define 中的geometry 参数后,会无效,会被覆盖。 例如:url编码后的字符串如%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D内部会进行解码{ "type": "Polygon", "coordinates": [ [ [ 111.989792031851962, 31.427141945448305 ], [ 111.556656081144411, 30.94937986648603 ], [ 112.147296013927445, 30.639622035070929 ], [ 112.562056500059526, 30.999256127476599 ], [ 111.989792031851962, 31.427141945448305 ] ] ] }
subfields 查询返回的字段,以逗号 隔开,例如:PAC,NAME
GroupByClause 分组条件,sdk底层支持,暂未使用
OrderByClause 排序条件,sdk底层支持,暂未使用
SpatialRel 查询空间判断过滤类型,对应枚举 typedef enum KOSpatialRelEnum
{
SpatialRelUndefined = 0,
SpatialRelIntersects = 1,
SpatialRelEnvelopeIntersects = 2,
SpatialRelTouches = 3,
SpatialRelOverlaps = 4,
SpatialRelEdgeOverlaps = 5,
SpatialRelCrosses = 6,
SpatialRelWithin = 7,
SpatialRelFullWithin = 8,
SpatialRelContains = 9,
SpatialRelFullContains = 10,
SpatialRelDisjoint = 11,
SpatialRelEqual = 12,
SpatialRelIndexIntersects = 13
}KOSpatialRelEnum; 参数值为去除前缀SpatialRel之后的字符串,例如SpatialRelIntersects 对应Intersects
query_geo 是否返回几何信息,默认未false

query_define

空间查询条件

参数 说明
geoSRS 查询几何空间参考,支持EPSG、WKT、proj4字符串参数,例如epsg类型 EPSG:4490
geometry 查询几何对象,geojson格式字符串,此参数优先级高于Filter 中的geomerty参数。例如:url编码后的字符串如%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D内部会进行解码{ "type": "Polygon", "coordinates": [ [ [ 111.989792031851962, 31.427141945448305 ], [ 111.556656081144411, 30.94937986648603 ], [ 112.147296013927445, 30.639622035070929 ], [ 112.562056500059526, 30.999256127476599 ], [ 111.989792031851962, 31.427141945448305 ] ] ] }
subfields 查询返回的字段,以逗号 隔开,例如:PAC,NAME
  • 返回值json
{"dataset_list":[{"attr_list":[310200,310200],"count":2,"dataset_id":"大幅に","dataset_name":"RESA","feature_id_list":[35,37],"field_list":["GB"],"geo_list":[{"coordinates":[[[[111.78967278,30.84614169],[111.79628465,30.843235029999999],[111.79807155,30.849305820000001],[111.8129916,30.850451700000001],[111.81359241,30.847497870000002],[111.81496258,30.84683098],[111.80741612999999,30.834471659999998],[111.80103532,30.837344869999999],[111.79776918,30.832096060000001],[111.80397103,30.828264170000001],[111.80128043000001,30.82376661],[111.81004742,30.819447409999999],[111.80618068,30.813315419999999],[111.78942787,30.820099679999998],[111.77979179,30.812189839999998],[111.77255735999999,30.81337864],[111.76365894,30.805214960000001],[111.75908249,30.810372640000001],[111.77623976,30.824285140000001],[111.76508022,30.841098649999999],[111.77142877999999,30.843670710000001],[111.7767881,30.835220589999999],[111.77675825,30.831257099999998],[111.78582519,30.832486240000001],[111.79007833,30.83591221],[111.78961875,30.839481849999999],[111.78340813,30.838514140000001],[111.78029168,30.841286279999998],[111.78496239,30.846169669999998],[111.77689808,30.850832090000001],[111.78114202,30.856001030000002],[111.79259364000001,30.849756230000001],[111.78967278,30.84614169]]]],"type":"multipolygon"},{"coordinates":[[[[112.19223384999999,31.071284729999999],[112.19151757,31.061021520000001],[112.19912547,31.061057349999999],[112.19899596,31.069324819999999],[112.2051262,31.070202250000001],[112.20608291000001,31.064793890000001],[112.21342353999999,31.06488298],[112.2165217,31.048787099999998],[112.23169775,31.051854670000001],[112.24106835000001,31.05175242],[112.24100796,31.044468030000001],[112.22747929000001,31.046101069999999],[112.22776536000001,31.04087015],[112.23895210000001,31.037011400000001],[112.24266824,31.023919509999999],[112.24132499,31.021703309999999],[112.24433274,31.01845286],[112.2436709,31.01655907],[112.238283,31.018754770000001],[112.23325561999999,31.014986969999999],[112.22766783,31.015281030000001],[112.22505216,31.00692557],[112.21916988,31.005111549999999],[112.20857334999999,31.009254389999999],[112.20965009,31.027845299999999],[112.21342572,31.02934866],[112.2109382,31.038206079999998],[112.2070775,31.03807634],[112.19954592000001,31.012233760000001],[112.20551383999999,30.996836940000001],[112.20425962,30.993124699999999],[112.20947775,30.986300400000001],[112.20467013,30.984357249999999],[112.19995002,30.97610194],[112.19093708,30.975311269999999],[112.19117075,30.954450600000001],[112.18486102999999,30.95438944],[112.18444143000001,30.948612140000002],[112.17933257,30.949590610000001],[112.17939238,30.96278495],[112.18804962999999,30.96290188],[112.18653198,30.97244826],[112.18222654,30.97296639],[112.18125213,30.989567260000001],[112.18921105,30.987661299999999],[112.18924278999999,30.994737730000001],[112.19505955,30.995425789999999],[112.19453461000001,31.00263846],[112.18974921,31.005706969999999],[112.18974853,31.005732089999999],[112.19606956,31.009800160000001],[112.19480751,31.018113459999999],[112.18811803,31.017286309999999],[112.18662626,31.026439570000001],[112.19139327000001,31.027450380000001],[112.1836053,31.05291643],[112.19040253999999,31.053546409999999],[112.19170956000001,31.05826154],[112.17926715999999,31.06212335],[112.17685403999999,31.069768360000001],[112.19223384999999,31.071284729999999]]]],"type":"multipolygon"}],"resultcode":"success"},{"attr_list":[420525,"远安县",420881,"钟祥市",420822,"沙洋县",420582,"当阳市",420802,"东宝区",420804,"掇刀区",420624,"南漳县"],"count":7,"dataset_id":"1222","dataset_name":"BOUA","feature_id_list":[7,15,17,19,22,25,101],"field_list":["PAC","NAME"],"geo_list":[],"resultcode":"success"}],"resultcode":"success"}

空间矢量数据集查询

  • 接口功能说明

单个数据集查询接口

  • 请求参数
{    "request": "VectorCatalog",    "command":"QueryFeatureTable",    "dataset": {	    "dataset_id": "大幅に",            "type": "ShapeFile",            "dbtype": "",            "filepath": "D:/KQGIS/湖北shp/",            "server": "",            "instance": "",            "database": "",            "username": "",            "password": "",            "tablename": "RESA",            "version": "",	    "filter":{		    "where": "",		    "geometry": "",		    "subfields":"GB",		    "GroupByClause":"",		    "OrderByClause":"",		    "SpatialRel":"Intersects",		    "query_geo":true	    }        },         "query_define":{		"geoSRS": "EPSG:4490",		"geometry": "%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D"    }}
  • 参数说明

dataset:JsonObject对象,包含多个数据源的各项参数,参考上章节中的dataset信息。

参数 说明
type 数据源类型,字符串,支持以下类型Shapefile、KqAccess、KqSqlServer、KqOracle、KqDM、KqKingbase、KqPostgreSql、KqHighGo、KqGaussDB、KqKingbaseES、KqUXDB、KqMySql、KqOpenFileGdb、KqSqlite、KqKingbaseV8、KqMongoDB、ArcAccess、ArcGdb、ArcOracle、ArcSqlServer、ArcPg
filepath 文件路径,当数据源为文件或文件目录时有效,数据源类型为Shapefile、KqAccess、KqGdb、KqGdm、ArcAccess、ArcGdb为文件型数据源。
server 数据库服务器地址(IP或机器名)
instance 数据库实例名或端口
database 数据库名称
username 数据源用户名
password 数据库密码(base64编码)
tablename 表名,如果是数据库,则为表名,如果是文件类型,则为文件名称,不带路径。如果没有设置,则会根据filepath获取文件名称,如filepath 是文件的话。例如"filepath": "D:/KQGIS/湖北shp/BOUA.shp", 则tablename为BOUA。
version Arcgis数据类型下有效
dbtype 数据连接的类型,在OGR和arcgis数据引擎下有效,内部处理了,可不填写
filter 查询过滤条件
dataset_id 未使用,输出返回到json中

Filter 参数说明

查询过滤条件

参数 说明
where 查询条件,使用url编码之后的字符串,如PAC%3D420804 or PAC%3D420802内部解码成PAC=420804 or PAC=420802
geometry 查询几何对象,geojson格式字符串,此参数如果在设置了query_define 中的geometry 参数后,会无效,会被覆盖。 例如:url编码后的字符串如%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D内部会进行解码{ "type": "Polygon", "coordinates": [ [ [ 111.989792031851962, 31.427141945448305 ], [ 111.556656081144411, 30.94937986648603 ], [ 112.147296013927445, 30.639622035070929 ], [ 112.562056500059526, 30.999256127476599 ], [ 111.989792031851962, 31.427141945448305 ] ] ] }
subfields 查询返回的字段,以逗号 隔开,例如:PAC,NAME
GroupByClause 分组条件,sdk底层支持,暂未使用
OrderByClause 排序条件,sdk底层支持,暂未使用
SpatialRel 查询空间判断过滤类型,
query_geo 是否返回几何信息,默认未false

query_define

空间查询条件

参数 说明
geoSRS 查询几何空间参考,支持EPSG、WKT、proj4字符串参数,例如epsg类型 EPSG:4490
geometry 查询几何对象,geojson格式字符串,此参数优先级高于Filter 中的geomerty参数。例如:url编码后的字符串如%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D内部会进行解码{ "type": "Polygon", "coordinates": [ [ [ 111.989792031851962, 31.427141945448305 ], [ 111.556656081144411, 30.94937986648603 ], [ 112.147296013927445, 30.639622035070929 ], [ 112.562056500059526, 30.999256127476599 ], [ 111.989792031851962, 31.427141945448305 ] ] ] }
subfields 查询返回的字段,以逗号 隔开,例如:PAC,NAME
  • 返回值json
{"attr_list":[310200,310200],"count":2,"dataset_id":"大幅に","dataset_name":"RESA","feature_id_list":[35,37],"field_list":["GB"],"geo_list":[{"coordinates":[[[[111.78967278,30.84614169],[111.79628465,30.843235029999999],[111.79807155,30.849305820000001],[111.8129916,30.850451700000001],[111.81359241,30.847497870000002],[111.81496258,30.84683098],[111.80741612999999,30.834471659999998],[111.80103532,30.837344869999999],[111.79776918,30.832096060000001],[111.80397103,30.828264170000001],[111.80128043000001,30.82376661],[111.81004742,30.819447409999999],[111.80618068,30.813315419999999],[111.78942787,30.820099679999998],[111.77979179,30.812189839999998],[111.77255735999999,30.81337864],[111.76365894,30.805214960000001],[111.75908249,30.810372640000001],[111.77623976,30.824285140000001],[111.76508022,30.841098649999999],[111.77142877999999,30.843670710000001],[111.7767881,30.835220589999999],[111.77675825,30.831257099999998],[111.78582519,30.832486240000001],[111.79007833,30.83591221],[111.78961875,30.839481849999999],[111.78340813,30.838514140000001],[111.78029168,30.841286279999998],[111.78496239,30.846169669999998],[111.77689808,30.850832090000001],[111.78114202,30.856001030000002],[111.79259364000001,30.849756230000001],[111.78967278,30.84614169]]]],"type":"multipolygon"},{"coordinates":[[[[112.19223384999999,31.071284729999999],[112.19151757,31.061021520000001],[112.19912547,31.061057349999999],[112.19899596,31.069324819999999],[112.2051262,31.070202250000001],[112.20608291000001,31.064793890000001],[112.21342353999999,31.06488298],[112.2165217,31.048787099999998],[112.23169775,31.051854670000001],[112.24106835000001,31.05175242],[112.24100796,31.044468030000001],[112.22747929000001,31.046101069999999],[112.22776536000001,31.04087015],[112.23895210000001,31.037011400000001],[112.24266824,31.023919509999999],[112.24132499,31.021703309999999],[112.24433274,31.01845286],[112.2436709,31.01655907],[112.238283,31.018754770000001],[112.23325561999999,31.014986969999999],[112.22766783,31.015281030000001],[112.22505216,31.00692557],[112.21916988,31.005111549999999],[112.20857334999999,31.009254389999999],[112.20965009,31.027845299999999],[112.21342572,31.02934866],[112.2109382,31.038206079999998],[112.2070775,31.03807634],[112.19954592000001,31.012233760000001],[112.20551383999999,30.996836940000001],[112.20425962,30.993124699999999],[112.20947775,30.986300400000001],[112.20467013,30.984357249999999],[112.19995002,30.97610194],[112.19093708,30.975311269999999],[112.19117075,30.954450600000001],[112.18486102999999,30.95438944],[112.18444143000001,30.948612140000002],[112.17933257,30.949590610000001],[112.17939238,30.96278495],[112.18804962999999,30.96290188],[112.18653198,30.97244826],[112.18222654,30.97296639],[112.18125213,30.989567260000001],[112.18921105,30.987661299999999],[112.18924278999999,30.994737730000001],[112.19505955,30.995425789999999],[112.19453461000001,31.00263846],[112.18974921,31.005706969999999],[112.18974853,31.005732089999999],[112.19606956,31.009800160000001],[112.19480751,31.018113459999999],[112.18811803,31.017286309999999],[112.18662626,31.026439570000001],[112.19139327000001,31.027450380000001],[112.1836053,31.05291643],[112.19040253999999,31.053546409999999],[112.19170956000001,31.05826154],[112.17926715999999,31.06212335],[112.17685403999999,31.069768360000001],[112.19223384999999,31.071284729999999]]]],"type":"multipolygon"}],"resultcode":"success"}

矢量数据抽取裁剪

  • 接口功能

单个要素集抽取裁剪

  • 请求参数
{    "request": "VectorCatalog",    "command":"ExtractFeatureClass",    "datasetinfo":{     "srcdataset": {	    "dataset_id": "大幅に",            "type": "ShapeFile",            "dbtype": "",            "filepath": "D:/KQGIS/湖北shp/",            "server": "",            "instance": "",            "database": "",            "username": "",            "password": "",            "tablename": "RESA",            "version": ""        }, 	"desdataset": {	    "dataset_id": "1226",            "type": "ShapeFile",            "dbtype": "",            "filepath": "D:/KQGIS/湖北shp/out/",            "server": "",            "instance": "",            "database": "",            "username": "",            "password": "",            "tablename": "RESA2",            "version": ""        },        "extract_define":{	    "clipGeometry": true,	    "where": "",	    "subfields":"GB",	    "SpatialRel":"Intersects",	    "query_geo":true,	    "geoSRS": "EPSG:4326",	    "geometry": "%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D"	}    }}
  • 参数说明

datasetinfo 数据集连接信息,参考上面数据集连接信息,含义相同,srcdataset 代表源数据集,desdataset 代表目标数据集,目标数据源如果是路径类型,则目录必须存在,否则会失败。如果目标数据集已经存在,对于文件类型,则进行删除覆盖。

extract_define 为抽取参数

参数 说明
where 查询条件,使用url编码之后的字符串,如PAC%3D420804 or PAC%3D420802内部解码成PAC=420804 or PAC=420802
geometry 查询几何对象,geojson格式字符串,此参数如果在设置了query_define 中的geometry 参数后,会无效,会被覆盖。 例如:url编码后的字符串如%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D内部会进行解码{ "type": "Polygon", "coordinates": [ [ [ 111.989792031851962, 31.427141945448305 ], [ 111.556656081144411, 30.94937986648603 ], [ 112.147296013927445, 30.639622035070929 ], [ 112.562056500059526, 30.999256127476599 ], [ 111.989792031851962, 31.427141945448305 ] ] ] }
subfields 查询返回的字段,以逗号 隔开,例如:PAC,NAME
GroupByClause 分组条件,sdk底层支持,暂未使用
OrderByClause 排序条件,sdk底层支持,暂未使用
SpatialRel 查询空间判断过滤类型,对应枚举 typedef enum KOSpatialRelEnum
{
SpatialRelUndefined = 0,
SpatialRelIntersects = 1,
SpatialRelEnvelopeIntersects = 2,
SpatialRelTouches = 3,
SpatialRelOverlaps = 4,
SpatialRelEdgeOverlaps = 5,
SpatialRelCrosses = 6,
SpatialRelWithin = 7,
SpatialRelFullWithin = 8,
SpatialRelContains = 9,
SpatialRelFullContains = 10,
SpatialRelDisjoint = 11,
SpatialRelEqual = 12,
SpatialRelIndexIntersects = 13
}KOSpatialRelEnum; 参数值为去除前缀SpatialRel之后的字符串,例如SpatialRelIntersects 对应Intersects
query_geo 未使用
clipGeometry 是否对要素几何进行裁剪,默认不裁剪false
geoSRS 返回数据集的空间参考,支持EPSG、WKT、proj4字符串参数,例如epsg类型 EPSG:4490
querySRS 查询几何空间参考,支持EPSG、WKT、proj4字符串参数,例如epsg类型 EPSG:4490
  • 返回json
{"count":2,"dataset_id":"1226","dataset_name":"RESA2","resultcode":"success"}

多个矢量数据集抽取裁剪

  • 接口功能

单个要素集抽取裁剪

  • 请求参数
{    "request": "VectorCatalog",    "command":"ExtractFeatureClasss",    "datasetinfos":[{     "srcdataset": {	    "dataset_id": "大幅に",            "type": "ShapeFile",            "dbtype": "",            "filepath": "D:/KQGIS/湖北shp/",            "server": "",            "instance": "",            "database": "",            "username": "",            "password": "",            "tablename": "BOUA",            "version": ""        }, 	"desdataset": {	    "dataset_id": "1226",            "type": "ShapeFile",            "dbtype": "",            "filepath": "D:/KQGIS/湖北shp/out/",            "server": "",            "instance": "",            "database": "",            "username": "",            "password": "",            "tablename": "BOUA2",            "version": ""        },        "extract_define":{	    "clipGeometry": true,	    "where": "",	    "subfields":"",	    "SpatialRel":"Intersects",	    "query_geo":true,	    "geoSRS": "EPSG:4490",	    "geometry": "%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D"	}    },    {     "srcdataset": {	    "dataset_id": "大幅に2",            "type": "ShapeFile",            "dbtype": "",            "filepath": "D:/KQGIS/湖北shp/",            "server": "",            "instance": "",            "database": "",            "username": "",            "password": "",            "tablename": "HYDA",            "version": ""        }, 	"desdataset": {	    "dataset_id": "1227",            "type": "ShapeFile",            "dbtype": "",            "filepath": "D:/KQGIS/湖北shp/out/",            "server": "",            "instance": "",            "database": "",            "username": "",            "password": "",            "tablename": "HYDA2",            "version": ""        },        "extract_define":{	    "clipGeometry": true,	    "where": "",	    "subfields":"",	    "SpatialRel":"Intersects",	    "query_geo":true,	    "geoSRS": "EPSG:4490",	    "geometry": "%7B%20%22type%22%3A%20%22Polygon%22%2C%20%22coordinates%22%3A%20%5B%20%5B%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%2C%20%5B%20111.556656081144411%2C%2030.94937986648603%20%5D%2C%20%5B%20112.147296013927445%2C%2030.639622035070929%20%5D%2C%20%5B%20112.562056500059526%2C%2030.999256127476599%20%5D%2C%20%5B%20111.989792031851962%2C%2031.427141945448305%20%5D%20%5D%20%5D%20%7D"	}    }],    "maxthreads":2}
  • 参数说明

datasetinfos为数组对象,元素类型为单个矢量数据抽取的参数,可参考单个要素集抽取裁剪 参数说明部分。

maxthreads 为并行线程数量,默认为2个,如果设置大于需要裁剪的要素集数量,则取要素集数量值。

  • 返回json
{"dataset_list":[{"count":7,"dataset_id":"1226","dataset_name":"BOUA2","resultcode":"success"},{"count":20,"dataset_id":"1227","dataset_name":"HYDA2","resultcode":"success"}],"resultcode":"success"}

GeoProcessingService 地理处理服务(内测中,暂不对外)

通用

  • 请求地址

http://127.0.0.1:8699/KQGis/rest/services/GPServer/proc

  • 返回通用项
"resultcode": "success",   	//返回结果代码,”success”表示成功,”error”表示失败
"message":""		      	//错误消息,resultcode为“error”时存在。
  • 参数要求

请求参数json编码要求是utf8格式。

获取所有发布的地理处理服务算子列表

  • 请求参数

请求参数 json

{
    "request": "GeoProcessingService",
    "command":"modelList"
}
  • 参数说明

  • 返回值json
{"result":{"extend":[{"Name":"serverPublish","description":"","displayName":"服务发布模型集合","id":"MyToolboxes:serverPublish","treeNodesList":[{"displayName":"cls","nodeId":"PrIfcQ","nodeName":"cls","nodeType":"Toolset","toolsetId":""},{"displayName":"xc","nodeId":"H0SV99","nodeName":"xc","nodeType":"Toolset","toolsetId":""},{"displayName":"xc","nodeId":"KQGPModel:xc","nodeName":"xc","nodeType":"Model","toolsetId":"H0SV99"},{"displayName":"cls","nodeId":"KQGPModel:cls","nodeName":"cls","nodeType":"Model","toolsetId":"PrIfcQ"},{"displayName":"cls","nodeId":"KQGPModel:cls","nodeName":"cls","nodeType":"Model","toolsetId":"PrIfcQ"},{"displayName":"xc","nodeId":"KQGPModel:xc","nodeName":"xc","nodeType":"Model","toolsetId":"H0SV99"}]},{"Name":"test","description":"","displayName":"cesgh","id":"MyToolboxes:test","treeNodesList":[{"displayName":"cls","nodeId":"KQGPModel:cls","nodeName":"cls","nodeType":"Model","toolsetId":""},{"displayName":"乘法计算","nodeId":"KQGPToolFile:KQGPToolCalcMultiplication","nodeName":"乘法计算","nodeType":"Tool","toolsetId":""},{"displayName":"减法计算","nodeId":"KQGPToolFile:KQGPToolCalcSubtraction","nodeName":"减法计算","nodeType":"Tool","toolsetId":""},{"displayName":"xc","nodeId":"KQGPModel:xc","nodeName":"xc","nodeType":"Model","toolsetId":""}]}],"system":[{"Name":"Data transform","description":"","displayName":"数据转换","id":"SystemToolboxs:Data transform","treeNodesList":[{"displayName":"矢栅互转","nodeId":"{0fc8e6c5-e9df-49fe-9d1c-f37880935973}","nodeName":"矢栅互转","nodeType":"Toolset","toolsetId":""},{"displayName":"栅格转线","nodeId":"KQGPToolRaster:KQGPToolRasterToLine","nodeName":"栅格转线","nodeType":"Tool","toolsetId":"{0fc8e6c5-e9df-49fe-9d1c-f37880935973}"},{"displayName":"栅格转点","nodeId":"KQGPToolRaster:KQGPToolRasterToPoint","nodeName":"栅格转点","nodeType":"Tool","toolsetId":"{0fc8e6c5-e9df-49fe-9d1c-f37880935973}"},{"displayName":"栅格转面","nodeId":"KQGPToolRaster:KQGPToolRasterToPolygon","nodeName":"栅格转面","nodeType":"Tool","toolsetId":"{0fc8e6c5-e9df-49fe-9d1c-f37880935973}"}]},{"Name":"Edit tools","description":"","displayName":"编辑工具","id":"SystemToolboxs:Edit tools"},{"Name":"Linear reference","description":"","displayName":"线性参考","id":"SystemToolboxs:Linear reference"},{"Name":"Map Generalization","description":"","displayName":"地图综合","id":"SystemToolboxs:Map Generalization","treeNodesList":[{"displayName":"Line smoothing","nodeId":"KQGPToolMapGeneralization:KQGPLineSmoothing","nodeName":"Line smoothing","nodeType":"Tool","toolsetId":""},{"displayName":"Line simplification","nodeId":"KQGPToolMapGeneralization:KQGPLineSimplification","nodeName":"Line simplification","nodeType":"Tool","toolsetId":""},{"displayName":"Line combination","nodeId":"KQGPToolMapGeneralization:KQGPLineCombination","nodeName":"Line combination","nodeType":"Tool","toolsetId":""},{"displayName":"Delete short line","nodeId":"KQGPToolMapGeneralization:KQGPDeleteShortLine","nodeName":"Delete short line","nodeType":"Tool","toolsetId":""},{"displayName":"Extract polygon center point","nodeId":"KQGPToolMapGeneralization:KQGPExtractPolygonCenterPoint","nodeName":"Extract polygon center point","nodeType":"Tool","toolsetId":""},{"displayName":"Extract polygon center line","nodeId":"KQGPToolMapGeneralization:KQGPExtractPolygonCenterLine","nodeName":"Extract polygon center line","nodeType":"Tool","toolsetId":""},{"displayName":"Tiny feature combination","nodeId":"KQGPToolMapGeneralization:KQGPTinyFeatureCombination","nodeName":"Tiny feature combination","nodeType":"Tool","toolsetId":""},{"displayName":"Polygon aggregation","nodeId":"KQGPToolMapGeneralization:KQGPPolygonAggregation","nodeName":"Polygon aggregation","nodeType":"Tool","toolsetId":""},{"displayName":"Delete sliver polygon","nodeId":"KQGPToolMapGeneralization:KQGPDeleteSmallPolygon","nodeName":"Delete sliver polygon","nodeType":"Tool","toolsetId":""},{"displayName":"Delete points based on density","nodeId":"KQGPToolMapGeneralization:KQGPDeletePointsBasedOnDensity","nodeName":"Delete points based on density","nodeType":"Tool","toolsetId":""}]},{"Name":"Projection and transform","description":"","displayName":"投影与转换","id":"SystemToolboxs:Projection and transform"},{"Name":"Raster","description":"Raster toolbox description","displayName":"栅格","id":"SystemToolboxs:Raster","treeNodesList":[{"displayName":"栅格转换","nodeId":"{1c066125-f27e-4cca-8272-2b3befe67673}","nodeName":"栅格转换","nodeType":"Toolset","toolsetId":""},{"displayName":"栅格分析","nodeId":"{aef597b5-29f3-4e11-b93f-f145443d8c40}","nodeName":"栅格分析","nodeType":"Toolset","toolsetId":""},{"displayName":"栅格处理","nodeId":"{589b2731-3917-41f6-adb2-903fc91602ce}","nodeName":"栅格处理","nodeType":"Toolset","toolsetId":""},{"displayName":"栅格综合","nodeId":"{1b8f4920-9524-41fa-926f-2799cc17999b}","nodeName":"栅格综合","nodeType":"Toolset","toolsetId":""},{"displayName":"栅格平移","nodeId":"KQGPToolRaster:KQGPToolShift","nodeName":"栅格平移","nodeType":"Tool","toolsetId":"{1c066125-f27e-4cca-8272-2b3befe67673}"},{"displayName":"栅格旋转","nodeId":"KQGPToolRaster:KQGPToolRotate","nodeName":"栅格旋转","nodeType":"Tool","toolsetId":"{1c066125-f27e-4cca-8272-2b3befe67673}"},{"displayName":"栅格翻转","nodeId":"KQGPToolRaster:KQGPToolFlip","nodeName":"栅格翻转","nodeType":"Tool","toolsetId":"{1c066125-f27e-4cca-8272-2b3befe67673}"},{"displayName":"栅格镜像","nodeId":"KQGPToolRaster:KQGPToolMirror","nodeName":"栅格镜像","nodeType":"Tool","toolsetId":"{1c066125-f27e-4cca-8272-2b3befe67673}"},{"displayName":"比例重设","nodeId":"KQGPToolRaster:KQGPToolReScale","nodeName":"比例重设","nodeType":"Tool","toolsetId":"{1c066125-f27e-4cca-8272-2b3befe67673}"},{"displayName":"栅格代数运算","nodeId":"KQGPToolRaster:KQGPToolAlgebra","nodeName":"栅格代数运算","nodeType":"Tool","toolsetId":"{aef597b5-29f3-4e11-b93f-f145443d8c40}"},{"displayName":"栅格函数运算","nodeId":"KQGPToolRaster:KQGPToolFuncCalculate","nodeName":"栅格函数运算","nodeType":"Tool","toolsetId":"{aef597b5-29f3-4e11-b93f-f145443d8c40}"},{"displayName":"栅格逻辑运算","nodeId":"KQGPToolRaster:KQGPToolLogic","nodeName":"栅格逻辑运算","nodeType":"Tool","toolsetId":"{aef597b5-29f3-4e11-b93f-f145443d8c40}"},{"displayName":"根据条件提取","nodeId":"KQGPToolRaster:KQGPToolGetImageByCondition","nodeName":"根据条件提取","nodeType":"Tool","toolsetId":"{aef597b5-29f3-4e11-b93f-f145443d8c40}"},{"displayName":"创建金字塔","nodeId":"KQGPToolRaster:KQGPToolBuildPyramid","nodeName":"创建金字塔","nodeType":"Tool","toolsetId":"{589b2731-3917-41f6-adb2-903fc91602ce}"},{"displayName":"批量创建金字塔","nodeId":"KQGPToolRaster:KQGPToolBuildPyramidBatch","nodeName":"批量创建金字塔","nodeType":"Tool","toolsetId":"{589b2731-3917-41f6-adb2-903fc91602ce}"},{"displayName":"掩膜提取","nodeId":"KQGPToolRaster:KQGPToolMaskExtract","nodeName":"掩膜提取","nodeType":"Tool","toolsetId":"{589b2731-3917-41f6-adb2-903fc91602ce}"},{"displayName":"重分类","nodeId":"KQGPToolRaster:KQGPToolReClass","nodeName":"重分类","nodeType":"Tool","toolsetId":"{589b2731-3917-41f6-adb2-903fc91602ce}"},{"displayName":"重采样","nodeId":"KQGPToolRaster:KQGPToolReSample","nodeName":"重采样","nodeType":"Tool","toolsetId":"{589b2731-3917-41f6-adb2-903fc91602ce}"},{"displayName":"栅格扩展","nodeId":"KQGPToolRaster:KQGPToolExtend","nodeName":"栅格扩展","nodeType":"Tool","toolsetId":"{1b8f4920-9524-41fa-926f-2799cc17999b}"},{"displayName":"栅格聚合","nodeId":"KQGPToolRaster:KQGPToolAggregate","nodeName":"栅格聚合","nodeType":"Tool","toolsetId":"{1b8f4920-9524-41fa-926f-2799cc17999b}"},{"displayName":"栅格收缩","nodeId":"KQGPToolRaster:KQGPToolShrink","nodeName":"栅格收缩","nodeType":"Tool","toolsetId":"{1b8f4920-9524-41fa-926f-2799cc17999b}"},{"displayName":"去黑边","nodeId":"KQGPToolRaster:KQGPToolRemoveBlackBorder","nodeName":"去黑边","nodeType":"Tool","toolsetId":"{589b2731-3917-41f6-adb2-903fc91602ce}"},{"displayName":"批量去黑边","nodeId":"KQGPToolRaster:KQGPToolRemoveBlackBorderBatch","nodeName":"批量去黑边","nodeType":"Tool","toolsetId":"{589b2731-3917-41f6-adb2-903fc91602ce}"},{"displayName":"像元统计","nodeId":"KQGPToolRaster:KQGPToolCellStatistics","nodeName":"像元统计","nodeType":"Tool","toolsetId":"{aef597b5-29f3-4e11-b93f-f145443d8c40}"},{"displayName":"波段合成","nodeId":"KQGPToolRaster:KQGPToolCompositeBands","nodeName":"波段合成","nodeType":"Tool","toolsetId":"{589b2731-3917-41f6-adb2-903fc91602ce}"}]},{"Name":"Spatial analysis","description":"","displayName":"空间分析","id":"SystemToolboxs:Spatial analysis","treeNodesList":[{"displayName":"缓冲区分析","nodeId":"{d11a1ca1-cc53-4eb7-8705-b96b16da325d}","nodeName":"缓冲区分析","nodeType":"Toolset","toolsetId":""},{"displayName":"叠加分析","nodeId":"{3abccd0a-0e47-4d62-8ea6-ad06c0fd669f}","nodeName":"叠加分析","nodeType":"Toolset","toolsetId":""},{"displayName":"叠置分析","nodeId":"{a71cbc56-348d-406b-837b-2e2aced9f46a}","nodeName":"叠置分析","nodeType":"Toolset","toolsetId":""},{"displayName":"拓扑生成","nodeId":"{95d932d5-a4c0-4719-b5f3-3c7c51b736bb}","nodeName":"拓扑生成","nodeType":"Toolset","toolsetId":""},{"displayName":"流向","nodeId":"KQGPToolRaster:GPToolRaster:KQGPToolFlowDirection","nodeName":"流向","nodeType":"Tool","toolsetId":"{00719928-e66b-449d-9059-802c82b41a12}"},{"displayName":"生成河网","nodeId":"KQGPToolRaster:GPToolRaster:KQGPToolCreateStream","nodeName":"生成河网","nodeType":"Tool","toolsetId":"{00719928-e66b-449d-9059-802c82b41a12}"},{"displayName":"河网分级","nodeId":"KQGPToolRaster:GPToolRaster:KQGPToolStreamOrder","nodeName":"河网分级","nodeType":"Tool","toolsetId":"{00719928-e66b-449d-9059-802c82b41a12}"},{"displayName":"Buffer","nodeId":"KQGPToolSpatialAnalysis:KQGPBuffer","nodeName":"Buffer","nodeType":"Tool","toolsetId":"{d11a1ca1-cc53-4eb7-8705-b96b16da325d}"},{"displayName":"Asymmetric buffer","nodeId":"KQGPToolSpatialAnalysis:KQGPAsymmetBuffer","nodeName":"Asymmetric buffer","nodeType":"Tool","toolsetId":"{d11a1ca1-cc53-4eb7-8705-b96b16da325d}"},{"displayName":"Field buffer","nodeId":"KQGPToolSpatialAnalysis:KQGPFieldBuffer","nodeName":"Field buffer","nodeType":"Tool","toolsetId":"{d11a1ca1-cc53-4eb7-8705-b96b16da325d}"},{"displayName":"Intersect","nodeId":"KQGPToolSpatialAnalysis:KQGPIntersect","nodeName":"Intersect","nodeType":"Tool","toolsetId":"{3abccd0a-0e47-4d62-8ea6-ad06c0fd669f}"},{"displayName":"Union","nodeId":"KQGPToolSpatialAnalysis:KQGPUnion","nodeName":"Union","nodeType":"Tool","toolsetId":"{3abccd0a-0e47-4d62-8ea6-ad06c0fd669f}"},{"displayName":"Erase","nodeId":"KQGPToolSpatialAnalysis:KQGPErase","nodeName":"Erase","nodeType":"Tool","toolsetId":"{3abccd0a-0e47-4d62-8ea6-ad06c0fd669f}"},{"displayName":"Update","nodeId":"KQGPToolSpatialAnalysis:KQGPUpdate","nodeName":"Update","nodeType":"Tool","toolsetId":"{3abccd0a-0e47-4d62-8ea6-ad06c0fd669f}"},{"displayName":"Symmetrical difference","nodeId":"KQGPToolSpatialAnalysis:KQGPDifference","nodeName":"Symmetrical difference","nodeType":"Tool","toolsetId":"{3abccd0a-0e47-4d62-8ea6-ad06c0fd669f}"},{"displayName":"Point overlay","nodeId":"KQGPToolSpatialAnalysis:KQGPPointOverlay","nodeName":"Point overlay","nodeType":"Tool","toolsetId":"{a71cbc56-348d-406b-837b-2e2aced9f46a}"},{"displayName":"Data to point","nodeId":"KQGPToolSpatialAnalysis:KQGPDataToPoint","nodeName":"Data to point","nodeType":"Tool","toolsetId":"{95d932d5-a4c0-4719-b5f3-3c7c51b736bb}"},{"displayName":"Data to chain","nodeId":"KQGPToolSpatialAnalysis:KQGPDataToChain","nodeName":"Data to chain","nodeType":"Tool","toolsetId":"{95d932d5-a4c0-4719-b5f3-3c7c51b736bb}"},{"displayName":"Data to polygon","nodeId":"KQGPToolSpatialAnalysis:KQGPDataToPolygon","nodeName":"Data to polygon","nodeType":"Tool","toolsetId":"{95d932d5-a4c0-4719-b5f3-3c7c51b736bb}"},{"displayName":"Multi point to single point","nodeId":"KQGPToolSpatialAnalysis:KQGPMultiPointToSinglePoint","nodeName":"Multi point to single point","nodeType":"Tool","toolsetId":"{95d932d5-a4c0-4719-b5f3-3c7c51b736bb}"},{"displayName":"Line overlay","nodeId":"KQGPToolSpatialAnalysis:KQGPLineOverlay","nodeName":"Line overlay","nodeType":"Tool","toolsetId":"{a71cbc56-348d-406b-837b-2e2aced9f46a}"},{"displayName":"Polygon overlay","nodeId":"KQGPToolSpatialAnalysis:KQGPPolygonOverlay","nodeName":"Polygon overlay","nodeType":"Tool","toolsetId":"{a71cbc56-348d-406b-837b-2e2aced9f46a}"}]},{"Name":"Spatial statistical analyst","description":"","displayName":"空间统计分析","id":"SystemToolboxs:Spatial statistical analyst","treeNodesList":[{"displayName":"Density analyst","nodeId":"{3ad7017e-2603-4ac8-8197-22e1e98d5a9f}","nodeName":"Density analyst","nodeType":"Toolset","toolsetId":""},{"displayName":"Proximity analyst","nodeId":"{1f1b0518-c0d7-4495-9b00-ad2b45e13594}","nodeName":"Proximity analyst","nodeType":"Toolset","toolsetId":""},{"displayName":"Spatial statistics analyst","nodeId":"{841b8962-7673-4689-ac75-0c2598f7acae}","nodeName":"Spatial statistics analyst","nodeType":"Toolset","toolsetId":""},{"displayName":"Correlation analysis","nodeId":"KQGPToolAnalysis:KQGPCorrelationAnalyze","nodeName":"Correlation analysis","nodeType":"Tool","toolsetId":"{841b8962-7673-4689-ac75-0c2598f7acae}"},{"displayName":"Regress analysis","nodeId":"KQGPToolAnalysis:KQGPRegressAnalyze","nodeName":"Regress analysis","nodeType":"Tool","toolsetId":"{841b8962-7673-4689-ac75-0c2598f7acae}"},{"displayName":"Clustering analysis","nodeId":"KQGPToolAnalysis:KQGPClusteringAnalyze","nodeName":"Clustering analysis","nodeType":"Tool","toolsetId":"{841b8962-7673-4689-ac75-0c2598f7acae}"},{"displayName":"MainElement analysis","nodeId":"KQGPToolAnalysis:KQGPMainElementAnalyze","nodeName":"MainElement analysis","nodeType":"Tool","toolsetId":"{841b8962-7673-4689-ac75-0c2598f7acae}"},{"displayName":"Rank correlation analysis","nodeId":"KQGPToolAnalysis:KQGPRankCorrelationAnalyze","nodeName":"Rank correlation analysis","nodeType":"Tool","toolsetId":"{841b8962-7673-4689-ac75-0c2598f7acae}"},{"displayName":"Generate spatial weight matrix","nodeId":"KQGPToolAnalysis:KQGPCreateSpatialWeightMatrix","nodeName":"Generate spatial weight matrix","nodeType":"Tool","toolsetId":"{841b8962-7673-4689-ac75-0c2598f7acae}"},{"displayName":"Spatial autocorrelation analysis","nodeId":"KQGPToolAnalysis:KQGPAutoCorrelation","nodeName":"Spatial autocorrelation analysis","nodeType":"Tool","toolsetId":"{841b8962-7673-4689-ac75-0c2598f7acae}"},{"displayName":"Local spatial autocorrelation analysis","nodeId":"KQGPToolAnalysis:KQGPLocalMoran","nodeName":"Local spatial autocorrelation analysis","nodeType":"Tool","toolsetId":"{841b8962-7673-4689-ac75-0c2598f7acae}"},{"displayName":"High\/low clustering analysis","nodeId":"KQGPToolAnalysis:KQGPHighLowClustering","nodeName":"High\/low clustering analysis","nodeType":"Tool","toolsetId":"{841b8962-7673-4689-ac75-0c2598f7acae}"},{"displayName":"Frequency","nodeId":"KQGPToolAnalysis:KQGPFrequency","nodeName":"Frequency","nodeType":"Tool","toolsetId":"{841b8962-7673-4689-ac75-0c2598f7acae}"},{"displayName":"Summary statistics","nodeId":"KQGPToolAnalysis:KQGPSumStatistics","nodeName":"Summary statistics","nodeType":"Tool","toolsetId":"{841b8962-7673-4689-ac75-0c2598f7acae}"},{"displayName":"Point distance","nodeId":"KQGPToolAnalysis:KQGPPointDistance","nodeName":"Point distance","nodeType":"Tool","toolsetId":"{1f1b0518-c0d7-4495-9b00-ad2b45e13594}"},{"displayName":"Generate near table","nodeId":"KQGPToolAnalysis:KQGPNearTable","nodeName":"Generate near table","nodeType":"Tool","toolsetId":"{1f1b0518-c0d7-4495-9b00-ad2b45e13594}"},{"displayName":"Near","nodeId":"KQGPToolAnalysis:KQGPNeighbor","nodeName":"Near","nodeType":"Tool","toolsetId":"{1f1b0518-c0d7-4495-9b00-ad2b45e13594}"},{"displayName":"Point density","nodeId":"KQGPToolAnalysis:KQGPPointDensity","nodeName":"Point density","nodeType":"Tool","toolsetId":"{3ad7017e-2603-4ac8-8197-22e1e98d5a9f}"},{"displayName":"Line density","nodeId":"KQGPToolAnalysis:KQGPLineDensity","nodeName":"Line density","nodeType":"Tool","toolsetId":"{3ad7017e-2603-4ac8-8197-22e1e98d5a9f}"},{"displayName":"Kernel density","nodeId":"KQGPToolAnalysis:KQGPNucleusDensity","nodeName":"Kernel density","nodeType":"Tool","toolsetId":"{3ad7017e-2603-4ac8-8197-22e1e98d5a9f}"}]},{"Name":"Terrain analysis","description":"","displayName":"地形分析","id":"SystemToolboxs:Terrain analysis"},{"Name":"Topology generate","description":"","displayName":"拓扑生成","id":"SystemToolboxs:Topology generate"},{"Name":"Universal tool","description":"","displayName":"通用工具","id":"SystemToolboxs:Universal tool"}]},"resultcode":"success"}

查询地理处理算子的描述信息

  • 请求参数

请求参数 json

{
    "request": "GeoProcessingService",
    "command":"describeModel",
    "toolid":"KQGPToolRaster:KQGPToolRasterToLine",
    "toolboxid":"SystemToolboxs:Data transform"
}
  • 参数说明

需要toolboxid + modelid 两个id联合,才能确定模型的唯一性。

参数 说明 是否必填
toolid 模型的ID,具有唯一性,从modelList 返回结果列表中获取,对应treeNodesList项下的 每个元素的nodeId 。例如"treeNodesList":[
{
"displayName":"web测试发布",
"nodeId":"{76b22ae9-88ba-4657-bc39-c241e659913e}",
"nodeName":"web测试发布",
"nodeType":"Toolset",
"toolsetId":""
},
{
"displayName":"test01",
"nodeId":"KQGPModel:KQGPModel:test01",
"nodeName":"test01",
"nodeType":"Model",
"toolsetId":"{76b22ae9-88ba-4657-bc39-c241e659913e}"
}
]
此处的nodeId即为modelid
toolboxid gp工具所属工具箱ID,对应从modelList 返回结果列表中获取,对应id。例如 {
"Name":"serverPublish",
"description":"",
"displayName":"服务发布模型集合",
"id":"{262da915-0948-4f29-b6dc-c0fe9156c015}",
"treeNodesList":[
{
"displayName":"web测试发布",
"nodeId":"{76b22ae9-88ba-4657-bc39-c241e659913e}",
"nodeName":"web测试发布",
"nodeType":"Toolset",
"toolsetId":""
},
{
"displayName":"test01",
"nodeId":"KQGPModel:KQGPModel:test01",
"nodeName":"test01",
"nodeType":"Model",
"toolsetId":"{76b22ae9-88ba-4657-bc39-c241e659913e}"
}
]
},此处id即为工具箱toolbox的id
  • 返回值json
{
    "result": {
        "Name": "KQGPToolReClass",
        "description": "",
        "displayName": "重分类",
        "helpContext": "",
        "id": "KQGPToolRaster:KQGPToolReClass",
        "inputs": [
            {
                "description": "",
                "displayName": "",
                "elementId": "",
                "isConnectParam": false,
                "isEnable": true,
                "isRequire": true,
                "isVisible": true,
                "isVisibleDisplayName": true,
                "meta": {
                    "defaultValue": "",
                    "isDataset": true,
                    "isFile": true,
                    "isList": false,
                    "isNumber": false,
                    "isRange": false,
                    "needConnInfo": false,
                    "optionItem": []
                },
                "name": "Input Raster",
                "paramId": "_Input Raster",
                "shortDescription": "",
                "type": "RasterDataset"
            },
            {
                "description": "",
                "displayName": "",
                "elementId": "",
                "isConnectParam": false,
                "isEnable": true,
                "isRequire": false,
                "isVisible": true,
                "isVisibleDisplayName": true,
                "meta": {
                    "defaultValue": "{\"currentIndex\":0,\"isEditable\":false,\"value\":[\"等分分类\",\"等间距分类\"]}",
                    "isDataset": false,
                    "isFile": false,
                    "isList": true,
                    "isNumber": false,
                    "isRange": false,
                    "needConnInfo": false,
                    "optionItem": [
                        "等分分类",
                        "等间距分类"
                    ]
                },
                "name": "ReClass Level Method",
                "paramId": "_ReClass Level Method",
                "shortDescription": "",
                "type": "SingleStringList"
            },
            {
                "description": "",
                "displayName": "",
                "elementId": "",
                "isConnectParam": false,
                "isEnable": true,
                "isRequire": false,
                "isVisible": true,
                "isVisibleDisplayName": true,
                "meta": {
                    "defaultValue": "5",
                    "isDataset": false,
                    "isFile": false,
                    "isList": false,
                    "isNumber": true,
                    "isRange": false,
                    "needConnInfo": false,
                    "optionItem": []
                },
                "name": "ReClass LevelNum or Step",
                "paramId": "_ReClass LevelNum or Step",
                "shortDescription": "",
                "type": "Double"
            },
            {
                "description": "",
                "displayName": "",
                "elementId": "",
                "isConnectParam": false,
                "isEnable": true,
                "isRequire": true,
                "isVisible": true,
                "isVisibleDisplayName": true,
                "meta": {
                    "defaultValue": "{\"headerNamePair\":{\"first\":\"Value\",\"second\":\"Level\"},\"value\":[]}",
                    "isDataset": false,
                    "isFile": false,
                    "isList": false,
                    "isNumber": false,
                    "isRange": false,
                    "needConnInfo": false,
                    "optionItem": []
                },
                "name": "List Of ReClassify",
                "paramId": "_List Of ReClassify",
                "shortDescription": "",
                "type": "StringPairForm"
            },
            {
                "description": "",
                "displayName": "",
                "elementId": "",
                "isConnectParam": false,
                "isEnable": true,
                "isRequire": true,
                "isVisible": true,
                "isVisibleDisplayName": true,
                "meta": {
                    "defaultValue": "false",
                    "isDataset": false,
                    "isFile": false,
                    "isList": false,
                    "isNumber": false,
                    "isRange": false,
                    "needConnInfo": false,
                    "optionItem": []
                },
                "name": "No Classfied Set Invalid Value",
                "paramId": "_No Classfied Set Invalid Value",
                "shortDescription": "",
                "type": "Boolean"
            },
            {
                "description": "",
                "displayName": "",
                "elementId": "",
                "isConnectParam": false,
                "isEnable": true,
                "isRequire": true,
                "isVisible": true,
                "isVisibleDisplayName": true,
                "meta": {
                    "defaultValue": "{\"currentIndex\":4,\"isEditable\":false,\"value\":[\"Byte\",\"UInt16\",\"Int16\",\"UInt32\",\"Int32\",\"Float32\",\"Float64\"]}",
                    "isDataset": false,
                    "isFile": false,
                    "isList": true,
                    "isNumber": false,
                    "isRange": false,
                    "needConnInfo": false,
                    "optionItem": [
                        "Byte",
                        "UInt16",
                        "Int16",
                        "UInt32",
                        "Int32",
                        "Float32",
                        "Float64"
                    ]
                },
                "name": "Pix Data Type",
                "paramId": "_Pix Data Type",
                "shortDescription": "",
                "type": "SingleStringList"
            }
        ],
        "ouputs": [
            {
                "description": "",
                "displayName": "",
                "elementId": "",
                "isConnectParam": false,
                "isEnable": true,
                "isRequire": true,
                "isVisible": true,
                "isVisibleDisplayName": true,
                "meta": {
                    "defaultValue": "",
                    "isDataset": false,
                    "isFile": true,
                    "isList": false,
                    "isNumber": false,
                    "isRange": false,
                    "needConnInfo": false,
                    "optionItem": []
                },
                "name": "Output Raster Dataset File",
                "paramId": "_Output Raster Dataset File",
                "shortDescription": "",
                "type": "File"
            }
        ],
        "paramChanges": [],
        "shortDescription": ""
    },
    "resultcode": "success",
    "toolboxID": "SystemToolboxs:Raster process"
}

查询地理处理算子的请求json样例

  • 请求参数

请求参数 json

{
    "request": "GeoProcessingService",
    "command":"getModelDemoRequestJson",
     "toolboxid":"MyToolboxes:serverPublish",
    "toollid":"KQGPModel:xc2",
    "ignoreNull":false,
    "buildType":0
}
  • 参数说明

需要toolboxid + modelid 两个id联合,才能确定模型的唯一性。

详细参考地理处理表述信息请求中的参数说明。

参数 说明 是否必填
ignoreNull 对于部分模型如果已经设置了值,可选择忽略未设置值或者为空的参数,默认为否。
buildType 默认为1,1 代表参数按照paramID:value 组织;0,代表按照数组组织:paramID:值,value:值
  • 返回值json

数组形式组织 buildType = 0

{"asyn":false,"command":"runModel","model":{"connect":[],"processes":[{"id":"IgRb","params":[{"paramId":"F3ZM_Input number1","value":5},{"paramId":"F3ZM_Input number2","value":5},{"paramId":"8Ind_Input number1","value":5},{"paramId":"8Ind_Input number2","value":4},{"paramId":"HAIo_Output number","value":0}],"toolboxid":"MyToolboxes:serverPublish","toolid":"KQGPModel:xc2"}]},"request":"GeoProcessingService","resultcode":"success"}

对象组织参数方式 buildType =1

{"asyn":false,"command":"runModel","model":{"connect":[],"processes":[{"id":"ef8m","params":{"8Ind_Input number1":5,"8Ind_Input number2":4,"F3ZM_Input number1":5,"F3ZM_Input number2":5,"HAIo_Output number":0},"toolboxid":"MyToolboxes:serverPublish","toolid":"KQGPModel:xc2"}]},"request":"GeoProcessingService","resultcode":"success"}

运行地理处理模型

  • 请求参数

请求参数 json,数组方式组织

{
    "request":"GeoProcessingService",
    "command":"runModel",
    "asyn":false,
    "model":{
        "processes":[
            {
                "id":"5c3c9b22_96dd84",
                "toolid":"KQGPToolFile:KQGPToolCalcMultiplication",
			    "toolboxid":"MyToolboxes:test",
                "params":[
                    {
                        "elementId":"",
                        "name":"Input number1",
                        "paramId":"_Input number1",
                        "value":8
                    },
                    {
                        "elementId":"",
                        "name":"Input number2",
                        "paramId":"_Input number2",
                        "value":6
                    }
                ]
            },
            {
                "id":"a4260d69_26b28",
               "toolboxid":"MyToolboxes:test",
                "toolid":"KQGPToolFile:KQGPToolCalcSubtraction",
                "params":[
                    {
                        "elementId":"",
                        "name":"Input number1",
                        "paramId":"_Input number1",
                        "value":18
                    },
                    {
                        "elementId":"",
                        "name":"Input number2",
                        "paramId":"_Input number2",
                        "value":8
                    }
                ]
            },
            {
                "id":"b1230d69_48b55",
                "toolboxid":"MyToolboxes:test",
                "toolid":"KQGPToolFile:KQGPToolCalcSubtraction",
                "params":{

                }
            }
        ],
        "connect":[
            {
                "connectionType":"parameter",
                "from":{
                    "id":"5c3c9b22_96dd84",
                    "elementId":"",
                    "name":"Output number"
                },
                "to":{
                    "id":"b1230d69_48b55",
                    "elementId":"",
                    "name":"Input number1"
                }
            },
            {
                "connectionType":"parameter",
                "from":{
                    "id":"a4260d69_26b28",
                    "elementId":"",
                    "name":"Output number"
                },
                "to":{
                    "id":"b1230d69_48b55",
                    "elementId":"",
                    "name":"Input number2"
                }
            }
        ],
     
     "buildType":1,
	"layout":{}
    }
}

对象方式组织参数

{
    "request":"GeoProcessingService",
    "command":"runModel",
     "asyn":false,
    "model":{
        "processes":[
            {
                "id":"5c3c9b22_96dd84",
                "toolid":"KQGPToolFile:KQGPToolCalcMultiplication",
			    "toolboxid":"MyToolboxes:test",
                "params":
                    {
                       "_Input number1":8,
		       "_Input number2":6
		   }
                
            },
            {
                "id":"a4260d69_26b28",
               "toolboxid":"MyToolboxes:test",
                "toolid":"KQGPToolFile:KQGPToolCalcSubtraction",
                "params":
                    {
                       "_Input number1":18,
		       			"_Input number2":8
		   }
            },
            {
                "id":"b1230d69_48b55",
                "toolboxid":"MyToolboxes:test",
                "toolid":"KQGPToolFile:KQGPToolCalcSubtraction",
                "params":{

                }
            }
	 ]
        ,
        "connect":[
            {
                "connectionType":"parameter",
                "from":{
                    "id":"5c3c9b22_96dd84",
		    "paramId":"_Output number",
                    "elementId":"",
                    "name":"Output number"
                },
                "to":{
                    "id":"b1230d69_48b55",
                    "elementId":"",
                    "name":"Input number1",
		            "paramId":"_Input number1"
                }
            },
            {
                "connectionType":"parameter",
                "from":{
                    "id":"a4260d69_26b28",
                    "elementId":"",
                    "name":"Output number",
		            "paramId":"_Output number"
                },
                "to":{
                    "id":"b1230d69_48b55",
                    "elementId":"",
                    "name":"Input number2",
		            "paramId":"_Input number2"
                }
            }
        ],
    
	"layout":{}
    }
}

为简化接口调用和服务发布,支持单个工具算子请求

{
    "model":{
        "toolboxid":"SystemToolboxs:Raster process",
        "toolid":"KQGPToolRaster:KQGPToolReClass",
        "params":
            {
                "_Pix Data Type":"{\"currentIndex\":\"5\",\"isEditable\":false,\"value\":[\"Byte\",\"UInt16\",\"Int16\",\"UInt32\",\"Int32\",\"Float32\",\"Float64\"]}",
                "_Input Raster":"{\"CONNECTTYPE\":\"Folder\",\"DATASET_TYPE\":2,\"DATASET_NAME\":\"坡度.img\",\"FILEPATH\":\"D:/KQGIS/data\"}",
				 "_No Classfied Set Invalid Value":"false",
                "_List Of ReClassify":"{\"headerNamePair\":{\"first\":\"Value\",\"second\":\"Level\"},\"value\":[{\"rowId\":\"list2\",\"rowValue\":{\"first\":\"[0.000000,14.065330)\",\"second\":\"1\"},\"selected\":true},{\"rowId\":\"list3\",\"rowValue\":{\"first\":\"[14.065330,28.130659)\",\"second\":\"2\"},\"selected\":true},{\"rowId\":\"list4\",\"rowValue\":{\"first\":\"[28.130659,42.195989)\",\"second\":\"3\"},\"selected\":true},{\"rowId\":\"list5\",\"rowValue\":{\"first\":\"[42.195989,56.261319)\",\"second\":\"4\"},\"selected\":true},{\"rowId\":\"list6\",\"rowValue\":{\"first\":\"[56.261319,70.326649]\",\"second\":\"5\"},\"selected\":true}]}"


            }
    },
    "asyn":false,
    "request":"GeoProcessingService",
    "command":"runModel"
}
  • 参数说明

model:模型描述信息,包含模型中算法、参数,以及串联连接关系。

模型的参数:通过算子的id 、elementId 、参数名称,三者联合才能确定唯一性。

参数 说明 是否必填
processes 地理处理工具算子的信息,可以存在多个算子串联
connect 每个算子之间的连接信息,算子间输出参数和输入参数之间的连接信息
layout GP模型的ui布局,保留,暂时未使用。
asyn 是否异步运行,默认为false,同步阻塞执行;异步执行则为在独立线程执行,返回任务id,后续可通过获取任务状态获取结果信息,对于需长时间运行的模型建议异步方式。
buildType 返回结果参数组织方式,默认为1,1 代表参数按照paramID:value 组织;0,代表按照数组组织:paramID:值,value:值

processes 地理服务算子信息

参数 说明
id 算子执行的id,模型中多个算子的id具有唯一性,并且连接信息也是通过该id,来确定连接信息
toolid 算子的id,服务发布的工具算子的ID
toolboxid 算子所属工具箱id,
params 参数信息,内容的数量可变,依赖具体算子的参数数量,json数组,每个数组项参考param 说明

param 参数说明 数组组织方式

参数 说明 是否必填
elementId 参数所属gptool 元素id
name 参数名称
paramId 参数id,优先使用该值,如果没有则使用elementId + name
value 参数值 字符串类型,布尔、数值、字符串类型直接传值,其他参数类型以字符串传值,对字符串格式有严格要求,参考一下参数类型 传值格式规范。

param参数对象组织方式

paramId:value, paramId为参数id,作为key,参数值作为值

connect 连接信息

参数 说明
connectionType 连接参数类型,支持Parameter、Environment、Precondition、Any,目前默认Parameter,基本使用都是Parameter
from 连接信息的起始端,参考参数连接信息
to 连接信息的终止端,

连接信息

参数 说明 是否必填
id 所属算子id,对应processes 数组中的 id
elementId 参数所属元素id
name 参数名称
paramId 参数id,优先使用该值,如果没有则使用elementId + name
  • 返回值json

返回给个算子的输出结果

{"result":{"5c3c9b22_96dd84":[{"elementID":"","instanceID":"{94ecd09a-8ff7-4b9c-840f-4435394722b9}","name":"Output number","value":48}],"a4260d69_26b28":[{"elementID":"","instanceID":"{c16fea6e-8693-437b-bd32-a6d222ee2e7e}","name":"Output number","value":10}],"b1230d69_48b55":[{"elementID":"","instanceID":"{dd41fbc7-eab2-4247-8f18-c0db0c271366}","name":"Output number","value":38}]},"resultcode":"success","taskID":"gp_{5e071cff-68f2-4c7d-ad06-2f42514e68a0}"}

发布地理处理模型

  • 请求参数

发布文件模型

请求参数 json

  {
    "request":"GeoProcessingService",
    "command":"publishModel",
    "type":"raw",
    "modelPath":"D:/KQGIS/test.tbx",
    "modelName":"test01",
    "toolset":"文件测试发布",
    "displayName":"测试发布",
    "description":"我是描述信息",
    "shortDescription":"短描述",
    "helpContext":"帮助信息",
    "override":true
}

发布二进制块(模型数据作为base64 )

{
    "request":"GeoProcessingService",
    "command":"publishModel",
    "type":"base64",
    "data":"实际的base64字符串",
    "modelName":"test01",
    "toolset":"文件测试发布",
    "displayName":"测试发布",
    "description":"我是描述信息",
    "shortDescription":"短描述",
    "helpContext":"帮助信息",
    "override":true
}

发布json 格式模型

{
    "request":"GeoProcessingService",
     "command":"publishModel",
     "type":"json",
    "model":{
        "processes":[
            {
                "id":"5c3c9b22_96dd84",
                "toolid":"KQGPToolFile:KQGPToolCalcMultiplication",
			    "toolboxid":"MyToolboxes:test",
                "params":
                    {
                       "_Input number1":8,
		       "_Input number2":6
		   }
                
            },
            {
                "id":"a4260d69_26b28",
               "toolboxid":"MyToolboxes:test",
                "toolid":"KQGPToolFile:KQGPToolCalcSubtraction",
                "params":
                    {
                       "_Input number1":18,
		       "_Input number2":8
		   }
            },
            {
                "id":"b1230d69_48b55",
                "toolboxid":"MyToolboxes:test",
                "toolid":"KQGPToolFile:KQGPToolCalcSubtraction",
                "params":{

                }
            }
	 ]
        ,
        "connect":[
            {
                "connectionType":"parameter",
                "from":{
                    "id":"5c3c9b22_96dd84",
		    "paramId":"_Output number",
                    "elementId":"",
                    "name":"Output number"
                },
                "to":{
                    "id":"b1230d69_48b55",
                    "elementId":"",
                    "name":"Input number1",
		            "paramId":"_Input number1"
                }
            },
            {
                "connectionType":"parameter",
                "from":{
                    "id":"a4260d69_26b28",
                    "elementId":"",
                    "name":"Output number",
		            "paramId":"_Output number"
                },
                "to":{
                    "id":"b1230d69_48b55",
                    "elementId":"",
                    "name":"Input number2",
		            "paramId":"_Input number2"
                }
            }
        ],
	"layout":{},
    "modelName":"test01",
    "toolset":"文件测试发布",
    "displayName":"测试发布",
    "description":"我是描述信息",
    "shortDescription":"短描述",
    "helpContext":"帮助信息",
    "override":true,
    "savaParamValue":true
    }
}
  • 参数说明

model:需要执行的模型信息,json对象。

参数 说明 是否必填
modelName 模型名称
toolset 模型所属工具集
modelPath 模型路径名称,桌面发布,可考虑直接二进制,
model 模型json信息,用于构建模型,参考运行模型中model参数说明
type 支持base64、raw、json。base64为二进制块发布,要求参数data,为模型二进制数据进行base64编码后的字符串信息。raw为文件模型发布,要求参数modelPath;json为json格式发布,前端组织模型信息,要求modelPath参数。
displayName 模型显示名称,如没有设置,则使用用modelName
description 描述信息
shortDescription 短描述信息
helpContext 帮助信息
override 覆盖以存在相同id模型,默认为false
savaParamValue 控制是否保持模型参数值,默认未true,保持参数值,仅支持json格式发布
  • 返回值json
{"modelid":"KQGPModel:KQGPModel:test03","resultcode":"success","toolboxid":"{262da915-0948-4f29-b6dc-c0fe9156c015}"}

获取参数值变化引起的参数联动参数信息

该服务接口目前仅支持GPTool 类型参数联动,对于模型类型的算子,暂不支持。

  • 请求参数 json
{
    "request": "GeoProcessingService",
    "command": "getParamChanged",
    "paramName":"ReClass LevelNum or Step",
    "process": {
        "id": "3c241fc5_c8001",
        "toolboxid": "SystemToolboxs:Raster process",
        "toolid": "KQGPToolRaster:KQGPToolReClass",
        "params": [
            {
                "elementId": "",
                "name": "Input Raster",
                "value": "{\"CONNECTTYPE\":\"Folder\",\"DATASET_NAME\":\"坡度.img\",\"DATASET_TYPE\":2,\"FILEPATH\":\"D:\/KQGIS\/data\"}"
            },
            {
                "elementId": "",
                "name": "List Of ReClassify",
                "value": "{\"headerNamePair\":{\"first\":\"Value\",\"second\":\"Level\"},\"value\":[{\"rowId\":\"list0\",\"rowValue\":{\"first\":\"[0.000000,14.065330)\",\"second\":\"1\"},\"selected\":true},{\"rowId\":\"list1\",\"rowValue\":{\"first\":\"[14.065330,28.130659)\",\"second\":\"2\"},\"selected\":true},{\"rowId\":\"list2\",\"rowValue\":{\"first\":\"[28.130659,42.195989)\",\"second\":\"3\"},\"selected\":true},{\"rowId\":\"list3\",\"rowValue\":{\"first\":\"[42.195989,56.261319)\",\"second\":\"4\"},\"selected\":true},{\"rowId\":\"list4\",\"rowValue\":{\"first\":\"[56.261319,70.326649]\",\"second\":\"5\"},\"selected\":true}]}"
            },
            {
                "elementId": "",
                "name": "No Classfied Set Invalid Value",
                "value": false
            },
            {
                "elementId": "",
                "name": "Pix Data Type",
                "value": "{\"currentIndex\":5,\"isEditable\":false,\"value\":[\"Byte\",\"UInt16\",\"Int16\",\"UInt32\",\"Int32\",\"Float32\",\"Float64\"]}"
            }
            ,
            {
                "elementId": "",
                "name": "ReClass Level Method",
                "value": "{\"currentIndex\":0,\"isEditable\":false,\"value\":[\"等分分类\",\"等间距分类\"]}"
            }
            ,
            {
                "elementId": "",
                "name": "ReClass LevelNum or Step",
                "value": 5
            }
        ]
    }
}
  • 参数说明
参数 说明 是否必填
process 地理处理工具算子的信息,包含算子的参数值。
paramName 变动的参数名称
command 接口名称,固定为getParamChanged。
request 服务请求类型,固定为GeoProcessingService

process 参数说明

参数 说明 是否必填
id 算子执行的id,模型中多个算子的id具有唯一性,并且连接信息也是通过该id,来确定连接信息
toolid 算子的id,服务发布的工具算子的ID
toolboxid 算子所属工具箱id,
params 参数信息,内容的数量可变,依赖具体算子的参数数量,json数组,每个数组项参考param 说明,参考模型运行中对应的参数说明。
  • 返回值json

示例:

defaultValue 为变化后的参数值

{
    "result": [
        {
            "description": "",
            "displayName": "",
            "elementId": "",
            "isConnectParam": false,
            "isEnable": true,
            "isRequire": true,
            "isVisible": true,
            "isVisibleDisplayName": true,
            "meta": {
                "addRowIsChecked": 1,
                "defaultValue": "{\"headerNamePair\":{\"first\":\"Value\",\"second\":\"Level\"},\"value\":[{\"rowId\":\"rIym\",\"rowValue\":{\"first\":\"[0.000000,14.065330)\",\"second\":\"1\"},\"selected\":true},{\"rowId\":\"e815\",\"rowValue\":{\"first\":\"[14.065330,28.130659)\",\"second\":\"2\"},\"selected\":true},{\"rowId\":\"P7jL\",\"rowValue\":{\"first\":\"[28.130659,42.195989)\",\"second\":\"3\"},\"selected\":true},{\"rowId\":\"oAw1\",\"rowValue\":{\"first\":\"[42.195989,56.261319)\",\"second\":\"4\"},\"selected\":true},{\"rowId\":\"94Cx\",\"rowValue\":{\"first\":\"[56.261319,70.326649]\",\"second\":\"5\"},\"selected\":true}]}",
                "isDataset": false,
                "isFile": false,
                "isList": false,
                "isNullValue": false,
                "isNumber": false,
                "isRange": false,
                "needConnInfo": false,
                "optionItem": [],
                "showAddButton": 1,
                "showDeleteButton": 1,
                "showNumber": 0,
                "showSelectInvertAll": 0,
                "showUpdateButton": 1,
                "toBool": true
            },
            "name": "List Of ReClassify",
            "paramId": "_List Of ReClassify",
            "shortDescription": "",
            "type": "StringPairForm"
        }
    ],
    "resultcode": "success"
}

查询模型运行任务状态详细信息

  • 请求参数

请求参数 json

{
    "request":"GeoProcessingService",
    "command":"getStatus",
    "taskId":"gp_{336bd228-f35a-466d-8d09-8a67764d77b7}"
}
  • 参数说明

taskId:地理处理服务的任务ID,必填。

  • 返回值json
{"costtime":11153,"endtime":"2021-07-19 17:49:09","msg":"GP模型执行完成,执行信息 :{\"result\":{\"5c3c9b22_96dd84\":{\"elementID\":\"{ef7b93e8-feb6-4d68-abf8-05fd3568a04f}\",\"name\":\"Output number\",\"value\":48},\"a4260d69_26b28\":{\"elementID\":\"{11aa17e8-0fe9-4235-b59b-afdbeb4d0337}\",\"name\":\"Output number\",\"value\":10},\"b1230d69_48b55\":{\"elementID\":\"{87953727-5ef6-45fc-8a0d-3396458ef0dd}\",\"name\":\"Output number\",\"value\":38}},\"taskID\":\"gp_{ce9e3b58-3ede-4109-86e4-5adbebe0aaeb}\"}","progress":"100.00","resultcode":"success","starttime":"2021-07-19 17:48:58","status":1,"taskId":"gp_{ce9e3b58-3ede-4109-86e4-5adbebe0aaeb}","type":"RunModel"}

查询模型运行任务列表信息

  • 请求参数

请求参数 json

{
    "request":"GeoProcessingService",
    "command":"getStatusList",
    "type":"RunModel",
    "status":1
}
  • 参数说明
参数 说明 是否必填
type 查询类型,目前仅支持RunModel 即模型运行任务 类型,参数为"RunModel" 字符串类型
status 任务执行状态,-2查询所有状态的任务,-1 失败状态,0 正常状态,1 完成状态
  • 返回值json
{"resultcode":"success","status":[{"costtime":15166,"endtime":"2021-07-14 09:34:31","msg":"GP模型执行完成,执行信息 :{\"result\":[],\"taskID\":\"gp_{336bd228-f35a-466d-8d09-8a67764d77b7}\"}","progress":"100.00","starttime":"2021-07-14 09:34:16","status":1,"taskId":"gp_{336bd228-f35a-466d-8d09-8a67764d77b7}","type":"RunModel"},{"costtime":116186,"endtime":"2021-07-14 13:45:10","msg":"GP模型执行完成,执行信息 :{\"result\":[],\"taskID\":\"gp_{683c2a93-4b0e-4930-a500-4d066410189e}\"}","progress":"100.00","starttime":"2021-07-14 13:43:14","status":1,"taskId":"gp_{683c2a93-4b0e-4930-a500-4d066410189e}","type":"RunModel"},{"costtime":98819,"endtime":"2021-07-14 18:40:31","msg":"GP模型执行完成,执行信息 :{\"result\":[],\"taskID\":\"gp_{c7c36b49-21c8-4d03-bd5f-39b175aabd64}\"}","progress":"100.00","starttime":"2021-07-14 18:38:52","status":1,"taskId":"gp_{c7c36b49-21c8-4d03-bd5f-39b175aabd64}","type":"RunModel"},{"costtime":10098,"endtime":"2021-07-14 18:40:53","msg":"GP模型执行完成,执行信息 :{\"result\":[],\"taskID\":\"gp_{6258b26c-9df6-44de-8d72-7fca89c19413}\"}","progress":"100.00","starttime":"2021-07-14 18:40:43","status":1,"taskId":"gp_{6258b26c-9df6-44de-8d72-7fca89c19413}","type":"RunModel"},{"costtime":10068,"endtime":"2021-07-14 18:42:30","msg":"GP模型执行完成,执行信息 :{\"result\":[],\"taskID\":\"gp_{0d44b279-464d-49b1-a433-cdff907b9128}\"}","progress":"100.00","starttime":"2021-07-14 18:42:20","status":1,"taskId":"gp_{0d44b279-464d-49b1-a433-cdff907b9128}","type":"RunModel"},{"costtime":75509,"endtime":"2021-07-15 09:04:24","msg":"GP 模型执行完成,执行信息 :{\"result\":[],\"taskID\":\"gp_{7085f590-a0d2-47c4-b5c9-28c02723df20}\"}","progress":"100.00","starttime":"2021-07-15 09:03:08","status":1,"taskId":"gp_{7085f590-a0d2-47c4-b5c9-28c02723df20}","type":"RunModel"},{"costtime":10122,"endtime":"2021-07-15 09:46:08","msg":"GP模型执行完成,执行信息 :{\"result\":[{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"5c3c9b22_96dd84\",\"value\":15},{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"a4260d69_26b28\",\"value\":48},{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"b1230d69_48b55\",\"value\":-3.5}],\"taskID\":\"gp_{b3f73281-3dd9-4be3-a60d-9f3ae7cdeef4}\"}","progress":"100.00","starttime":"2021-07-15 09:45:58","status":1,"taskId":"gp_{b3f73281-3dd9-4be3-a60d-9f3ae7cdeef4}","type":"RunModel"},{"costtime":10072,"endtime":"2021-07-15 09:49:06","msg":"GP模型执行完成,执行信息 :{\"result\":[{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"5c3c9b22_96dd84\",\"value\":15},{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"a4260d69_26b28\",\"value\":48},{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"b1230d69_48b55\",\"value\":-3.5}],\"taskID\":\"gp_{9280db0b-e677-4b7f-9a2f-02a4cf78eac4}\"}","progress":"100.00","starttime":"2021-07-15 09:48:56","status":1,"taskId":"gp_{9280db0b-e677-4b7f-9a2f-02a4cf78eac4}","type":"RunModel"},{"costtime":10055,"endtime":"2021-07-15 09:51:34","msg":"GP模型执行完成,执行信息 :{\"result\":[{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"5c3c9b22_96dd84\",\"value\":15},{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"a4260d69_26b28\",\"value\":48},{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"b1230d69_48b55\",\"value\":-3.5}],\"taskID\":\"gp_{fb35a110-c368-4db1-8508-abc602a0678a}\"}","progress":"100.00","starttime":"2021-07-15 09:51:24","status":1,"taskId":"gp_{fb35a110-c368-4db1-8508-abc602a0678a}","type":"RunModel"},{"costtime":11074,"endtime":"2021-07-15 10:14:31","msg":"GP模型执行完成,执行信息 :End running the model.","progress":"100.00","starttime":"2021-07-15 10:14:20","status":1,"taskId":"gp_{f22f446f-dec1-4289-886f-6afac8131204}","type":"RunModel"},{"costtime":11089,"endtime":"2021-07-15 10:16:28","msg":"GP模型执行完成,执行信息 :End running the model.","progress":"100.00","starttime":"2021-07-15 10:16:17","status":1,"taskId":"gp_{ff8631ca-23d1-4f82-911f-5a547a76e8ae}","type":"RunModel"},{"costtime":11392,"endtime":"2021-07-15 10:23:03","msg":"GP模型执行完成,执行信息 :{\"result\":[{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"5c3c9b22_96dd84\",\"value\":15},{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"a4260d69_26b28\",\"value\":2},{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"b1230d69_48b55\",\"value\":13}],\"taskID\":\"gp_{af033314-fa4e-4a91-9a78-cd6e3f0d9ae5}\"}","progress":"100.00","starttime":"2021-07-15 10:22:52","status":1,"taskId":"gp_{af033314-fa4e-4a91-9a78-cd6e3f0d9ae5}","type":"RunModel"},{"costtime":11091,"endtime":"2021-07-15 10:37:57","msg":"GP模型执行完成,执行信息 :{\"result\":[{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"5c3c9b22_96dd84\",\"value\":15},{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"a4260d69_26b28\",\"value\":2},{\"displayName\":\"\",\"name\":\"Output number\",\"processid\":\"b1230d69_48b55\",\"value\":13}],\"taskID\":\"gp_{e0a0a9e3-a0df-493a-ba24-67521cd4d275}\"}","progress":"100.00","starttime":"2021-07-15 10:37:46","status":1,"taskId":"gp_{e0a0a9e3-a0df-493a-ba24-67521cd4d275}","type":"RunModel"},{"costtime":11086,"endtime":"2021-07-15 11:40:05","msg":"GP模型执行完成,执行信息 :{\"result\":[{\"5c3c9b22_96dd84\":[{\"name\":\"Output number\",\"value\":15}]},{\"a4260d69_26b28\":[{\"name\":\"Output number\",\"value\":2}]},{\"b1230d69_48b55\":[{\"name\":\"Output number\",\"value\":13}]}],\"taskID\":\"gp_{8d8b5e69-df9a-4f73-86ca-32945f129349}\"}","progress":"100.00","starttime":"2021-07-15 11:39:54","status":1,"taskId":"gp_{8d8b5e69-df9a-4f73-86ca-32945f129349}","type":"RunModel"},{"costtime":11073,"endtime":"2021-07-15 11:46:52","msg":"GP模型执行完成,执行信息 :{\"result\":[{\"5c3c9b22_96dd84\":{\"Output number\":15}},{\"a4260d69_26b28\":{\"Output number\":2}},{\"b1230d69_48b55\":{\"Output number\":13}}],\"taskID\":\"gp_{079476e2-2b10-41fc-b014-cc1754fc208d}\"}","progress":"100.00","starttime":"2021-07-15 11:46:41","status":1,"taskId":"gp_{079476e2-2b10-41fc-b014-cc1754fc208d}","type":"RunModel"},{"costtime":11394,"endtime":"2021-07-19 14:47:45","msg":"GP模型执行完成,执行信息 :{\"result\":{\"5c3c9b22_96dd84\":{\"Output number\":48},\"a4260d69_26b28\":{\"Output number\":10},\"b1230d69_48b55\":{\"Output number\":38}},\"taskID\":\"gp_{3fd7a7d3-63cc-49fa-b1ad-e56eb5028105}\"}","progress":"100.00","starttime":"2021-07-19 14:47:34","status":1,"taskId":"gp_{3fd7a7d3-63cc-49fa-b1ad-e56eb5028105}","type":"RunModel"},{"costtime":11175,"endtime":"2021-07-19 16:47:00","msg":"GP模型执行完成,执行信息 :{\"result\":{\"5c3c9b22_96dd84\":{\"Output number\":48},\"a4260d69_26b28\":{\"Output number\":10},\"b1230d69_48b55\":{\"Output number\":38}},\"taskID\":\"gp_{14f7a20b-ba4c-4666-9cd3-40b546fb1905}\"}","progress":"100.00","starttime":"2021-07-19 16:46:49","status":1,"taskId":"gp_{14f7a20b-ba4c-4666-9cd3-40b546fb1905}","type":"RunModel"},{"costtime":11169,"endtime":"2021-07-19 17:06:52","msg":"GP模型执行完成,执行信息 :{\"result\":{\"5c3c9b22_96dd84\":{\"Output number\":48,\"elementID\":\"{91e8fd7c-eef4-4c3b-bb0d-5cdda107aa21}\"},\"a4260d69_26b28\":{\"Output number\":10,\"elementID\":\"{3b9d7916-ab0a-413f-a6b6-551cc7b4b5b4}\"},\"b1230d69_48b55\":{\"Output number\":38,\"elementID\":\"{ff376219-6b61-4639-8a6c-8ab580509777}\"}},\"taskID\":\"gp_{4ad682c9-9914-4af0-8f8f-004436047d64}\"}","progress":"100.00","starttime":"2021-07-19 17:06:40","status":1,"taskId":"gp_{4ad682c9-9914-4af0-8f8f-004436047d64}","type":"RunModel"},{"costtime":11165,"endtime":"2021-07-19 17:09:15","msg":"GP模型执行完成,执行信息 :{\"result\":{\"5c3c9b22_96dd84\":{\"elementID\":\"{12e7f47f-c246-490a-a691-1f481be2a326}\",\"name\":\"Output number\",\"value\":48},\"a4260d69_26b28\":{\"elementID\":\"{213b8ad6-a962-4ba3-a481-1f488a7862d3}\",\"name\":\"Output number\",\"value\":10},\"b1230d69_48b55\":{\"elementID\":\"{995f5668-e5c7-4f44-83bf-6142f1611bb1}\",\"name\":\"Output number\",\"value\":38}},\"taskID\":\"gp_{db14c935-bd46-4223-9e41-c0f40bf30f66}\"}","progress":"100.00","starttime":"2021-07-19 17:09:04","status":1,"taskId":"gp_{db14c935-bd46-4223-9e41-c0f40bf30f66}","type":"RunModel"},{"costtime":11168,"endtime":"2021-07-19 17:40:21","msg":"GP模型执行完成,执行信息 :{\"result\":{\"5c3c9b22_96dd84\":{\"elementID\":\"{357def26-9c39-42db-b615-d927b772cdd4}\",\"name\":\"Output number\",\"value\":48},\"a4260d69_26b28\":{\"elementID\":\"{5c8d4827-9323-4f7b-8b14-bd57f59c5fbd}\",\"name\":\"Output number\",\"value\":10},\"b1230d69_48b55\":{\"elementID\":\"{032e4ef5-9d8e-4946-b855-0af8d86da101}\",\"name\":\"Output number\",\"value\":38}},\"taskID\":\"gp_{0a65560f-e949-4dd4-a748-2aa542ff8654}\"}","progress":"100.00","starttime":"2021-07-19 17:40:10","status":1,"taskId":"gp_{0a65560f-e949-4dd4-a748-2aa542ff8654}","type":"RunModel"},{"costtime":11153,"endtime":"2021-07-19 17:49:09","msg":"GP模型执行完成,执行信息 :{\"result\":{\"5c3c9b22_96dd84\":{\"elementID\":\"{ef7b93e8-feb6-4d68-abf8-05fd3568a04f}\",\"name\":\"Output number\",\"value\":48},\"a4260d69_26b28\":{\"elementID\":\"{11aa17e8-0fe9-4235-b59b-afdbeb4d0337}\",\"name\":\"Output number\",\"value\":10},\"b1230d69_48b55\":{\"elementID\":\"{87953727-5ef6-45fc-8a0d-3396458ef0dd}\",\"name\":\"Output number\",\"value\":38}},\"taskID\":\"gp_{ce9e3b58-3ede-4109-86e4-5adbebe0aaeb}\"}","progress":"100.00","starttime":"2021-07-19 17:48:58","status":1,"taskId":"gp_{ce9e3b58-3ede-4109-86e4-5adbebe0aaeb}","type":"RunModel"}]}

,

空文件

简介

KQGIS Server 8.1 开发接口文档。 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
其他
1
https://gitee.com/hackj/kqgisserver_sdk_manual.git
git@gitee.com:hackj/kqgisserver_sdk_manual.git
hackj
kqgisserver_sdk_manual
KQGIS Server 8.1 开发接口文档
master

搜索帮助