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 <lrssv...@gmail.com>:

> Hi Giovanni,
>
> On Wed, Feb 14, 2018 at 2:13 PM, G. Allegri <gioha...@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
>
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to