[Qgis-developer] apply a cloned renderer to replicate styling

Giuseppe Sucameli sucameli at faunalia.it
Wed Nov 28 03:14:48 PST 2012


Hi Giovanni,

On Tue, Nov 27, 2012 at 11:30 AM, G. Allegri <giohappy at gmail.com> wrote:
> If I pan/zoom I see
> the new renderer is being used, though the legend is'n updated.

you can update it using
iface.legendInterface().refreshLayerSymbology( layer )

Cheers.

>
> giovanni
>
> 2012/11/27 G. Allegri <giohappy at gmail.com>
>
>> I need to replicate the theming of a vector layer to another one.
>> I thought that cloning the oringinal renderer (being it V2 or not) and
>> applying it to other layer would be enough, but id doesn't have effects. The
>> other layer is applied the default (random) styling.
>> Probably I've misunderstood the renderer mechanism. How should one procede
>> to obtain it?
>>
>> giovanni
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>



-- 
Giuseppe Sucameli - Faunalia


More information about the Qgis-developer mailing list