<div dir="ltr"><div><div><div>Thanks Nyall and Salvatore. <br></div>I missed the SIP_OUT specifier of the destinationIdentifier parameter.<br><br></div>Some days ago I saw the PyQGIS API docs from a link by Nyall, but I can't find it now. Where are they?<br><br></div>Giovanni<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-14 15:13 GMT+01:00 Salvatore Larosa <span dir="ltr"><<a href="mailto:lrssvtml@gmail.com" target="_blank">lrssvtml@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Giovanni,<div class="gmail_extra"><br><div class="gmail_quote"><span class="">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.paramet<wbr>erAsSink 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></span><div>it happens here: <a href="https://github.com/qgis/QGIS/blob/master/src/core/processing/qgsprocessingalgorithm.h#L593" target="_blank">https://github.com/qgis/<wbr>QGIS/blob/master/src/core/<wbr>processing/<wbr>qgsprocessingalgorithm.h#L593</a></div><span class=""><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></span><div>the destinationIdentifier string namely the map layer id: <a href="https://github.com/qgis/QGIS/blob/master/src/core/processing/qgsprocessingalgorithm.h#L588" target="_blank">https://github.com/qgis/<wbr>QGIS/blob/master/src/core/<wbr>processing/<wbr>qgsprocessingalgorithm.h#L588</a></div></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_-4475723075006950874gmail_signature">Salvatore Larosa<br>linkedIn: <a href="http://linkedin.com/in/larosasalvatore" target="_blank">http://linkedin.com/in/<wbr>larosasalvatore</a><br>twitter: @lrssvt<br>skype: s.larosa<br>IRC: lrssvt on freenode<br></div>
</font></span></div></div>
</blockquote></div><br></div>