mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
The improvement allows immediate cancellation of raster rendering in progress. Until now, even when map rendering got cancelled (e.g. by zooming of panning canvas), the GUI got blocked while waiting for raster layers to finish their rendering (only vector layers have had support for cancellation). This should allow for much smoother user experience while browsing maps including rasters. The cancellation is supported currently by WMS/WMTS and WCS providers. GDAL provider may also get support thanks to improvements in GDAL 2. Funded by Land Information New Zealand.
31 lines
763 B
Plaintext
31 lines
763 B
Plaintext
class QgsRasterNuller : QgsRasterInterface
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsrasternuller.h>
|
|
%End
|
|
public:
|
|
QgsRasterNuller( QgsRasterInterface* input = 0 );
|
|
~QgsRasterNuller();
|
|
|
|
struct NoData
|
|
{
|
|
double min;
|
|
double max;
|
|
};
|
|
|
|
virtual QgsRasterNuller * clone() const /Factory/;
|
|
|
|
int bandCount() const;
|
|
|
|
Qgis::DataType dataType( int bandNo ) const;
|
|
|
|
QgsRasterBlock *block( int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback* feedback = nullptr ) / Factory /;
|
|
|
|
void setNoData( int bandNo, const QgsRasterRangeList& noData );
|
|
|
|
QgsRasterRangeList noData( int bandNo ) const;
|
|
|
|
/** \brief Set output no data value. */
|
|
void setOutputNoDataValue( int bandNo, double noData );
|
|
};
|