WFS_getFeatureNotDisjoint-2.0.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This example demonstrates a WFS 2.0 GetFeature POST request.
  4. WFS 2.0 does not depend on any one GML version and thus
  5. requires an explicit namespace and schemaLocation for GML.
  6. This spatial filter selects a single feature with
  7. gml:id="bugsites.2".
  8. See also:
  9. WFS Standard: http://www.opengeospatial.org/standards/wfs
  10. Filter Encoding Standard: http://www.opengeospatial.org/standards/filter
  11. -->
  12. <wfs:GetFeature service="WFS" version="2.0.0"
  13. xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0"
  14. xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:sf="http://www.openplans.org/spearfish"
  15. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  16. xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd
  17. http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd">
  18. <wfs:Query typeNames="sf:bugsites">
  19. <fes:Filter>
  20. <fes:Not>
  21. <fes:Disjoint>
  22. <fes:ValueReference>sf:the_geom</fes:ValueReference>
  23. <!-- gml:id is mandatory on GML 3.2 geometry elements -->
  24. <gml:Polygon gml:id="polygon.1"
  25. srsName='http://www.opengis.net/def/crs/EPSG/0/26713'>
  26. <gml:exterior>
  27. <gml:LinearRing>
  28. <!-- pairs must form a closed ring -->
  29. <gml:posList>590431 4915204 590430
  30. 4915205 590429 4915204 590430
  31. 4915203 590431 4915204</gml:posList>
  32. </gml:LinearRing>
  33. </gml:exterior>
  34. </gml:Polygon>
  35. </fes:Disjoint>
  36. </fes:Not>
  37. </fes:Filter>
  38. </wfs:Query>
  39. </wfs:GetFeature>