Class: QgsProcessingOutputVectorLayer

class qgis.core.QgsProcessingOutputVectorLayer(name: str, description: str = '', type: QgsProcessing.SourceType = QgsProcessing.TypeVectorAnyGeometry)

Bases: QgsProcessingOutputDefinition

Constructor for QgsProcessingOutputVectorLayer.

QgsProcessingOutputVectorLayer(QgsProcessingOutputVectorLayer)

A vector layer output for processing algorithms.

New in version 3.0.

Parameters
  • name (str) –

  • description (str = '') –

  • type

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