Class: QgsProcessingParameterTinInputLayers

class qgis.core.QgsProcessingParameterTinInputLayers

Bases: QgsProcessingParameterDefinition

A parameter for processing algorithms that need a list of input vector layers to construct a TIN.

A valid value for this parameter is a list (QVariantList), where each item is a map (QVariantMap) in this form: { ‘source’: string that represents identification of the vector layer, ‘type’: how the vector layer is used : as vertices, structure lines or break lines ‘attributeIndex’ : the index of the attribute of the vector layer used to defined the Z value of vertices, if -1, the Z coordinates of features are used }

New in version 3.16.

QgsProcessingParameterTinInputLayers(name: str, description: str = ‘’) Constructor

QgsProcessingParameterTinInputLayers(QgsProcessingParameterTinInputLayers)

Methods

asPythonString

param outputType

checkValueIsAcceptable

param input

clone

rtype

QgsProcessingParameterDefinition

type

rtype

str

typeName

Returns the type name for the parameter class.

valueAsJsonObject

param value

valueAsPythonString

param value

valueAsString

param value

Attributes

BreakLines

StructureLines

Vertices

BreakLines = 2
class InputLayer
class InputLayer(QgsProcessingParameterTinInputLayers.InputLayer)

Bases: sip.wrapper

attributeIndex
source
type
StructureLines = 1
class Type

Bases: int

Vertices = 0
asPythonString(self, outputType: QgsProcessing.PythonOutputType = QgsProcessing.PythonQgsProcessingAlgorithmSubclass) str
Parameters

outputType (QgsProcessing.PythonOutputType = QgsProcessing.PythonQgsProcessingAlgorithmSubclass) –

Return type

str

checkValueIsAcceptable(self, input: Any, context: QgsProcessingContext = None) bool
Parameters
Return type

bool

clone(self) QgsProcessingParameterDefinition
Return type

QgsProcessingParameterDefinition

type(self) str
Return type

str

typeName() str

Returns the type name for the parameter class.

Return type

str

valueAsJsonObject(self, value: Any, context: QgsProcessingContext) Any
Parameters
Return type

Any

valueAsPythonString(self, value: Any, context: QgsProcessingContext) str
Parameters
Return type

str

valueAsString(self, value: Any, context: QgsProcessingContext) Tuple[str, bool]
Parameters
Return type

Tuple[str, bool]