Class: QgsProcessingOutputDefinition¶
Base class for the definition of processing outputs.
Output definitions encapsulate the properties regarding the outputs from algorithms, such as generated layers or calculated values.
Class Hierarchy¶
Subclasses¶
A boolean output for processing algorithms.  | 
|
A conditional branch output for processing algorithms, which represents a possible model logic flow which branches out from this algorithm.  | 
|
A file output for processing algorithms.  | 
|
A folder output for processing algorithms.  | 
|
A HTML file output for processing algorithms.  | 
|
A map layer output for processing algorithms, where layers may be either vector or raster.  | 
|
A multi-layer output for processing algorithms which create map layers, when the number and nature of the output layers is not predefined.  | 
|
A numeric output for processing algorithms.  | 
|
A pointcloud layer output for processing algorithms.  | 
|
A raster layer output for processing algorithms.  | 
|
A string output for processing algorithms.  | 
|
A variant output for processing algorithms, capable of storing any QVariant value.  | 
|
A vector layer output for processing algorithms.  | 
|
A vector tile layer output for processing algorithms.  | 
Methods
Returns   | 
|
Returns the description for the output.  | 
|
Returns the name of the output.  | 
|
Sets whether an output was automatically created when adding a parameter.  | 
|
Sets the description for the output.  | 
|
Sets the name of the output.  | 
|
Unique output type name.  | 
|
Returns a HTML string version of the parameter output value (if possible).  | 
|
Returns a string version of the parameter output value (if possible).  | 
- class qgis.core.QgsProcessingOutputDefinition[source]¶
 Bases:
object- __init__(name: str | None, description: str | None = '')
 Constructor for QgsProcessingOutputDefinition.
- Parameters:
 name (Optional[str])
description (Optional[str] = '')
- __init__(a0: QgsProcessingOutputDefinition)
 - Parameters:
 
- autoCreated(self) bool[source]¶
 Returns
Trueif the output was automatically created when adding a parameter.See also
Added in version 3.14.
- Return type:
 bool
- description(self) str[source]¶
 Returns the description for the output. This is the user-visible string used to identify this output.
See also
- Return type:
 str
- name(self) str[source]¶
 Returns the name of the output. This is the internal identifier by which algorithms access this output.
See also
- Return type:
 str
- setAutoCreated(self, autoCreated: bool)[source]¶
 Sets whether an output was automatically created when adding a parameter.
- Parameters:
 autoCreated (bool) – set to
Trueif the output is to be considered as automatically created.
See also
Added in version 3.14.
- setDescription(self, description: str | None)[source]¶
 Sets the
descriptionfor the output. This is the user-visible string used to identify this output.See also
- Parameters:
 description (Optional[str])
- setName(self, name: str | None)[source]¶
 Sets the
nameof the output. This is the internal identifier by which algorithms access this output.See also
- Parameters:
 name (Optional[str])
- valueAsFormattedString(self, value: Any, context: QgsProcessingContext)[source]¶
 Returns a HTML string version of the parameter output
value(if possible).By default this will return the same value as
valueAsString().- Parameters:
 value (Any) – value to convert
context (
QgsProcessingContext) -> (str) – processing context
- Returns:
 value converted to string
ok:
Trueif value could be represented as a string.
See also
Added in version 3.36.
- valueAsString(self, value: Any, context: QgsProcessingContext)[source]¶
 Returns a string version of the parameter output
value(if possible).- Parameters:
 value (Any) – value to convert
context (
QgsProcessingContext) -> (str) – processing context
- Returns:
 value converted to string
ok:
Trueif value could be represented as a string.
See also
Added in version 3.36.