Skip to content

Commit ddc5e52

Browse files
committed
update template to current api (3.4)
1 parent 6917860 commit ddc5e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/script/ScriptTemplate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def processAlgorithm(self, parameters, context, feedback):
150150
)
151151

152152
# Send some information to the user
153-
feedback.pushInfo('CRS is {}'.format(source.sourceCrs().authid()))
153+
feedback.pushInfo('CRS is {}'.format(source.crs().authid()))
154154

155155
# If sink was not created, throw an exception to indicate that the algorithm
156156
# encountered a fatal error. The exception text can be any string, but in this
@@ -181,7 +181,7 @@ def processAlgorithm(self, parameters, context, feedback):
181181
# to the executed algorithm, and that the executed algorithm can send feedback
182182
# reports to the user (and correctly handle cancelation and progress reports!)
183183
if False:
184-
buffered_layer = processing.run("native:buffer", param={
184+
buffered_layer = processing.run("native:buffer", {
185185
'INPUT': dest_id,
186186
'DISTANCE': 1.5,
187187
'SEGMENTS': 5,

0 commit comments

Comments
 (0)