[Qgis-user] WFS with filters
Stefan Keller
sfkeller at gmail.com
Wed Jun 1 13:58:35 PDT 2011
Hi Jukka
I think it's now implemented in the trunk (see qgis-dev).
It's a free text field when opening the WFS.
Yours, Stefan
2011/5/15 Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi>:
> Hi,
>
> What is the situation with the ticket
> https://trac.osgeo.org/qgis/ticket/3728 about making filtered GetFeatures
> from WFS?
>
> For example with OpenStreetMap WFS layers the plain GetFeature (possibly
> with BBOX) does not yield the most usable data for users. By this request
> the user gets all kind of polygons like buildings, lakes and playgrounds.
>
> http://188.64.1.61/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getfeature&typename=tows:osm_polygon&maxfeatures=100
>
> While this one gives just lakes with natural=water filter:
>
> 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
>
> Naturally the normal usage is to use http POST but it is easier to show an
> example with http GET url.
>
> Of the existing open source GIS programs perhaps the best examples about how
> to build WFS filters can be found from iGeoDesktop (http://www.deegree.org)
> and Kosmo (http://opengeo.es). 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". CadCorp SIS MapBrowser is also worth having a look.
>
> -Jukka Rahkonen-
>
>
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
More information about the Qgis-user
mailing list