[QGIS-Developer] Loading multiple raster images from processing algorithm

matteo matteo.ghetta at gmail.com
Thu Mar 11 23:16:43 PST 2021


Hi Calvin,

I normally use addLayerToLoadOnCompletion to load some additional layer 
into QGIS from Processing script:

context.addLayerToLoadOnCompletion(
     yourlayer.source(),
     context.LayerDetails(
             name='mylayername',
             project=context.project()
         )
)

but maybe there are better methods :)

Cheers

Matteo


More information about the QGIS-Developer mailing list