[QGIS-Developer] Python QgsProcessingLagorithm.parameterAsSink return values

G. Allegri giohappy at gmail.com
Wed Feb 14 06:33:03 PST 2018


Thanks Nyall and Salvatore.
I missed the SIP_OUT specifier of the destinationIdentifier parameter.

Some days ago I saw the PyQGIS API docs from a link by Nyall, but I can't
find it now. Where are they?

Giovanni

2018-02-14 15:13 GMT+01:00 Salvatore Larosa <lrssvtml at gmail.com>:

> 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/5d5386ca/attachment.html>


More information about the QGIS-Developer mailing list