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 polygon
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 handle
SET': 0,
'END_OFFSET': 0,
'OUTPUT': 'memory:'
}
points = processing.run(
'qgis:pointsalonglines',
params, context=context, feedback=feedback
)['OUTPUT']
return {self.OUTP
lines
> params = {
> 'INPUT': parameters[self.INPUT],
> 'DISTANCE': parameters[self.DISTANCE],
> 'START_OFFSET': 0,
> 'END_OFFSET': 0,
> 'OUTPUT': 'memory:
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
> QgsVec
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
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
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],
> 'START_OF
rassink#qgis.core.QgsProcessingAlgorithm.addParameter
-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:
>
> 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
https://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 te
11 matches
Mail list logo