[Qgis-developer] Changing the Filter of an existing layer

Giuseppe Sucameli brush.tyler at gmail.com
Wed Jun 20 08:06:24 PDT 2012


Hi Andreas,

On Wed, Jun 20, 2012 at 4:49 PM, Andreas Neumann <a.neumann at carto.net> wrote:
> is there an easier/more elegant way to change the filter of an
> existing layer?

yes, it's QgsVectorLayer::setSubsetString(QString subset)

Regards.

>
> Thanks if you have any ideas or even sample code on how to achieve this.
>
> Andreas
>
> --
> --
> Andreas Neumann
> Böschacherstrasse 10A
> 8624 Grüt (Gossau ZH)
> Switzerland
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Giuseppe Sucameli


More information about the Qgis-developer mailing list