简要描述
  • 选择两条不相交的管线,然后计算水平间距

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

服务名称

  • pipe:HoriClearance

请求方式
  • POST

参数
参数名 必选 类型 说明
_gid_a string 第一个要素的gid值
_features_a Reference 第一个图层
_grid_b string 第二个要素的gid值
_features_b Reference 第二个图层

请求示例
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <wps:Execute xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" service="WPS" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wps="http://www.opengis.net/wps/1.0.0" version="1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml" xmlns:wcs="http://www.opengis.net/wcs/1.1.1">
  3. <ows:Identifier>pipe:HoriClearance</ows:Identifier>
  4. <wps:DataInputs>
  5. <Input>
  6. <ows:Identifier>_gid_a</ows:Identifier>
  7. <wps:Data>
  8. <wps:LiteralData>8669</wps:LiteralData>
  9. </wps:Data>
  10. </Input>
  11. <Input>
  12. <ows:Identifier>_features_a</ows:Identifier>
  13. <wps:Reference mimeType="text/xml;subtype=gml/2.1.2" method="POST" xlink:href="http://geniusserver/wfs/shouguangguanxian">
  14. <wps:Body>
  15. <wfs:GetFeature outputFormat="text/xml;subtype=gml/2.1.2" service="WFS" version="1.0.0">
  16. <wfs:Query typeName="yt_wsl"/>
  17. </wfs:GetFeature>
  18. </wps:Body>
  19. </wps:Reference>
  20. </Input>
  21. <Input>
  22. <ows:Identifier>_gid_b</ows:Identifier>
  23. <wps:Data>
  24. <wps:LiteralData>8669</wps:LiteralData>
  25. </wps:Data>
  26. </Input>
  27. <Input>
  28. <ows:Identifier>_features_b</ows:Identifier>
  29. <wps:Reference mimeType="text/xml;subtype=gml/2.1.2" method="POST" xlink:href="http://geniusserver/wfs/shouguangguanxian">
  30. <wps:Body>
  31. <wfs:GetFeature outputFormat="text/xml;subtype=gml/2.1.2" service="WFS" version="1.0.0">
  32. <wfs:Query typeName="yt_wsl"/>
  33. </wfs:GetFeature>
  34. </wps:Body>
  35. </wps:Reference>
  36. </Input>
  37. </wps:DataInputs>
  38. <wps:ResponseForm>
  39. <wps:RawDataOutput>
  40. <ows:Identifier>result</ows:Identifier>
  41. </wps:RawDataOutput>
  42. </wps:ResponseForm>
  43. </wps:Execute>

返回示例
{
 "typeA":"aaa",
 "typeB":"aaa",
 "distance":""
}

返回参数说明
参数名 类型 说明
typeA string 第一个管线类型
typeB string 第二个管线类型
distance string 间距

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