Project

General

Profile

1
<!-- Performs a get feature with a bounding box filter.      -->
2
<!-- The BBOX filter is a convenience for a <Not><Disjoint>, -->
3
<!-- it fetches all features that spatially interact with the given box. -->
4
<!-- This example also shows how to request specific properties, in this -->
5
<!-- case we just get the STATE_NAME and PERSONS -->
6

    
7
<wfs:GetFeature service="WFS" version="1.1.0"
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.1.0/wfs.xsd">
15
  <wfs:Query typeName="topp:states">
16
    <wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName>
17
    <wfs:PropertyName>topp:PERSONS</wfs:PropertyName>
18
    <ogc:Filter>
19
      <ogc:BBOX>
20
        <ogc:PropertyName>the_geom</ogc:PropertyName>
21
        <gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
22
           <gml:lowerCorner>-75.102613 40.212597</gml:lowerCorner>
23
           <gml:upperCorner>-72.361859 41.512517</gml:upperCorner>
24
        </gml:Envelope>
25
      </ogc:BBOX>
26
   </ogc:Filter>
27
  </wfs:Query>
28
</wfs:GetFeature>
(11-11/46)