convexhull接口

URL:

http:// <ProcessingServer-URL> / convexhull

父资源:

ProcessingServer

[ 服务说明 ]

convexhull接口,提供几何对象的凸包计算。

[ 参数说明 ]

参数 参数说明
geo 参数作用:点,线,面等几何对象的geojson结构描述
参数说明:
            {
              "type": "LineString"|"Point"|"Polygon",
               "coordinates":[<geometry>]
            }
参数示例:
            {
              "type": "LineString",
              "coordinates": [ [ 105.475843, 39.002044 ], [ 99.938734, 35.222747 ], [ 111.803968, 32.058685 ], [ 105.475843, 39.002044 ] ]
            }
format 参数作用:指定返回结果的格式
取值范围:html | json,该参数默认值为json
callback 参数作用:Ajax客户端使用JSONP方式进行跨域处理时所指定的回调函数名称
参数说明:可选参数,该参数仅在format参数值为json时有效

[ 示例 ]

URL地址示例:
http://127.0.0.1:8099/newmap/rest/services/utilities/Geometry/ProcessingServer/convexhull?geo={ "type": "LineString", "coordinates": [ [ 105.475843, 39.002044 ], [ 99.938734, 35.222747 ], [ 111.803968, 32.058685 ], [ 105.475843, 39.002044 ] ] }&format=json

[ 返回结果 ]

    convexhull操作成功时的返回结果示例 :

{
    "type":"Polygon",
    "coordinates": [ [ [ 111.803968, 32.058685 ], [ 99.938734, 35.222747 ], [ 105.475843, 39.002044 ], [ 111.803968, 32.058685 ] ] ]
}

    convexhull操作失败时的返回结果示例 :

{
    "error":"无法解析传入的Geometry"
}