Class: QgsProcessingOutputVectorLayer

class qgis.core.QgsProcessingOutputVectorLayer

Bases: QgsProcessingOutputDefinition

A vector layer output for processing algorithms.

New in version 3.0.

QgsProcessingOutputVectorLayer(name: str, description: str = ‘’, type: QgsProcessing.SourceType = QgsProcessing.TypeVectorAnyGeometry) Constructor for QgsProcessingOutputVectorLayer.

QgsProcessingOutputVectorLayer(QgsProcessingOutputVectorLayer)

Methods

dataType

Returns the layer type for the output layer.

setDataType

Sets the layer type for the output layer.

type

rtype

str

typeName

Returns the type name for the output class.

dataType(self)QgsProcessing.SourceType

Returns the layer type for the output layer.

See also

setDataType()

Return type

QgsProcessing.SourceType

setDataType(self, type: QgsProcessing.SourceType)

Sets the layer type for the output layer.

See also

dataType()

Parameters

type (QgsProcessing.SourceType) –

type(self)str
Return type

str

typeName()str

Returns the type name for the output class.

Return type

str