File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ feedback object. E.g.
6969
7070- Use exceptions only for FATAL errors which force a model to terminate. Algorithms should handle common cases
7171such as having no features in an input layer without throwing exceptions (instead, an empty layer should be output). This
72- allows more flexibility for users creating models. They may have created models which "route" features to different algorithms
72+ allows greater flexibility for users creating models. They may have created models which "route" features to different algorithms
7373based on some criteria, and it can be a valid case that no features satisfy this criteria. If your algorithm throws an
7474exception upon encountering an empty layer, it prevents it being used in these flexible models. Instead, use the feedback
7575object to pushInfo or reportError so that the lack of features is brought to user's attention (and logged) without breaking
@@ -89,7 +89,7 @@ can be used in expressions or custom python code in later steps in a model.
8989- Don't write outputs using TableWriter or by directly creating a CSV file. Wherever possible use a feature sink instead so that the
9090output is created as a proper vector layer. This allows other algorithms in a multi-step model to easily use the tabular outputs from the algorithm.
9191
92- - A new API contract for exists for Processing. Now, only the c++ base class (e.g. those prefixed with "Qgs") and the methods from processing.tools
92+ - A new API contract exists for Processing. Now, only the c++ base class (e.g. those prefixed with "Qgs") and the methods from processing.tools
9393are considered stable, public API. All other Processing classes and methods are considered private and may change between QGIS versions. These
9494should not be relied on by custom algorithms.
9595
You can’t perform that action at this time.
0 commit comments