WFS_getFeature-1.0.xml 1.2 KB

1234567891011121314151617181920212223242526272829
  1. <!-- Performs a get feature. Feel free to play with the Filter elements, -->
  2. <!-- to get different results. No filter will get all features, and you -->
  3. <!-- can do filtering on spatial and non-spatial attributes. See the ogc -->
  4. <!-- filter specification http://www.opengis.org/docs/02-059.pdf for the -->
  5. <!-- the complete syntax and examples. -->
  6. <!--
  7. This particular Query will return the topp:states with the FID (unique ID)
  8. of 'states:3'. (Thats Delaware)
  9. You can also try a filter like:
  10. <PropertyIsEqualTo>
  11. <PropertyName>STATE_NAME</PropertyName>
  12. <Literal>Delaware</Literal>
  13. </PropertyIsEqualTo>
  14. -->
  15. <wfs:GetFeature service="WFS" version="1.0.0"
  16. outputFormat="GML2"
  17. xmlns:topp="http://www.openplans.org/topp"
  18. xmlns:wfs="http://www.opengis.net/wfs"
  19. xmlns:ogc="http://www.opengis.net/ogc"
  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. <ogc:Filter>
  25. <ogc:FeatureId fid="states.3"/>
  26. </ogc:Filter>
  27. </wfs:Query>
  28. </wfs:GetFeature>