mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
add hint about pushing information to the user in script template
This commit is contained in:
parent
22ba501642
commit
0685197b6c
@ -149,6 +149,9 @@ class ExampleProcessingAlgorithm(QgsProcessingAlgorithm):
|
||||
source.sourceCrs()
|
||||
)
|
||||
|
||||
# Send some information to the user
|
||||
feedback.pushInfo('CRS is {}'.format(source.sourceCrs().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
|
||||
# case we use the pre-built invalidSinkError method to return a standard
|
||||
|
Loading…
x
Reference in New Issue
Block a user