WFS_mathGetFeature.xml 1006 B

1234567891011121314151617181920212223242526
  1. <!-- Example of a getFeature with a math filter. In this case -->
  2. <!-- we want the states that have over 25% of their workers -->
  3. <!-- doing manual labor. So we divide the manual field by -->
  4. <!-- the total number of workers and compare it against 0.25 -->
  5. <wfs:GetFeature service="WFS" version="1.0.0"
  6. outputFormat="GML2"
  7. xmlns:topp="http://www.openplans.org/topp"
  8. xmlns:wfs="http://www.opengis.net/wfs"
  9. xmlns:ogc="http://www.opengis.net/ogc"
  10. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  11. xsi:schemaLocation="http://www.opengis.net/wfs
  12. http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
  13. <wfs:Query typeName="topp:states">
  14. <ogc:Filter>
  15. <ogc:PropertyIsGreaterThan>
  16. <ogc:Div>
  17. <ogc:PropertyName>MANUAL</ogc:PropertyName>
  18. <ogc:PropertyName>WORKERS</ogc:PropertyName>
  19. </ogc:Div>
  20. <ogc:Literal>0.25</ogc:Literal>
  21. </ogc:PropertyIsGreaterThan>
  22. </ogc:Filter>
  23. </wfs:Query>
  24. </wfs:GetFeature>