Class: QgsProcessingParameterRasterDestination¶
A raster layer destination parameter, for specifying the destination path for a raster layer created by the algorithm.
Class Hierarchy¶
Base classes¶
Base class for all parameter definitions which represent file or layer destinations, e.g. parameters which are used for the destination for layers output by an algorithm. |
|
Base class for the definition of processing parameters. |
|
Abstract interface for classes which generate a file filter string. |
Methods
Returns the default file format for destination file paths associated with this parameter. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsProcessingParameterRasterDestination. See the FAQ for more details.
Returns a list of the raster format file extensions supported for this parameter. |
|
Returns a list of (format, file extension) supported by this provider. |
Static Methods
Creates a new parameter using the definition from a script code. |
|
Returns the type name for the parameter class. |
- class qgis.core.QgsProcessingParameterRasterDestination[source]¶
Bases:
QgsProcessingDestinationParameter- __init__(name: str | None, description: str | None = '', defaultValue: Any = None, optional: bool = False, createByDefault: bool = True)
Constructor for QgsProcessingParameterRasterDestination.
If
createByDefaultisFalseand the parameter isoptional, then this destination output will not be created by default.- Parameters:
name (Optional[str])
description (Optional[str] = '')
defaultValue (Any = None)
optional (bool = False)
createByDefault (bool = True)
- __init__(a0: QgsProcessingParameterRasterDestination)
- Parameters:
- defaultFileFormat(self) str[source]¶
Returns the default file format for destination file paths associated with this parameter.
Added in version 3.40.
- Return type:
str
- static fromScriptCode(name: str | None, description: str | None, isOptional: bool, definition: str | None) QgsProcessingParameterRasterDestination | None[source]¶
Creates a new parameter using the definition from a script code.
- Parameters:
name (Optional[str])
description (Optional[str])
isOptional (bool)
definition (Optional[str])
- Return type:
Optional[QgsProcessingParameterRasterDestination]
- virtual supportedOutputRasterLayerExtensions(self) List[str][source]¶
Returns a list of the raster format file extensions supported for this parameter.
See also
defaultFileExtension()Deprecated since version 3.40: Use
supportedOutputRasterLayerFormatAndExtensions()instead.- Return type:
List[str]
- virtual supportedOutputRasterLayerFormatAndExtensions(self) List[Tuple[str, str]]¶
Returns a list of (format, file extension) supported by this provider.
Added in version 3.40.
- Return type:
List[Tuple[str, str]]