Class: QgsRendererRange

class qgis.core.QgsRendererRange

Bases: sip.wrapper

Constructor for QgsRendererRange.

QgsRendererRange(lowerValue: float, upperValue: float, symbol: QgsSymbol, label: str, render: bool = True)

QgsRendererRange(range: QgsRendererRange)

Methods

dump
label
lowerValue
renderState
setLabel
setLowerValue
setRenderState
setSymbol
setUpperValue
swap
symbol
toSld Creates a DOM element representing the range in SLD format.
upperValue

Signals

Attributes

dump(self) → str
label(self) → str
lowerValue(self) → float
renderState(self) → bool
setLabel(self, label: str)
setLowerValue(self, lowerValue: float)
setRenderState(self, render: bool)
setSymbol(self, s: QgsSymbol)
setUpperValue(self, upperValue: float)
swap(self, other: QgsRendererRange)
symbol(self) → QgsSymbol
toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str], firstRange: bool = False)

Creates a DOM element representing the range in SLD format.

Parameters:
  • doc – DOM document
  • element – destination DOM element
  • props – graduated renderer properties
  • firstRange – set to true if the range is the first range, where the lower value uses a <= test rather than a < test.
upperValue(self) → float