Project

General

Profile

1
<!-- Performs a between filter to find the states with an area
2
     between 100,000 and 150,000.
3
     Also, it just returns the STATE_NAME, LAND_KM, and geometry 
4
     (instead of all the attributes).
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:gml="http://www.opengis.net/gml"
12
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13
  xsi:schemaLocation="http://www.opengis.net/wfs
14
                      http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
15
  <wfs:Query typeName="topp:states">
16
  <ogc:PropertyName>topp:STATE_NAME</ogc:PropertyName> 
17
  <ogc:PropertyName>topp:LAND_KM</ogc:PropertyName> 
18
   <ogc:PropertyName>topp:the_geom</ogc:PropertyName> 
19
<ogc:Filter>
20
<ogc:PropertyIsBetween>
21
<ogc:PropertyName>topp:LAND_KM</ogc:PropertyName>
22
<ogc:LowerBoundary><ogc:Literal>100000</ogc:Literal></ogc:LowerBoundary>
23
<ogc:UpperBoundary><ogc:Literal>150000</ogc:Literal></ogc:UpperBoundary>
24
</ogc:PropertyIsBetween>
25
</ogc:Filter>
26
  </wfs:Query>
27
</wfs:GetFeature> 
(5-5/20)