Class: QgsProcessingParameterScale

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

Bases: qgis._core.QgsProcessingParameterNumber

Constructor for QgsProcessingParameterScale.

QgsProcessingParameterScale(QgsProcessingParameterScale)

A double numeric parameter for map scale values.

QgsProcessingParameterScale should be evaluated by calling QgsProcessingAlgorithm.parameterAsDouble(), which will return a numeric value representing the scale denominator.

New in version 3.8: Enums

Methods

asPythonString

clone

fromScriptCode

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

type

typeName

Returns the type name for the parameter class.

Signals

Attributes

asPythonString(self, outputType: QgsProcessing.PythonOutputType = QgsProcessing.PythonQgsProcessingAlgorithmSubclass) → str
clone(self) → QgsProcessingParameterScale
fromScriptCode(name: str, description: str, isOptional: bool, definition: str) → QgsProcessingParameterScale

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

type(self) → str
typeName() → str

Returns the type name for the parameter class.