Project

General

Profile

1
<!-- Performs an intersects against a point.  This is functionally -->
2
<!-- equivalent to <Not><Disjoint>.  This call can be used by a    -->
3
<!-- client application to select a feature clicked on.  
4

    
5
     This will search through the dataset and return any polygons that
6
     contain the search point.  
7
     
8
     If you were searching in a point or line dataset, you might want
9
     to make a little polygon to search with instead of a single point
10
     so the user doesnt have to *exactly* click on the (mathematically
11
     infinitely thin) line or point.     
12

    
13
 -->
14
<wfs:GetFeature service="WFS" version="1.1.0"
15
  xmlns:topp="http://www.openplans.org/topp"
16
  xmlns:wfs="http://www.opengis.net/wfs"
17
  xmlns="http://www.opengis.net/ogc"
18
  xmlns:gml="http://www.opengis.net/gml"
19
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20
  xsi:schemaLocation="http://www.opengis.net/wfs
21
                      http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
22
  <wfs:Query typeName="topp:states">
23
    <Filter>
24
      <Intersects>
25
        <PropertyName>the_geom</PropertyName>
26
          <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
27
            <gml:coordinates>-74.817265,40.5296504</gml:coordinates>
28
          </gml:Point>
29
        </Intersects>
30
      </Filter>
31
  </wfs:Query>
32
</wfs:GetFeature>
33
 
(20-20/46)