1 |
3032
|
perry
|
<!-- 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 |
|
|
|
6 |
|
|
<wfs:GetFeature service="WFS" version="1.0.0"
|
7 |
|
|
outputFormat="GML2"
|
8 |
|
|
xmlns:topp="http://www.openplans.org/topp"
|
9 |
|
|
xmlns:wfs="http://www.opengis.net/wfs"
|
10 |
|
|
xmlns:ogc="http://www.opengis.net/ogc"
|
11 |
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
12 |
|
|
xsi:schemaLocation="http://www.opengis.net/wfs
|
13 |
|
|
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
|
14 |
|
|
<wfs:Query typeName="topp:states">
|
15 |
|
|
<ogc:Filter>
|
16 |
|
|
<ogc:PropertyIsGreaterThan>
|
17 |
|
|
<ogc:Div>
|
18 |
|
|
<ogc:PropertyName>MANUAL</ogc:PropertyName>
|
19 |
|
|
<ogc:PropertyName>WORKERS</ogc:PropertyName>
|
20 |
|
|
</ogc:Div>
|
21 |
|
|
<ogc:Literal>0.25</ogc:Literal>
|
22 |
|
|
</ogc:PropertyIsGreaterThan>
|
23 |
|
|
</ogc:Filter>
|
24 |
|
|
</wfs:Query>
|
25 |
|
|
</wfs:GetFeature>
|