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

C Hamilton adenaculture at gmail.com
Fri Mar 12 06:31:32 PST 2021


Thanks Matteo and Nyall,

I always appreciate your help and thanks for the various methods and
pitfalls. It looks like one of these ideas should work.

All the best,

Calvin

On Fri, Mar 12, 2021 at 2:16 AM matteo <matteo.ghetta at gmail.com> wrote:

> 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
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210312/6dbebac5/attachment-0001.html>


More information about the QGIS-Developer mailing list