Class: QgsProcessingParameterLimitedDataTypes¶
- class qgis.core.QgsProcessingParameterLimitedDataTypes¶
Bases:
sip.wrapper
Can be inherited by parameters which require limits to their acceptable data types.
New in version 3.0.
QgsProcessingParameterLimitedDataTypes(types: Iterable[int] = []) Constructor for
QgsProcessingParameterLimitedDataTypes
, with a list of acceptable datatypes
.QgsProcessingParameterLimitedDataTypes(
QgsProcessingParameterLimitedDataTypes
)Methods
Returns the geometry types for sources acceptable by the parameter.
Sets the geometry
types
for sources acceptable by the parameter.- dataTypes(self) List[int] ¶
Returns the geometry types for sources acceptable by the parameter.
See also
- Return type:
List[int]
- setDataTypes(self, types: Iterable[int])¶
Sets the geometry
types
for sources acceptable by the parameter.See also
- Parameters:
types (Iterable[int]) –