Subgroup: Processing

Class: QgsProcessingParameterRasterDestination

class qgis.core.QgsProcessingParameterRasterDestination(name: str, description: str = '', defaultValue: Any = None, optional: bool = False)

Bases: qgis._core.QgsProcessingDestinationParameter

Constructor for QgsProcessingParameterRasterDestination.

QgsProcessingParameterRasterDestination(QgsProcessingParameterRasterDestination)

A raster layer destination parameter, for specifying the destination path for a raster layer created by the algorithm.

New in version 3.0: Methods

checkValueIsAcceptable
clone
defaultFileExtension
fromScriptCode Creates a new parameter using the definition from a script code.
toOutputDefinition
type
typeName Returns the type name for the parameter class.
valueAsPythonString

Signals

Attributes

checkValueIsAcceptable(self, input: Any, context: QgsProcessingContext = None) → bool
clone(self) → QgsProcessingParameterDefinition
defaultFileExtension(self) → str
fromScriptCode(name: str, description: str, isOptional: bool, definition: str) → QgsProcessingParameterRasterDestination

Creates a new parameter using the definition from a script code.

toOutputDefinition(self) → QgsProcessingOutputDefinition
type(self) → str
typeName() → str

Returns the type name for the parameter class.

valueAsPythonString(self, value: Any, context: QgsProcessingContext) → str