WFS_getFeatureIntersects-1.1.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  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. This will search through the dataset and return any polygons that
  5. contain the search point.
  6. If you were searching in a point or line dataset, you might want
  7. to make a little polygon to search with instead of a single point
  8. so the user doesnt have to *exactly* click on the (mathematically
  9. infinitely thin) line or point.
  10. -->
  11. <wfs:GetFeature service="WFS" version="1.1.0"
  12. xmlns:topp="http://www.openplans.org/topp"
  13. xmlns:wfs="http://www.opengis.net/wfs"
  14. xmlns="http://www.opengis.net/ogc"
  15. xmlns:gml="http://www.opengis.net/gml"
  16. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  17. xsi:schemaLocation="http://www.opengis.net/wfs
  18. http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
  19. <wfs:Query typeName="topp:states">
  20. <Filter>
  21. <Intersects>
  22. <PropertyName>the_geom</PropertyName>
  23. <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
  24. <gml:coordinates>-74.817265,40.5296504</gml:coordinates>
  25. </gml:Point>
  26. </Intersects>
  27. </Filter>
  28. </wfs:Query>
  29. </wfs:GetFeature>