Class: QgsProcessingParameterLimitedDataTypes

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

Class Hierarchy

Inheritance diagram of qgis.core.QgsProcessingParameterLimitedDataTypes

Subclasses

QgsProcessingParameterFeatureSource

An input feature source (such as vector layers) parameter for processing algorithms.

QgsProcessingParameterMapLayer

A map layer parameter for processing algorithms.

QgsProcessingParameterVectorLayer

A vector layer (with or without geometry) parameter for processing algorithms.

Methods

dataTypes

Returns the geometry types for sources acceptable by the parameter.

setDataTypes

Sets the geometry types for sources acceptable by the parameter.

class qgis.core.QgsProcessingParameterLimitedDataTypes[source]

Bases: object

__init__(types: Iterable[int] = [])

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

Parameters:

types (Iterable[int] = [])

__init__(a0: QgsProcessingParameterLimitedDataTypes)
Parameters:

a0 (QgsProcessingParameterLimitedDataTypes)

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])[source]

Sets the geometry types for sources acceptable by the parameter.

See also

dataTypes()

Parameters:

types (Iterable[int])