Class: QgsHillshadeFilter

class qgis.analysis.QgsHillshadeFilter(inputFile: str, outputFile: str, outputFormat: str, lightAzimuth: float = 300, lightAngle: float = 40)

Bases: QgsDerivativeFilter

QgsHillshadeFilter(QgsHillshadeFilter)

Parameters
  • inputFile (str) –

  • outputFile (str) –

  • outputFormat (str) –

  • lightAzimuth (float = 300) –

  • lightAngle

calcFirstDerX()
calcFirstDerY()
lightAngle(self) → float
Return type

float

lightAzimuth(self) → float
Return type

float

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]

setLightAngle(self, angle: float)
Parameters

angle (float) –

setLightAzimuth(self, azimuth: float)
Parameters

azimuth (float) –