简要描述
  • 选择一个起点,一个终点,输入一个图层,返回两点的连通路径

请求URL
  • http://192.168.19.21:9999/geniusserver/processservices

服务名称

  • pipe:ConnnectedPath

请求方式
  • POST

参数
参数名 必选 类型 说明
startPoint wkt 起点
endPoint wkt 终点
lineFeatures Refrence 线图层
outPutCrs string 输出坐标系

请求示例
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <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">
  3. <ows:Identifier>pipe:ConnectedPath</ows:Identifier>
  4. <wps:DataInputs>
  5. <Input>
  6. <ows:Identifier>startPoint</ows:Identifier>
  7. <wps:Data>
  8. <wps:ComplexData mimeType="application/wkt" crs="EPSG:3857">
  9. <![CDATA[POINT (13220806.4 4417672.0)]]>
  10. </wps:ComplexData>
  11. </wps:Data>
  12. </Input>
  13. <Input>
  14. <ows:Identifier>endPoint</ows:Identifier>
  15. <wps:Data>
  16. <wps:ComplexData mimeType="application/wkt" crs="EPSG:3857">
  17. <![CDATA[POINT (13220865.4 4417636.5)]]>
  18. </wps:ComplexData>
  19. </wps:Data>
  20. </Input>
  21. <Input>
  22. <ows:Identifier>lineFeatures</ows:Identifier>
  23. <wps:Reference xlink:href="http://geniusserver/wfs/shouguangguanxian" mimeType="text/xml;subtype=gml/2.1.2" method="POST">
  24. <wps:Body>
  25. <wfs:GetFeature outputFormat="text/xml;subtype=gml/2.1.2" version="1.0.0" service="WFS">
  26. <wfs:Query typeName="yt_ysl"/>
  27. </wfs:GetFeature>
  28. </wps:Body>
  29. </wps:Reference>
  30. </Input>
  31. <Input>
  32. <ows:Identifier>outPutCrs</ows:Identifier>
  33. <wps:Data>
  34. <wps:LiteralData>4326</wps:LiteralData>
  35. </wps:Data>
  36. </Input>
  37. </wps:DataInputs>
  38. <wps:ResponseForm>
  39. <wps:RawDataOutput mimeType="application/json">
  40. <ows:Identifier>result</ows:Identifier>
  41. </wps:RawDataOutput>
  42. </wps:ResponseForm>
  43. </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": {},
            ...]
        }
}

返回参数说明
  • geojson格式

备注
  • 更多返回错误代码请看首页的错误代码描述