Class: QgsRasterCalcNode

class qgis.analysis.QgsRasterCalcNode

Bases: sip.wrapper

Constructor for QgsRasterCalcNode.

QgsRasterCalcNode(number: float)

QgsRasterCalcNode(matrix: QgsRasterMatrix)

QgsRasterCalcNode(op: QgsRasterCalcNode.Operator, left: QgsRasterCalcNode, right: QgsRasterCalcNode)

QgsRasterCalcNode(rasterName: str)

Enums

Methods

findNodes Returns a list of nodes of a specific type
parseRasterCalcString
setLeft
setRight
toString Returns a string representation of the expression
type QgsRasterCalcNode cannot be copied

Signals

Attributes

opACOS
opAND
opASIN
opATAN
opCOS
opDIV
opEQ
opGE
opGT
opLE
opLOG
opLOG10
opLT
opMINUS
opMUL
opNE
opNONE
opOR
opPLUS
opPOW
opSIGN
opSIN
opSQRT
opTAN
tMatrix
tNumber
tOperator
tRasterRef
class Operator

Bases: int

class Type

Bases: int

findNodes(self, type: QgsRasterCalcNode.Type) → object

Returns a list of nodes of a specific type

New in version 3.6.

opACOS = 10
opAND = 18
opASIN = 9
opATAN = 11
opCOS = 7
opDIV = 3
opEQ = 12
opGE = 16
opGT = 14
opLE = 17
opLOG = 21
opLOG10 = 22
opLT = 15
opMINUS = 1
opMUL = 2
opNE = 13
opNONE = 23
opOR = 19
opPLUS = 0
opPOW = 4
opSIGN = 20
opSIN = 6
opSQRT = 5
opTAN = 8
parseRasterCalcString(str: str, parserErrorMsg: str) → QgsRasterCalcNode
setLeft(self, left: QgsRasterCalcNode)
setRight(self, right: QgsRasterCalcNode)
tMatrix = 4
tNumber = 2
tOperator = 1
tRasterRef = 3
toString(self, cStyle: bool = False) → str

Returns a string representation of the expression

Parameters:cStyle – if True operators will follow C syntax

New in version 3.6.

type(self) → QgsRasterCalcNode.Type

QgsRasterCalcNode cannot be copied