简要描述
- 选择一个起点,一个终点,输入一个图层,返回两点的连通路径
请求URL
http://192.168.19.21:9999/geniusserver/processservices
服务名称
请求方式
参数
| 参数名 |
必选 |
类型 |
说明 |
| startPoint |
是 |
wkt |
起点 |
| endPoint |
是 |
wkt |
终点 |
| lineFeatures |
是 |
Refrence |
线图层 |
| outPutCrs |
是 |
string |
输出坐标系 |
请求示例
<?xml version="1.0" encoding="utf-8"?><wps:Execute xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.opengis.net/wps/1.0.0" service="WPS" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd" xmlns:gml="http://www.opengis.net/gml" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1"> <ows:Identifier>pipe:ConnectedPath</ows:Identifier> <wps:DataInputs> <Input> <ows:Identifier>startPoint</ows:Identifier> <wps:Data> <wps:ComplexData mimeType="application/wkt" crs="EPSG:3857"> <![CDATA[POINT (13220806.4 4417672.0)]]> </wps:ComplexData> </wps:Data> </Input> <Input> <ows:Identifier>endPoint</ows:Identifier> <wps:Data> <wps:ComplexData mimeType="application/wkt" crs="EPSG:3857"> <![CDATA[POINT (13220865.4 4417636.5)]]> </wps:ComplexData> </wps:Data> </Input> <Input> <ows:Identifier>lineFeatures</ows:Identifier> <wps:Reference xlink:href="http://geniusserver/wfs/shouguangguanxian" mimeType="text/xml;subtype=gml/2.1.2" method="POST"> <wps:Body> <wfs:GetFeature outputFormat="text/xml;subtype=gml/2.1.2" version="1.0.0" service="WFS"> <wfs:Query typeName="yt_ysl"/> </wfs:GetFeature> </wps:Body> </wps:Reference> </Input> <Input> <ows:Identifier>outPutCrs</ows:Identifier> <wps:Data> <wps:LiteralData>4326</wps:LiteralData> </wps:Data> </Input> </wps:DataInputs> <wps:ResponseForm> <wps:RawDataOutput mimeType="application/json"> <ows:Identifier>result</ows:Identifier> </wps:RawDataOutput> </wps:ResponseForm></wps:Execute>
返回示例
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"id": "",
"bbox": [40533715.8988, 4020632.5038, 40534117.8963, 4020693.1169],
"geometry": {
"coordinates": [[[[40533716.1208, 4020643.5156], [40534016.0071, 4020688.8719], [40534036.3332, 4020691.2479], [40534064.2752, 4020693.1169], [40534098.2953, 4020692.885], [40534117.8963, 4020691.426], [40534056.0462, 4020632.5038], [40534057.0542, 4020637.8059], [40534054.0132, 4020646.3619], [40534047.6162, 4020652.1219], [40534038.2492, 4020651.2379], [40534024.1452, 4020649.5938], [40534004.9202, 4020646.9108], [40534003.2542, 4020646.6578], [40534003.2941, 4020678.3709], [40534003.2991, 4020682.0119], [40533871.564, 4020660.7507], [40533871.537, 4020660.8147], [40533841.3179, 4020655.8637], [40533841.3179, 4020655.8687], [40533717.1708, 4020635.8325], [40533715.8988, 4020636.4355], [40533716.1208, 4020643.5156]]]],
"type": "MultiPolygon"
},
"properties": {},
...]
}
}
返回参数说明
备注