<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV>
<P><SPAN class=654542909-15052011><FONT size=2 face=Arial>Hi,</FONT></SPAN></P>
<P><SPAN class=654542909-15052011><FONT size=2 face=Arial>What is the situation 
with the ticket <A 
href="https://trac.osgeo.org/qgis/ticket/3728">https://trac.osgeo.org/qgis/ticket/3728</A> about 
making filtered GetFeatures from WFS?</FONT></SPAN></P>
<P><SPAN class=654542909-15052011><FONT size=2 face=Arial>For example with 
OpenStreetMap WFS layers the plain GetFeature (possibly with BBOX) does not 
yield the most usable data for users. B</FONT></SPAN><SPAN 
class=654542909-15052011><FONT size=2 face=Arial>y this request the user gets 
all kind of polygons like buildings, lakes and playgrounds.</FONT></SPAN></P>
<P><SPAN class=654542909-15052011><FONT size=2 face=Arial><A 
href="http://188.64.1.61/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getfeature&typename=tows:osm_polygon&maxfeatures=100">http://188.64.1.61/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getfeature&typename=tows:osm_polygon&maxfeatures=100</A></FONT></SPAN></P>
<P><SPAN class=654542909-15052011></SPAN><FONT size=2 face=Arial><SPAN 
class=654542909-15052011>While this one gives just lakes with natural=water 
filter:</SPAN></FONT></P>
<P><FONT size=2 face=Arial><A 
href="http://188.64.1.61/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getfeature&typename=tows:osm_polygon&maxfeatures=100&filter=%3CFilter%20%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etows:natural%3C/PropertyName%3E%3CLiteral%3Ewater%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E">http://188.64.1.61/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getfeature&typename=tows:osm_polygon&maxfeatures=100&filter=%3CFilter%20%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etows:natural%3C/PropertyName%3E%3CLiteral%3Ewater%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E</A></FONT></P>
<P><FONT size=2 face=Arial><SPAN class=654542909-15052011>Naturally the normal 
usage is to use http POST but it is easier to show an example with http GET 
url.</SPAN></FONT></P>
<P><FONT size=2 face=Arial><SPAN class=654542909-15052011>Of the existing open 
source GIS programs perhaps the best examples about how to build WFS 
filters can be found from iGeoDesktop (http://<A 
href="http://www.deegree.org">www.deegree.org</A>) and Kosmo (<A 
href="http://opengeo.es">http://opengeo.es</A>). Observe that user can also 
create spatial filters by using the geometry of a feature that is selected from 
the map window.  This enables queries like "select features having 
ATTRIBUTE1=xxx AND ATTRIBUTE2=YYY within distance of 20km from the selected 
feature".  </SPAN></FONT><FONT size=2 face=Arial><SPAN 
class=654542909-15052011>CadCorp SIS MapBrowser is also worth having a 
look.</SPAN></FONT></P>
<P><FONT size=2 face=Arial><SPAN class=654542909-15052011>-Jukka 
Rahkonen-</SPAN></FONT></P>
<P><FONT size=2 face=Arial><SPAN 
class=654542909-15052011></SPAN></FONT> </P>
<P><FONT size=2 face=Arial></FONT> </P></DIV></BODY></HTML>