<div dir="ltr">Hi Giovanni,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 14, 2018 at 2:13 PM, G. Allegri <span dir="ltr"><<a href="mailto:giohappy@gmail.com" target="_blank">giohappy@gmail.com</a>></span> wrote:<br><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><div><div><div>I'm trying to follow the code that produces the two return values from QgsProcessingLagorithm.<wbr>parameterAsSink in Python. I can't find where the sip interface (or whatever) changes the <a href="https://qgis.org/api/classQgsProcessingAlgorithm.html#ad9a7c675082ffe996184e37cf4913e00" target="_blank">API return value</a> to the two returned values "sink" and "dest_id".<br><br></div>Where does it happen?<br></div></div></div></div></blockquote><div><br></div><div>it happens here: <a href="https://github.com/qgis/QGIS/blob/master/src/core/processing/qgsprocessingalgorithm.h#L593">https://github.com/qgis/QGIS/blob/master/src/core/processing/qgsprocessingalgorithm.h#L593</a></div><div> </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><div><div></div>What does the second parameter (destination id) refer to?<br></div></div></div></blockquote><div><br></div><div>the destinationIdentifier string namely the map layer id: <a href="https://github.com/qgis/QGIS/blob/master/src/core/processing/qgsprocessingalgorithm.h#L588">https://github.com/qgis/QGIS/blob/master/src/core/processing/qgsprocessingalgorithm.h#L588</a></div></div><div><br></div>-- <br><div class="gmail_signature">Salvatore Larosa<br>linkedIn: <a href="http://linkedin.com/in/larosasalvatore" target="_blank">http://linkedin.com/in/larosasalvatore</a><br>twitter: @lrssvt<br>skype: s.larosa<br>IRC: lrssvt on freenode<br></div>
</div></div>