[gdal-dev] Re: Apply Spatial Operator

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Mon Apr 2 10:43:18 EDT 2012

xavier lhomme <lhomme.xavier <at> gmail.com> writes:

> Hi I'm connected to a WFS Source. I want to filter with a polygon and specific
spatial operators like contains , touches, intersects,...  In the API the layer
has the SpatialFilter function where we could set the Geometry but I dont find
any function for setting the spatial operator. 
>  Do I need to filter after obtenaing the Geometry with GetFeature ? Thanks in
advance xav


How about learning to use the OGC Filter Encoding system, send WFS queries with
wget or curl and store the result as GML and continue with GDAL? There are some
examples on this page http://latuviitta.org/Http-POST-ja-Filter.php

Right now the target server seems to be down. I sent a request for reboot so
sooner or later the server will work again.

Page is in Finnish but you can try the examples with Firefox and Poster
extension. Use this as the server base URL

and then just copy and paste the <wfs:GetFeature stuff into Poster and send.

Kosmo GIS is pretty good with spatial filters even the way to make them is a bit
tricky. After the server is rebooted this link will show a short video about
that example 

-Jukka Rahkonen-

More information about the gdal-dev mailing list