[Qgis-developer] [Solved] Python: change query of PostGIS layer

Bernhard Ströbl bernhard.stroebl at jena.de
Wed May 2 23:31:21 PDT 2012

Dear Martin,

yes that works. I must have been blindfold, thanks for pointing it out 
to me!


Am 02.05.2012 23:11, schrieb Martin Dobias:
> On Mon, Apr 30, 2012 at 1:10 PM, Bernhard Ströbl
> <bernhard.stroebl at jena.de>  wrote:
>> Hi list,
>> I am trying to change the query of an already loaded PostGIS layer from
>> within a plugin. Same as if I right-clicked on the layer, chose "Query..."
>> and entered a WHERE clause there.
> That should be as simple as:
>>>> vlayer.setSubsetString("category = 3")
> Martin

________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Server.

More information about the Qgis-developer mailing list