Class: QgsSlopeFilter

class qgis.analysis.QgsSlopeFilter

Bases: QgsDerivativeFilter

Calculates slope values in a window of 3x3 cells based on first order derivatives in x- and y- directions*

Methods

calcFirstDerX

Calculates the first order derivative in x-direction according to Horn (1981)

calcFirstDerY

Calculates the first order derivative in y-direction according to Horn (1981)

processNineCellWindow

Calculates output value from nine input values.

calcFirstDerX(self) → Tuple[float, float, float, float, float, float, float, float, float, float]

Calculates the first order derivative in x-direction according to Horn (1981)

calcFirstDerY(self) → Tuple[float, float, float, float, float, float, float, float, float, float]

Calculates the first order derivative in y-direction according to Horn (1981)

processNineCellWindow(self) → Tuple[float, float, float, float, float, float, float, float, float, float]

Calculates output value from nine input values. The input values and the output value can be equal to the nodata value if not present or outside of the border. Must be implemented by subclasses*

Return type

Tuple[float, float, float, float, float, float, float, float, float, float]