mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
update template to current api (3.4)
This commit is contained in:
parent
6917860d94
commit
ddc5e52ab3
@ -150,7 +150,7 @@ class ExampleProcessingAlgorithm(QgsProcessingAlgorithm):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Send some information to the user
|
# 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
|
# 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
|
# 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
|
# to the executed algorithm, and that the executed algorithm can send feedback
|
||||||
# reports to the user (and correctly handle cancelation and progress reports!)
|
# reports to the user (and correctly handle cancelation and progress reports!)
|
||||||
if False:
|
if False:
|
||||||
buffered_layer = processing.run("native:buffer", param={
|
buffered_layer = processing.run("native:buffer", {
|
||||||
'INPUT': dest_id,
|
'INPUT': dest_id,
|
||||||
'DISTANCE': 1.5,
|
'DISTANCE': 1.5,
|
||||||
'SEGMENTS': 5,
|
'SEGMENTS': 5,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user