1 |
3032
|
perry
|
<!-- 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.0.0"
|
15 |
|
|
outputFormat="GML2"
|
16 |
|
|
xmlns:topp="http://www.openplans.org/topp"
|
17 |
|
|
xmlns:wfs="http://www.opengis.net/wfs"
|
18 |
|
|
xmlns="http://www.opengis.net/ogc"
|
19 |
|
|
xmlns:gml="http://www.opengis.net/gml"
|
20 |
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
21 |
|
|
xsi:schemaLocation="http://www.opengis.net/wfs
|
22 |
|
|
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
|
23 |
|
|
<wfs:Query typeName="topp:states">
|
24 |
|
|
<Filter>
|
25 |
|
|
<Intersects>
|
26 |
|
|
<PropertyName>the_geom</PropertyName>
|
27 |
|
|
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
|
28 |
|
|
<gml:coordinates>-74.817265,40.5296504</gml:coordinates>
|
29 |
|
|
</gml:Point>
|
30 |
|
|
</Intersects>
|
31 |
|
|
</Filter>
|
32 |
|
|
</wfs:Query>
|
33 |
|
|
</wfs:GetFeature>
|