Skip to content

Commit

Permalink
update template to current api (3.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Aug 31, 2018
1 parent 6917860 commit ddc5e52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/script/ScriptTemplate.py
Expand Up @@ -150,7 +150,7 @@ def processAlgorithm(self, parameters, context, feedback):
)

# 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
Expand Down Expand Up @@ -181,7 +181,7 @@ def processAlgorithm(self, parameters, context, feedback):
# 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,
Expand Down

0 comments on commit ddc5e52

Please sign in to comment.