Class: QgsRelief¶
-
class
qgis.analysis.
QgsRelief
¶ Bases:
sip.wrapper
Produces colored relief rasters from DEM*
Enums
Methods
Calculates class breaks according with the method of Buenzli (2011) using an iterative algorithm for segmented regression
Write frequency of elevation values to file for manual inspection
Starts the calculation, reads from mInputFile and stores the result in mOutputFile
Signals
Attributes
-
class
ReliefColor
(c: Union[QColor, Qt.GlobalColor], min: float, max: float)¶ Bases:
sip.wrapper
QgsRelief.ReliefColor(QgsRelief.ReliefColor)
-
color
¶
-
maxElevation
¶
-
minElevation
¶
-
-
addReliefColorClass
(self, color: QgsRelief.ReliefColor)¶
-
calculateOptimizedReliefClasses
(self) → List[QgsRelief.ReliefColor]¶ Calculates class breaks according with the method of Buenzli (2011) using an iterative algorithm for segmented regression
- Returns
true in case of success*
-
clearReliefColors
(self)¶
-
exportFrequencyDistributionToCsv
(self, file: str) → bool¶ Write frequency of elevation values to file for manual inspection
-
processRaster
(self, feedback: QgsFeedback = None) → int¶ Starts the calculation, reads from mInputFile and stores the result in mOutputFile
- Parameters
feedback – feedback object that receives update and that is checked for cancellation.
- Returns
0 in case of success*
-
reliefColors
(self) → object¶
-
setReliefColors
(self, c: Iterable[QgsRelief.ReliefColor])¶
-
setZFactor
(self, factor: float)¶
-
zFactor
(self) → float¶
-
class