[Qgis-developer] apply a cloned renderer to replicate styling
larrys at dakotacarto.com
Tue Nov 27 09:45:42 PST 2012
On Tue, Nov 27, 2012 at 3:26 AM, G. Allegri <giohappy at gmail.com> wrote:
> 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?
I just exposed QgisApp's mActionCopyStyle and mActionPasteStyle to
QgisInterface . Is this what you are looking for (in Python)?
iface.setActiveLayer( someQgsMapLayer )
iface.setActiveLayer( someotherQgsMapLayer )
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
More information about the Qgis-developer