Class: QgsProcessingParameterLimitedDataTypes

class qgis.core.QgsProcessingParameterLimitedDataTypes(types: Iterable[int] = [])

Bases: sip.wrapper

Constructor for QgsProcessingParameterLimitedDataTypes, with a list of acceptable data types.

QgsProcessingParameterLimitedDataTypes(QgsProcessingParameterLimitedDataTypes)

Can be inherited by parameters which require limits to their acceptable data types.

Methods

dataTypes

Returns the geometry types for sources acceptable by the parameter.

setDataTypes

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

setDataTypes()

Return type

List[int]

setDataTypes(self, types: Iterable[int])

Sets the geometry types for sources acceptable by the parameter.

See also

dataTypes()

Parameters

types (Iterable[int]) –