Subgroup: other
Class: QgsRelief¶
-
class
qgis.analysis.
QgsRelief
¶ Bases:
sip.wrapper
Produces colored relief rasters from DEM*
Methods
addReliefColorClass
calculateOptimizedReliefClasses
Calculates class breaks according with the method of Buenzli (2011) using an iterative algorithm for segmented regression clearReliefColors
exportFrequencyDistributionToCsv
Write frequency of elevation values to file for manual inspection processRaster
Starts the calculation, reads from mInputFile and stores the result in mOutputFile reliefColors
setReliefColors
setZFactor
zFactor
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 cancelation. Returns: 0 in case of success*
-
reliefColors
(self) → object¶
-
setReliefColors
(self, c: Iterable[QgsRelief.ReliefColor])¶
-
setZFactor
(self, factor: float)¶
-
zFactor
(self) → float¶
-
class