Re: [Qgis-user] QGIS 3 Processing question

2018-07-04 Thread Frank Broniewski
://github.com/frankbroniewski/polygoncenterline/blob/master/PolygonCenterline.py -Ursprüngliche Nachricht- Von: Nyall Dawson Gesendet: Dienstag, 3. Juli 2018 11:55 An: Frank Broniewski Cc: qgis-user Betreff: Re: [Qgis-user] QGIS 3 Processing question > Nyall's tip with the temporary la

Re: [Qgis-user] QGIS 3 Processing question

2018-07-03 Thread Nyall Dawson
> 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

Re: [Qgis-user] QGIS 3 Processing question

2018-07-03 Thread Frank Broniewski
ter -Ursprüngliche Nachricht- Von: Nyall Dawson Gesendet: Dienstag, 3. Juli 2018 01:37 An: Frank Broniewski Cc: qgis-user Betreff: Re: [Qgis-user] QGIS 3 Processing question On Fri, 29 Jun 2018 at 17:35, Frank Broniewski wrote: > def processAlgorithm(self, parameters, context, fe

Re: [Qgis-user] QGIS 3 Processing question

2018-07-02 Thread Nyall Dawson
On Fri, 29 Jun 2018 at 17:35, Frank Broniewski wrote: > def processAlgorithm(self, parameters, context, feedback): > # qgis:pointsalonglines > params = { > 'INPUT': parameters[self.INPUT], > 'DISTANCE': parameters[self.DISTANCE], >

Re: [Qgis-user] QGIS 3 Processing question

2018-07-02 Thread Frank Broniewski
Dawson ; qgis-user Betreff: Re: [Qgis-user] QGIS 3 Processing question Hi, I had the same issue. I had to loop over the output vector layer (child alg) to feed the sink (main alg). Maybe is not the simpliest/shortest/fastest, but it works. Something like that : o = processing.run

Re: [Qgis-user] QGIS 3 Processing question

2018-07-02 Thread Frank Broniewski
Frank Broniewski Cc: qgis-user Betreff: Re: [Qgis-user] QGIS 3 Processing question Hi Frank, On Fri, 29 Jun 2018 at 09:35, Frank Broniewski mailto:ha...@frankbroniewski.com> > wrote: Anyway, my testing-algorithm-script is still not working. It runs through, but I do not get the expected r

Re: [Qgis-user] QGIS 3 Processing question

2018-07-01 Thread Rudi von Staden
Hi Frank, On Fri, 29 Jun 2018 at 09:35, Frank Broniewski wrote: > Anyway, my testing-algorithm-script is still not working. It runs through, > but I do not get the expected result loaded into the layer tree. I suppose > it runs through - the output from the 'qgis:pointsalonglines' is a >

Re: [Qgis-user] QGIS 3 Processing question

2018-06-29 Thread Jean-Baptiste Desbas
, > 'END_OFFSET': 0, > 'OUTPUT': 'memory:' > } > points = processing.run( > 'qgis:pointsalonglines', > params, context=context, feedback=feedback > )['OUTPUT'] > > return {self.OUTPUT: points}

Re: [Qgis-user] QGIS 3 Processing question

2018-06-29 Thread Frank Broniewski
rams, context=context, feedback=feedback )['OUTPUT'] return {self.OUTPUT: points} -Ursprüngliche Nachricht- Von: Nyall Dawson Gesendet: Freitag, 29. Juni 2018 01:04 An: Frank Broniewski Cc: qgis-user Betreff: Re: [Qgis-user] QGIS 3 Processing question On Fri, 29 Jun 2018 a

Re: [Qgis-user] QGIS 3 Processing question

2018-06-28 Thread Nyall Dawson
On Fri, 29 Jun 2018 at 07:14, Frank Broniewski wrote: > > def processAlgorithm(self, parameters, context, feedback): You're making this tricky for yourself! Cut out everything in processAlgorithm related to self.INPUT, and just pass the parameter value direct to the child algorithm to

[Qgis-user] QGIS 3 Processing question

2018-06-28 Thread Frank Broniewski
Hi all, I am getting my feet wet with the new QGIS 3 Processing script syntax. In my script I want to use some other processing scripts from the toolbox. I think I got most things right, but I do not get a result back. For testing I just try to use ‘qgis:pointsalonglines’ on a temporary