From ddc5e52ab35e2e9b7188f7f5154cc9065d9406db Mon Sep 17 00:00:00 2001 From: Luigi Pirelli Date: Fri, 31 Aug 2018 10:41:22 +0200 Subject: [PATCH] update template to current api (3.4) --- python/plugins/processing/script/ScriptTemplate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/plugins/processing/script/ScriptTemplate.py b/python/plugins/processing/script/ScriptTemplate.py index 02606138620..0631a3ecda8 100644 --- a/python/plugins/processing/script/ScriptTemplate.py +++ b/python/plugins/processing/script/ScriptTemplate.py @@ -150,7 +150,7 @@ class ExampleProcessingAlgorithm(QgsProcessingAlgorithm): ) # Send some information to the user - feedback.pushInfo('CRS is {}'.format(source.sourceCrs().authid())) + feedback.pushInfo('CRS is {}'.format(source.crs().authid())) # If sink was not created, throw an exception to indicate that the algorithm # encountered a fatal error. The exception text can be any string, but in this @@ -181,7 +181,7 @@ class ExampleProcessingAlgorithm(QgsProcessingAlgorithm): # to the executed algorithm, and that the executed algorithm can send feedback # reports to the user (and correctly handle cancelation and progress reports!) if False: - buffered_layer = processing.run("native:buffer", param={ + buffered_layer = processing.run("native:buffer", { 'INPUT': dest_id, 'DISTANCE': 1.5, 'SEGMENTS': 5,