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":[
}