简要描述
  • 选择一条管线,输入缓冲区距离,返回缓冲区几何体2

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

服务名称

  • pipe:PipeBuffer

请求方式
  • POST

参数
参数名 必选 类型 说明
_gid_a string 第一个要素的gid值
_features_a Reference 第一个图层
distance string 缓冲区距离

请求示例
  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:PipeBuffer</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>distance</ows:Identifier>
  23. <wps:Data>
  24. <wps:LiteralData>8669</wps:LiteralData>
  25. </wps:Data>
  26. </Input>
  27. </wps:DataInputs>
  28. <wps:ResponseForm>
  29. <wps:RawDataOutput mimeType="application/json">
  30. <ows:Identifier>result</ows:Identifier>
  31. </wps:RawDataOutput>
  32. </wps:ResponseForm>
  33. </wps:Execute>

返回示例
{
    "type": "Feature",
    "geometry": {
        "type": "Polygon",
        "coordinates": [[[5, 25], [14, 25], [14, 29], [5, 29], [5, 25]]]
    },
    "properties": {}
}

返回参数说明
  • geojson格式

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