ProcessingServer

URL:

http:// <Service-URL> / ProcessingServer

父资源:

Service

服务接口:

project   length   area   centroid   boundary   convexhull   simplify   buffer   union   intersection   difference   symdifference   relation  

[ 服务说明 ]

ProcessingServer 提供了一系列GIS几何对象处理功能。ProcessingServer服务接口主要有:投影,长度,面积,中心点,边界,缓冲区,相离,拓扑关系判断等。

每一种服务接口均支持GET和POST操作请求,在组织POST请求时,须将该服务GET请求操作所使用的参数按照JSON格式组织作为请求的PostBody。
如投影操作的GET操作接口为:
    http://127.0.0.1:8099/newmap/rest/services/utilities/Geometry/ProcessingServer/project?srsin=EPSG:4326&srsout=EPSG:2437&geo={ "type": "LineString", "coordinates": [ [ 105.475843, 39.002044 ], [ 99.938734, 35.222747 ], [ 111.803968, 32.058685 ], [ 105.475843, 39.002044 ] ] }&format=json
其对应的POST请求PostBody组织如下:
    {"srsin":"EPSG:4326", srsout:"EPSG:2437", "geo":{"type": "LineString", "coordinates": [[105.475843, 39.002044], [99.938734, 35.222747], [111.803968, 32.058685], [105.475843, 39.002044]]}, "format":"json"}

类型 接口 说明
对象操作 project 投影转换
buffer 缓冲分析
convexhull 凸包
boundary 边界
centroid 中心点
simplify 抽稀
量算 length 长度
area 面积
叠加分析 intersection
difference
union
symdifference 对称差
拓扑判断 relation 两个几何对象拓扑关系判断,如相交,相离相邻等

[ 参数说明 ]

参数 参数说明
format 参数作用:指定capabilities操作返回结果的格式
取值范围:html | json ,该参数默认值为html

[ 示例 ]

URL地址示例:
http://127.0.0.1:8099/newmap/rest/services/utilities/Geometry/ProcessingServer?format=json

[ 返回结果 ]

    JSON格式返回值示例 :

{
    "serviceName":"Geometry",
    "serviceDescription":"Geometry处理服务",
    "serverType":"ProcessingServer",
    "serverDescription":"Process Geometry",
    "capabilities":{
        "srs":"EPSG:4326",
        "keywordlist":"NewMapServer4,PROCESSING","fees":"none"
    },
    "operations":[
{"name":"capabilities","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/capabilities"},{"name":"project","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/project"},{"name":"length","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/length"},{"name":"area","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/area"},{"name":"centroid","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/centroid"},{"name":"boundary","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/boundary"},{"name":"convexhull","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/convexhull"},{"name":"simplify","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/simplify"},{"name":"buffer","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/buffer"},{"name":"union","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/union"},{"name":"intersection","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/intersection"},{"name":"difference","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/difference"},{"name":"symdifference","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/symdifference"},{"name":"relation","url":"http://127.0.0.1:8099/newmap/rest/services/Utilities/Geometry/ProcessingServer/relation"}
    ]
}