mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
74 lines
2.4 KiB
Plaintext
74 lines
2.4 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/analysis/raster/qgsrelief.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsRelief
|
|
{
|
|
%Docstring(signature="appended")
|
|
Produces colored relief rasters from DEM.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsrelief.h"
|
|
%End
|
|
public:
|
|
struct ReliefColor
|
|
{
|
|
ReliefColor( const QColor &c, double min, double max );
|
|
double minElevation;
|
|
double maxElevation;
|
|
};
|
|
|
|
QgsRelief( const QString &inputFile, const QString &outputFile, const QString &outputFormat );
|
|
~QgsRelief();
|
|
|
|
|
|
int processRaster( QgsFeedback *feedback = 0 );
|
|
%Docstring
|
|
Starts the calculation, reads from mInputFile and stores the result in mOutputFile
|
|
|
|
:param feedback: feedback object that receives update and that is checked for cancellation.
|
|
|
|
:return: 0 in case of success
|
|
%End
|
|
|
|
double zFactor() const;
|
|
void setZFactor( double factor );
|
|
|
|
void clearReliefColors();
|
|
void addReliefColorClass( const QgsRelief::ReliefColor &color );
|
|
QList<QgsRelief::ReliefColor> reliefColors() const;
|
|
void setReliefColors( const QList<QgsRelief::ReliefColor> &c );
|
|
|
|
QList<QgsRelief::ReliefColor> calculateOptimizedReliefClasses();
|
|
%Docstring
|
|
Calculates class breaks according with the method of Buenzli (2011) using an iterative algorithm for segmented regression
|
|
|
|
:return: ``True`` in case of success
|
|
%End
|
|
|
|
bool exportFrequencyDistributionToCsv( const QString &file );
|
|
%Docstring
|
|
Write frequency of elevation values to file for manual inspection
|
|
%End
|
|
|
|
private:
|
|
QgsRelief( const QgsRelief &rh );
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/analysis/raster/qgsrelief.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|