[Qgis-user] QGIS 3 Processing question
Nyall Dawson
nyall.dawson at gmail.com
Tue Jul 3 02:54:39 PDT 2018
> Nyall's tip with the temporary layer store just runs through nicely, but nothing gets added to the layer pane after the script finished.
Sorry - missed something here. Because you're directly using the
output from the child algorithm as your algorithm's final output, you
should also pass the OUTPUT parameter value direct to the child
algorithm. So in
>
> def processAlgorithm(self, parameters, context, feedback):
> # qgis:pointsalonglines
> params = {
> 'INPUT': parameters[self.INPUT],
> 'DISTANCE': parameters[self.DISTANCE],
> 'START_OFFSET': 0,
> 'END_OFFSET': 0,
> 'OUTPUT': 'memory:'
> }
'OUTPUT': 'memory:'
should be
'OUTPUT': parameters[self.OUTPUT]
Nyall
More information about the Qgis-user
mailing list