Skip to content

Commit

Permalink
Server: Add example how to filter WFS by polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobMiksch authored and DelazJ committed Nov 28, 2023
1 parent 31e81cf commit 7d5ed01
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/server_manual/services/wfs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,32 @@ In case of multiple typenames, filters have to be enclosed in parentheses:
&TYPENAME=places,countries
&FILTER=(<Filter><PropertyIsEqualTo><PropertyName>name</PropertyName><Literal>Paris</Literal></PropertyIsEqualTo></Filter>)(<Filter><PropertyIsEqualTo><PropertyName>name</PropertyName><Literal>France</Literal></PropertyIsEqualTo></Filter>)
Filter features that intersect with a polygon:

.. code-block:: bash
http://localhost/qgisserver?
SERVICE=WFS
&REQUEST=GetFeature
&VERSION=1.1.0
&TYPENAME=places
&FILTER=<Filter xmlns="http://www.opengis.net/ogc">
<Intersects>
<PropertyName>geometry</PropertyName>
<Polygon xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
<exterior>
<LinearRing>
<posList>
-0.6389 42.5922
10.2683 51.9106
14.5196 41.0320
-0.6389 42.5922
</posList>
</LinearRing>
</exterior>
</Polygon>
</Intersects>
</Filter>
.. _wfs_getfeature_bbox:

Expand Down

0 comments on commit 7d5ed01

Please sign in to comment.