WFS_getFeatureBBOX-1.0.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.0.0"
  7. outputFormat="GML2"
  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.0.0/WFS-basic.xsd">
  15. <wfs:Query typeName="topp:states">
  16. <ogc:PropertyName>topp:STATE_NAME</ogc:PropertyName>
  17. <ogc:PropertyName>topp:PERSONS</ogc:PropertyName>
  18. <ogc:Filter>
  19. <ogc:BBOX>
  20. <ogc:PropertyName>the_geom</ogc:PropertyName>
  21. <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
  22. <gml:coordinates>-75.102613,40.212597 -72.361859,41.512517</gml:coordinates>
  23. </gml:Box>
  24. </ogc:BBOX>
  25. </ogc:Filter>
  26. </wfs:Query>
  27. </wfs:GetFeature>