[QGIS-Developer] Python QgsProcessingLagorithm.parameterAsSink return values

Salvatore Larosa lrssvtml at gmail.com
Wed Feb 14 06:13:07 PST 2018


Hi Giovanni,

On Wed, Feb 14, 2018 at 2:13 PM, G. Allegri <giohappy at gmail.com> wrote:

> I'm trying to follow the code that produces the two return values from
> QgsProcessingLagorithm.parameterAsSink in Python. I can't find where the
> sip interface (or whatever) changes the API return value
> <https://qgis.org/api/classQgsProcessingAlgorithm.html#ad9a7c675082ffe996184e37cf4913e00>
> to the two returned values "sink" and "dest_id".
>
> Where does it happen?
>

it happens here:
https://github.com/qgis/QGIS/blob/master/src/core/processing/qgsprocessingalgorithm.h#L593


> What does the second parameter (destination id) refer to?
>

the destinationIdentifier string namely the map layer id:
https://github.com/qgis/QGIS/blob/master/src/core/processing/qgsprocessingalgorithm.h#L588

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180214/dba765d2/attachment.html>


More information about the QGIS-Developer mailing list