<div dir="ltr">Thanks Matteo and Nyall,<div><br></div><div>I always appreciate your help and thanks for the various methods and pitfalls. It looks like one of these ideas should work.</div><div><br></div><div>All the best,</div><div><br></div><div>Calvin</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 12, 2021 at 2:16 AM matteo <<a href="mailto:matteo.ghetta@gmail.com">matteo.ghetta@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Calvin,<br>
<br>
I normally use addLayerToLoadOnCompletion to load some additional layer <br>
into QGIS from Processing script:<br>
<br>
context.addLayerToLoadOnCompletion(<br>
     yourlayer.source(),<br>
     context.LayerDetails(<br>
             name='mylayername',<br>
             project=context.project()<br>
         )<br>
)<br>
<br>
but maybe there are better methods :)<br>
<br>
Cheers<br>
<br>
Matteo<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>