add hint about pushing information to the user in script template

This commit is contained in:
Etienne Trimaille 2018-06-28 21:34:21 -04:00
parent 22ba501642
commit 0685197b6c
No known key found for this signature in database
GPG Key ID: F498BE2C49372269

View File

@ -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