WPS_aggregate_groupby_1.0.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1" 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">
  2. <ows:Identifier>gs:Aggregate</ows:Identifier>
  3. <wps:DataInputs>
  4. <wps:Input>
  5. <ows:Identifier>features</ows:Identifier>
  6. <wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs" method="POST">
  7. <wps:Body>
  8. <wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" xmlns:sf="http://www.openplans.org/spearfish">
  9. <wfs:Query typeName="topp:states"/>
  10. </wfs:GetFeature>
  11. </wps:Body>
  12. </wps:Reference>
  13. </wps:Input>
  14. <wps:Input>
  15. <ows:Identifier>aggregationAttribute</ows:Identifier>
  16. <wps:Data>
  17. <wps:LiteralData>PERSONS</wps:LiteralData>
  18. </wps:Data>
  19. </wps:Input>
  20. <wps:Input>
  21. <ows:Identifier>function</ows:Identifier>
  22. <wps:Data>
  23. <wps:LiteralData>Count</wps:LiteralData>
  24. </wps:Data>
  25. </wps:Input>
  26. <wps:Input>
  27. <ows:Identifier>function</ows:Identifier>
  28. <wps:Data>
  29. <wps:LiteralData>Average</wps:LiteralData>
  30. </wps:Data>
  31. </wps:Input>
  32. <wps:Input>
  33. <ows:Identifier>singlePass</ows:Identifier>
  34. <wps:Data>
  35. <wps:LiteralData>false</wps:LiteralData>
  36. </wps:Data>
  37. </wps:Input>
  38. <wps:Input>
  39. <ows:Identifier>groupByAttributes</ows:Identifier>
  40. <wps:Data>
  41. <wps:LiteralData>SUB_REGION</wps:LiteralData>
  42. </wps:Data>
  43. </wps:Input>
  44. </wps:DataInputs>
  45. <wps:ResponseForm>
  46. <wps:RawDataOutput mimeType="application/json">
  47. <ows:Identifier>result</ows:Identifier>
  48. </wps:RawDataOutput>
  49. </wps:ResponseForm>
  50. </wps:Execute>