Class: QgsProcessingParameterFeatureSource¶
-
class
qgis.core.
QgsProcessingParameterFeatureSource
(name: str, description: str = '', types: Iterable[int] = [], defaultValue: Any = None, optional: bool = False)¶ Bases:
qgis._core.QgsProcessingParameterDefinition
,qgis._core.QgsProcessingParameterLimitedDataTypes
Constructor for QgsProcessingParameterFeatureSource.
QgsProcessingParameterFeatureSource(QgsProcessingParameterFeatureSource)
An input feature source (such as vector layers) parameter for processing algorithms.
New in version 3.0: Enums
Methods
Creates a new parameter using the definition from a script code.
Returns the type name for the parameter class.
Signals
Attributes
-
asPythonString
(self, outputType: QgsProcessing.PythonOutputType = QgsProcessing.PythonQgsProcessingAlgorithmSubclass) → str¶
-
asScriptCode
(self) → str¶
-
checkValueIsAcceptable
(self, input: Any, context: QgsProcessingContext = None) → bool¶
-
clone
(self) → QgsProcessingParameterDefinition¶
-
fromScriptCode
(name: str, description: str, isOptional: bool, definition: str) → QgsProcessingParameterFeatureSource¶ Creates a new parameter using the definition from a script code.
-
fromVariantMap
(self, map: Dict[str, Any]) → bool¶
-
toVariantMap
(self) → Dict[str, Any]¶
-
type
(self) → str¶
-
typeName
() → str¶ Returns the type name for the parameter class.
-
valueAsPythonString
(self, value: Any, context: QgsProcessingContext) → str¶
-