2012-09-24 02:28:15 +02:00
|
|
|
class QgsRasterNuller : QgsRasterInterface
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsrasternuller.h>
|
|
|
|
%End
|
|
|
|
public:
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsRasterNuller( QgsRasterInterface *input = 0 );
|
2012-09-24 02:28:15 +02:00
|
|
|
~QgsRasterNuller();
|
|
|
|
|
|
|
|
struct NoData
|
|
|
|
{
|
|
|
|
double min;
|
|
|
|
double max;
|
|
|
|
};
|
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual QgsRasterNuller *clone() const /Factory/;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
int bandCount() const;
|
|
|
|
|
2016-07-21 22:01:38 +10:00
|
|
|
Qgis::DataType dataType( int bandNo ) const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsRasterBlock *block( int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback = 0 ) / Factory /;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setNoData( int bandNo, const QgsRasterRangeList &noData );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2013-04-29 13:27:36 +02:00
|
|
|
QgsRasterRangeList noData( int bandNo ) const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
/** \brief Set output no data value. */
|
2013-04-29 13:27:36 +02:00
|
|
|
void setOutputNoDataValue( int bandNo, double noData );
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|