|
QGIS API Documentation 4.3.0-Master (7c7bd4d7018)
|
Produces colored relief rasters from DEM. More...
#include <qgsrelief.h>
Public Types | |
| enum class | Result : int { Success = 0 , InvalidInput = 1 , OutputCreationFailed = 3 , InvalidInputSize = 6 , Canceled = 7 } |
| Calculation results. More... | |
Public Member Functions | |
| QgsRelief (const QgsRelief &rh)=delete | |
| QgsRelief (const QString &inputFile, const QString &outputFile, const QString &outputFormat) | |
| Constructor for QgsRelief. | |
| ~QgsRelief () | |
| void | addReliefColorClass (const QgsRasterReliefColor &color) |
| Adds a relief color. | |
| QList< QgsRasterReliefColor > | calculateOptimizedReliefClasses () |
| Calculates class breaks according with the method of Buenzli (2011) using an iterative algorithm for segmented regression. | |
| void | clearReliefColors () |
| Clears all existing relief colors. | |
| bool | exportFrequencyDistributionToCsv (const QString &file) |
| Writes frequency of elevation values to a file for manual inspection. | |
| QgsRelief & | operator= (const QgsRelief &rh)=delete |
| QgsRelief::Result | processRaster (QgsFeedback *feedback=nullptr) |
| Starts the calculation. | |
| QList< QgsRasterReliefColor > | reliefColors () const |
| Returns a list of all relief colors. | |
| void | setReliefColors (const QList< QgsRasterReliefColor > &c) |
| Sets the list of relief colors. | |
| void | setZFactor (double factor) |
| Sets the z factor, which controls vertical elevation exaggeration. | |
| double | zFactor () const |
| Returns the z factor, which controls vertical elevation exaggeration. | |
Produces colored relief rasters from DEM.
Definition at line 41 of file qgsrelief.h.
|
strong |
Calculation results.
Definition at line 58 of file qgsrelief.h.
| QgsRelief::QgsRelief | ( | const QString & | inputFile, |
| const QString & | outputFile, | ||
| const QString & | outputFormat ) |
Constructor for QgsRelief.
Definition at line 41 of file qgsrelief.cpp.
|
default |
|
delete |
| void QgsRelief::addReliefColorClass | ( | const QgsRasterReliefColor & | color | ) |
Adds a relief color.
Definition at line 62 of file qgsrelief.cpp.
| QList< QgsRasterReliefColor > QgsRelief::calculateOptimizedReliefClasses | ( | ) |
Calculates class breaks according with the method of Buenzli (2011) using an iterative algorithm for segmented regression.
true in case of success Definition at line 525 of file qgsrelief.cpp.
| void QgsRelief::clearReliefColors | ( | ) |
Clears all existing relief colors.
Definition at line 57 of file qgsrelief.cpp.
| bool QgsRelief::exportFrequencyDistributionToCsv | ( | const QString & | file | ) |
Writes frequency of elevation values to a file for manual inspection.
Definition at line 447 of file qgsrelief.cpp.
| QgsRelief::Result QgsRelief::processRaster | ( | QgsFeedback * | feedback = nullptr | ) |
Starts the calculation.
Reads from the intput input file and stores the result in the output file.
| feedback | feedback object that receives update and that is checked for cancellation. |
Definition at line 78 of file qgsrelief.cpp.
|
inline |
Returns a list of all relief colors.
Definition at line 117 of file qgsrelief.h.
|
inline |
Sets the list of relief colors.
Definition at line 126 of file qgsrelief.h.
|
inline |
Sets the z factor, which controls vertical elevation exaggeration.
Definition at line 90 of file qgsrelief.h.
|
inline |
Returns the z factor, which controls vertical elevation exaggeration.
Definition at line 83 of file qgsrelief.h.