<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Andrew,</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 9, 2018 at 2:57 PM Andrew C <<a href="mailto:andrew.cutts@gmail.com">andrew.cutts@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"><div dir="ltr"><div>I am not clear on how
QgsFeatureSinkis working, perhaps that is why I am not getting the buffered layer? Normally in a script I could try printing variables I cannot see where these are printed either when I tested.<br></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">I think you'd need an output layer instead of a feature sink. Have a look at <a href="https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/qgis/PostGISExecuteAndLoadSQL.py">https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/qgis/PostGISExecuteAndLoadSQL.py</a></div><br>self.addOutput(QgsProcessingOutputVectorLayer(<br><div class="gmail_default" style="font-size:small;display:inline">   </div>self.OUTPUT,<br><div class="gmail_default" style="font-size:small;display:inline">   </div><a href="http://self.tr">self.tr</a>("Output layer"),<br><div class="gmail_default" style="font-size:small;display:inline">   </div>QgsProcessing.TypeVectorAnyGeometry))<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Regards,</div></div><div class="gmail_default" style="font-size:small">Anita</div><div class="gmail_default" style="font-size:small"><br></div></div></div>