WFS_getFeatureBBOX-1.1.xml 1.2 KB

12345678910111213141516171819202122232425262728
  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. <wfs:GetFeature service="WFS" version="1.1.0"
  7. xmlns:topp="http://www.openplans.org/topp"
  8. xmlns:wfs="http://www.opengis.net/wfs"
  9. xmlns:ogc="http://www.opengis.net/ogc"
  10. xmlns:gml="http://www.opengis.net/gml"
  11. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12. xsi:schemaLocation="http://www.opengis.net/wfs
  13. http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
  14. <wfs:Query typeName="topp:states">
  15. <wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName>
  16. <wfs:PropertyName>topp:PERSONS</wfs:PropertyName>
  17. <ogc:Filter>
  18. <ogc:BBOX>
  19. <ogc:PropertyName>the_geom</ogc:PropertyName>
  20. <gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
  21. <gml:lowerCorner>-75.102613 40.212597</gml:lowerCorner>
  22. <gml:upperCorner>-72.361859 41.512517</gml:upperCorner>
  23. </gml:Envelope>
  24. </ogc:BBOX>
  25. </ogc:Filter>
  26. </wfs:Query>
  27. </wfs:GetFeature>