[QGIS-Developer] Load layer with style in Processing plugin

matteo matteo.ghetta at gmail.com
Wed May 30 03:22:32 PDT 2018


Hi devs,

is it possible to load a layer (vector or raster) created in a
Processing script/algorithm from the script itself without using the
specific algorithm "set style for raster layer"?

I'm using context.addLayerToLoadOnCompletion() to load the layers and I
have a separated function that creates the style (as qml file with the
same name of the layer). But when the layers are loaded the styles
aren't (even if correctly created in the folder and it works if manually
loaded in QGIS).

Thanks for any suggestion

Cheers

Matteo





More information about the QGIS-Developer mailing list