QGIS API Documentation  3.14.0-Pi (9f7028fd23)
qgsrasterdataprovider.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsrasterdataprovider.h - DataProvider Interface for raster layers
3  --------------------------------------
4  Date : Mar 11, 2005
5  Copyright : (C) 2005 by Brendan Morley
6  email : morb at ozemail dot com dot au
7 
8  async legend fetcher : Sandro Santilli < strk at keybit dot net >
9 
10  ***************************************************************************/
11 
12 /***************************************************************************
13  * *
14  * This program is free software; you can redistribute it and/or modify *
15  * it under the terms of the GNU General Public License as published by *
16  * the Free Software Foundation; either version 2 of the License, or *
17  * (at your option) any later version. *
18  * *
19  ***************************************************************************/
20 
21 /* Thank you to Marco Hugentobler for the original vector DataProvider */
22 
23 #ifndef QGSRASTERDATAPROVIDER_H
24 #define QGSRASTERDATAPROVIDER_H
25 
26 #include "qgis_core.h"
27 #include "qgis_sip.h"
28 #include <cmath>
29 
30 #include <QDateTime>
31 #include <QVariant>
32 #include <QImage>
33 
34 #include "qgscolorrampshader.h"
35 #include "qgsdataprovider.h"
36 #include "qgsraster.h"
37 #include "qgsfields.h"
38 #include "qgsrasterinterface.h"
39 #include "qgsrasterpyramid.h"
40 #include "qgsrasterrange.h"
41 #include "qgsrectangle.h"
42 #include "qgsrasteriterator.h"
44 
45 class QImage;
46 class QByteArray;
47 
48 class QgsPointXY;
50 class QgsMapSettings;
51 
57 class CORE_EXPORT QgsImageFetcher : public QObject
58 {
59  Q_OBJECT
60  public:
62  QgsImageFetcher( QObject *parent = nullptr ) : QObject( parent ) {}
63 
68  virtual void start() = 0;
69 
70  signals:
71 
76  void finish( const QImage &legend );
78  void progress( qint64 received, qint64 total );
80  void error( const QString &msg );
81 };
82 
83 
88 class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRasterInterface
89 {
90  Q_OBJECT
91 
92  public:
93 
99  {
100  NoProviderCapabilities = 0,
101  ReadLayerMetadata = 1 << 1,
102  WriteLayerMetadata = 1 << 2,
103  ProviderHintBenefitsFromResampling = 1 << 3
104  };
105 
107  Q_DECLARE_FLAGS( ProviderCapabilities, ProviderCapability )
108 
110 
119  QgsRasterDataProvider( const QString &uri, const QgsDataProvider::ProviderOptions &providerOptions = QgsDataProvider::ProviderOptions() );
120 
121  QgsRasterInterface *clone() const override = 0;
122 
127  virtual QgsRasterDataProvider::ProviderCapabilities providerCapabilities() const;
128 
129  /* It makes no sense to set input on provider */
130  bool setInput( QgsRasterInterface *input ) override { Q_UNUSED( input ) return false; }
131 
132  QgsRectangle extent() const override = 0;
133 
135  Qgis::DataType dataType( int bandNo ) const override = 0;
136 
142  virtual QgsFields fields() const { return QgsFields(); };
143 
148  Qgis::DataType sourceDataType( int bandNo ) const override = 0;
149 
151  virtual int colorInterpretation( int bandNo ) const
152  {
153  Q_UNUSED( bandNo )
155  }
156 
157  QString colorName( int colorInterpretation ) const
158  {
159  // Modified copy from GDAL
160  switch ( colorInterpretation )
161  {
163  return QStringLiteral( "Undefined" );
164 
166  return QStringLiteral( "Gray" );
167 
169  return QStringLiteral( "Palette" );
170 
171  case QgsRaster::RedBand:
172  return QStringLiteral( "Red" );
173 
175  return QStringLiteral( "Green" );
176 
177  case QgsRaster::BlueBand:
178  return QStringLiteral( "Blue" );
179 
181  return QStringLiteral( "Alpha" );
182 
183  case QgsRaster::HueBand:
184  return QStringLiteral( "Hue" );
185 
187  return QStringLiteral( "Saturation" );
188 
190  return QStringLiteral( "Lightness" );
191 
192  case QgsRaster::CyanBand:
193  return QStringLiteral( "Cyan" );
194 
196  return QStringLiteral( "Magenta" );
197 
199  return QStringLiteral( "Yellow" );
200 
202  return QStringLiteral( "Black" );
203 
205  return QStringLiteral( "YCbCr_Y" );
206 
208  return QStringLiteral( "YCbCr_Cb" );
209 
211  return QStringLiteral( "YCbCr_Cr" );
212 
213  default:
214  return QStringLiteral( "Unknown" );
215  }
216  }
218  virtual bool reload() { return true; }
219 
220  virtual QString colorInterpretationName( int bandNo ) const
221  {
222  return colorName( colorInterpretation( bandNo ) );
223  }
224 
229  virtual double bandScale( int bandNo ) const { Q_UNUSED( bandNo ) return 1.0; }
230 
235  virtual double bandOffset( int bandNo ) const { Q_UNUSED( bandNo ) return 0.0; }
236 
237  // TODO: remove or make protected all readBlock working with void*
238 
240  QgsRasterBlock *block( int bandNo, const QgsRectangle &boundingBox, int width, int height, QgsRasterBlockFeedback *feedback = nullptr ) override SIP_FACTORY;
241 
243  virtual bool sourceHasNoDataValue( int bandNo ) const { return mSrcHasNoDataValue.value( bandNo - 1 ); }
244 
246  virtual bool useSourceNoDataValue( int bandNo ) const { return mUseSrcNoDataValue.value( bandNo - 1 ); }
247 
249  virtual void setUseSourceNoDataValue( int bandNo, bool use );
250 
252  virtual double sourceNoDataValue( int bandNo ) const { return mSrcNoDataValue.value( bandNo - 1 ); }
253 
254  virtual void setUserNoDataValue( int bandNo, const QgsRasterRangeList &noData );
255 
257  virtual QgsRasterRangeList userNoDataValues( int bandNo ) const { return mUserNoDataValue.value( bandNo - 1 ); }
258 
259  virtual QList<QgsColorRampShader::ColorRampItem> colorTable( int bandNo ) const
260  { Q_UNUSED( bandNo ) return QList<QgsColorRampShader::ColorRampItem>(); }
261 
266  QStringList subLayers() const override
267  {
268  return QStringList();
269  }
270 
273 
275  virtual bool supportsLegendGraphic() const { return false; }
276 
288  virtual QImage getLegendGraphic( double scale = 0, bool forceRefresh = false, const QgsRectangle *visibleExtent = nullptr ) SIP_SKIP
289  {
290  Q_UNUSED( scale )
291  Q_UNUSED( forceRefresh )
292  Q_UNUSED( visibleExtent )
293  return QImage();
294  }
295 
310  {
311  Q_UNUSED( mapSettings )
312  return nullptr;
313  }
314 
316  virtual QString buildPyramids( const QList<QgsRasterPyramid> &pyramidList,
317  const QString &resamplingMethod = "NEAREST",
319  const QStringList &configOptions = QStringList(),
320  QgsRasterBlockFeedback *feedback = nullptr )
321  {
322  Q_UNUSED( pyramidList )
323  Q_UNUSED( resamplingMethod )
324  Q_UNUSED( format )
325  Q_UNUSED( configOptions )
326  Q_UNUSED( feedback )
327  return QStringLiteral( "FAILED_NOT_SUPPORTED" );
328  }
329 
338  virtual QList<QgsRasterPyramid> buildPyramidList( QList<int> overviewList = QList<int>() ) // clazy:exclude=function-args-by-ref
339  { Q_UNUSED( overviewList ) return QList<QgsRasterPyramid>(); }
340 
342  bool hasPyramids();
343 
348  virtual QString htmlMetadata() = 0;
349 
374  virtual QgsRasterIdentifyResult identify( const QgsPointXY &point, QgsRaster::IdentifyFormat format, const QgsRectangle &boundingBox = QgsRectangle(), int width = 0, int height = 0, int dpi = 96 );
375 
390  virtual double sample( const QgsPointXY &point, int band,
391  bool *ok SIP_OUT = nullptr,
392  const QgsRectangle &boundingBox = QgsRectangle(), int width = 0, int height = 0, int dpi = 96 );
393 
402  virtual QString lastErrorTitle() = 0;
403 
413  virtual QString lastError() = 0;
414 
416  virtual QString lastErrorFormat();
417 
419  int dpi() const { return mDpi; }
420 
422  void setDpi( int dpi ) { mDpi = dpi; }
423 
425  QDateTime timestamp() const override { return mTimestamp; }
426 
428  QDateTime dataTimestamp() const override { return QDateTime(); }
429 
436  virtual bool isEditable() const { return false; }
437 
448  virtual bool setEditable( bool enabled ) { Q_UNUSED( enabled ) return false; }
449 
451  // TODO: add data type (may be different from band type)
452  virtual bool write( void *data, int band, int width, int height, int xOffset, int yOffset )
453  {
454  Q_UNUSED( data )
455  Q_UNUSED( band )
456  Q_UNUSED( width )
457  Q_UNUSED( height )
458  Q_UNUSED( xOffset )
459  Q_UNUSED( yOffset )
460  return false;
461  }
462 
479  bool writeBlock( QgsRasterBlock *block, int band, int xOffset = 0, int yOffset = 0 );
480 
482  static QgsRasterDataProvider *create( const QString &providerKey,
483  const QString &uri,
484  const QString &format, int nBands,
485  Qgis::DataType type,
486  int width, int height, double *geoTransform,
488  const QStringList &createOptions = QStringList() );
489 
495  virtual bool setNoDataValue( int bandNo, double noDataValue ) { Q_UNUSED( bandNo ) Q_UNUSED( noDataValue ); return false; }
496 
498  virtual bool remove() { return false; }
499 
504  static QList<QPair<QString, QString> > pyramidResamplingMethods( const QString &providerKey );
505 
511  virtual QString validateCreationOptions( const QStringList &createOptions, const QString &format )
512  { Q_UNUSED( createOptions ) Q_UNUSED( format ); return QString(); }
513 
519  const QStringList &configOptions, const QString &fileFormat )
520  { Q_UNUSED( pyramidsFormat ) Q_UNUSED( configOptions ); Q_UNUSED( fileFormat ); return QString(); }
521 
522  static QString identifyFormatName( QgsRaster::IdentifyFormat format );
523  static QgsRaster::IdentifyFormat identifyFormatFromName( const QString &formatName );
524  static QString identifyFormatLabel( QgsRaster::IdentifyFormat format );
525  static Capability identifyFormatToCapability( QgsRaster::IdentifyFormat format );
526 
533 
540 
549  virtual QList< double > nativeResolutions() const;
550 
557  virtual bool ignoreExtents() const;
558 
564  {
567  };
568 
581  virtual QgsPoint transformCoordinates( const QgsPoint &point, TransformType type );
582 
583  signals:
584 
589  void statusChanged( const QString & ) const;
590 
591  protected:
592 
598  virtual bool readBlock( int bandNo, int xBlock, int yBlock, void *data ) SIP_SKIP
599  { Q_UNUSED( bandNo ) Q_UNUSED( xBlock ); Q_UNUSED( yBlock ); Q_UNUSED( data ); return false; }
600 
606  virtual bool readBlock( int bandNo, QgsRectangle const &viewExtent, int width, int height, void *data, QgsRasterBlockFeedback *feedback = nullptr ) SIP_SKIP
607  { Q_UNUSED( bandNo ) Q_UNUSED( viewExtent ); Q_UNUSED( width ); Q_UNUSED( height ); Q_UNUSED( data ); Q_UNUSED( feedback ); return false; }
608 
610  bool userNoDataValuesContains( int bandNo, double value ) const;
611 
613  void copyBaseSettings( const QgsRasterDataProvider &other );
614 
619  int mDpi = -1;
620 
625  //bool hasNoDataValue ( int bandNo );
626 
628  QList<double> mSrcNoDataValue;
629 
631  QList<bool> mSrcHasNoDataValue;
632 
638  QList<bool> mUseSrcNoDataValue;
639 
644  QList< QgsRasterRangeList > mUserNoDataValue;
645 
647 
648  private:
649 
653  std::unique_ptr< QgsRasterDataProviderTemporalCapabilities > mTemporalCapabilities;
654 
655 };
656 
657 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsRasterDataProvider::ProviderCapabilities )
658 
659 // clazy:excludeall=qstring-allocations
660 
661 #endif
QgsRaster::YCbCr_YBand
@ YCbCr_YBand
Y Luminance.
Definition: qgsraster.h:77
qgsfields.h
QgsRaster::MagentaBand
@ MagentaBand
Magenta band of CMYK image.
Definition: qgsraster.h:74
Qgis::DataType
DataType
Raster data types.
Definition: qgis.h:114
QgsImageFetcher
Handles asynchronous download of images.
Definition: qgsrasterdataprovider.h:57
QgsRasterDataProvider::mSrcNoDataValue
QList< double > mSrcNoDataValue
Source no data value is available and is set to be used or internal no data is available.
Definition: qgsrasterdataprovider.h:628
QgsDataProvider::ProviderOptions
Setting options for creating vector data providers.
Definition: qgsdataprovider.h:104
QgsRasterInterface::sourceDataType
virtual Qgis::DataType sourceDataType(int bandNo) const
Returns source data type for the band specified by number, source data type may be shorter than dataT...
Definition: qgsrasterinterface.h:223
QgsDataProvider
Definition: qgsdataprovider.h:41
QgsRasterDataProvider::validateCreationOptions
virtual QString validateCreationOptions(const QStringList &createOptions, const QString &format)
Validates creation options for a specific dataset and destination format.
Definition: qgsrasterdataprovider.h:511
qgsrectangle.h
QgsRasterDataProvider::getLegendGraphic
virtual QImage getLegendGraphic(double scale=0, bool forceRefresh=false, const QgsRectangle *visibleExtent=nullptr)
Returns the legend rendered as pixmap.
Definition: qgsrasterdataprovider.h:288
QgsPoint
Point geometry type, with support for z-dimension and m-values.
Definition: qgspoint.h:37
QgsRasterDataProvider::dpi
int dpi() const
Returns the dpi of the output device.
Definition: qgsrasterdataprovider.h:419
QgsRasterDataProvider::subLayers
QStringList subLayers() const override
Returns the sublayers of this layer - useful for providers that manage their own layers,...
Definition: qgsrasterdataprovider.h:266
QgsRasterDataProvider::useSourceNoDataValue
virtual bool useSourceNoDataValue(int bandNo) const
Returns the source nodata value usage.
Definition: qgsrasterdataprovider.h:246
QgsRaster::AlphaBand
@ AlphaBand
Alpha (0=transparent, 255=opaque)
Definition: qgsraster.h:69
SIP_OUT
#define SIP_OUT
Definition: qgis_sip.h:58
crs
const QgsCoordinateReferenceSystem & crs
Definition: qgswfsgetfeature.cpp:105
QgsRasterDataProvider::write
virtual bool write(void *data, int band, int width, int height, int xOffset, int yOffset)
Writes into the provider datasource.
Definition: qgsrasterdataprovider.h:452
QgsRaster::RasterPyramidsFormat
RasterPyramidsFormat
Definition: qgsraster.h:94
QgsRasterDataProvider::dataTimestamp
QDateTime dataTimestamp() const override
Current time stamp of data source.
Definition: qgsrasterdataprovider.h:428
QgsRaster::GreenBand
@ GreenBand
Green band of RGBA image.
Definition: qgsraster.h:67
QgsFields
Definition: qgsfields.h:44
QgsRasterDataProvider::mSrcHasNoDataValue
QList< bool > mSrcHasNoDataValue
Source no data value exists.
Definition: qgsrasterdataprovider.h:631
QgsRaster::LightnessBand
@ LightnessBand
Lightness band of HLS image.
Definition: qgsraster.h:72
qgscolorrampshader.h
QgsRasterDataProvider::reload
virtual bool reload()
Reload data (data could change)
Definition: qgsrasterdataprovider.h:218
QgsRasterDataProvider::setEditable
virtual bool setEditable(bool enabled)
Turns on/off editing mode of the provider.
Definition: qgsrasterdataprovider.h:448
QgsImageFetcher::QgsImageFetcher
QgsImageFetcher(QObject *parent=nullptr)
Constructor.
Definition: qgsrasterdataprovider.h:62
QgsRasterDataProvider::bandOffset
virtual double bandOffset(int bandNo) const
Read band offset for raster value.
Definition: qgsrasterdataprovider.h:235
QgsRaster::BlueBand
@ BlueBand
Blue band of RGBA image.
Definition: qgsraster.h:68
QgsRectangle
Definition: qgsrectangle.h:41
qgsrasterdataprovidertemporalcapabilities.h
QgsRasterDataProvider::mUserNoDataValue
QList< QgsRasterRangeList > mUserNoDataValue
List of lists of user defined additional no data values for each band, indexed from 0.
Definition: qgsrasterdataprovider.h:644
SIP_FACTORY
#define SIP_FACTORY
Definition: qgis_sip.h:76
qgsrasteriterator.h
QgsRasterDataProvider::setInput
bool setInput(QgsRasterInterface *input) override
Set input.
Definition: qgsrasterdataprovider.h:130
QgsRaster::UndefinedColorInterpretation
@ UndefinedColorInterpretation
Definition: qgsraster.h:63
qgsrasterinterface.h
QgsRasterDataProvider::stepHeight
virtual int stepHeight() const
Step height for raster iterations.
Definition: qgsrasterdataprovider.h:539
SIP_SKIP
#define SIP_SKIP
Definition: qgis_sip.h:126
QgsDataProvider::mTimestamp
QDateTime mTimestamp
Timestamp of data in the moment when the data were loaded by provider.
Definition: qgsdataprovider.h:620
qgsraster.h
QgsRasterDataProvider::TransformLayerToImage
@ TransformLayerToImage
Transforms layer (georeferenced) coordinates to image coordinates.
Definition: qgsrasterdataprovider.h:566
QgsRasterDataProvider::validatePyramidsConfigOptions
virtual QString validatePyramidsConfigOptions(QgsRaster::RasterPyramidsFormat pyramidsFormat, const QStringList &configOptions, const QString &fileFormat)
Validates pyramid creation options for a specific dataset and destination format.
Definition: qgsrasterdataprovider.h:518
QgsRasterDataProvider::remove
virtual bool remove()
Remove dataset.
Definition: qgsrasterdataprovider.h:498
QgsRaster::YCbCr_CrBand
@ YCbCr_CrBand
Cr Chroma.
Definition: qgsraster.h:79
QgsRasterIdentifyResult
Definition: qgsrasteridentifyresult.h:30
QgsRasterInterface::dataType
virtual Qgis::DataType dataType(int bandNo) const =0
Returns data type for the band specified by number.
QgsRaster::YellowBand
@ YellowBand
Yellow band of CMYK image.
Definition: qgsraster.h:75
QgsRaster::CyanBand
@ CyanBand
Cyan band of CMYK image.
Definition: qgsraster.h:73
QgsRasterDataProvider::ProviderCapability
ProviderCapability
Enumeration with capabilities that raster providers might implement.
Definition: qgsrasterdataprovider.h:98
QgsRasterDataProvider::setDpi
void setDpi(int dpi)
Sets the output device resolution.
Definition: qgsrasterdataprovider.h:422
QgsRaster::SaturationBand
@ SaturationBand
Saturation band of HLS image.
Definition: qgsraster.h:71
qgis_sip.h
QgsRasterDataProvider::getLegendGraphicFetcher
virtual QgsImageFetcher * getLegendGraphicFetcher(const QgsMapSettings *mapSettings)
Returns a new image downloader for the raster legend.
Definition: qgsrasterdataprovider.h:309
QgsRasterDataProvider::stepWidth
virtual int stepWidth() const
Step width for raster iterations.
Definition: qgsrasterdataprovider.h:532
QgsRasterIterator::DEFAULT_MAXIMUM_TILE_HEIGHT
static const int DEFAULT_MAXIMUM_TILE_HEIGHT
Default maximum tile height.
Definition: qgsrasteriterator.h:151
QgsRasterInterface::clone
virtual QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
QgsRasterDataProvider::buildPyramids
virtual QString buildPyramids(const QList< QgsRasterPyramid > &pyramidList, const QString &resamplingMethod="NEAREST", QgsRaster::RasterPyramidsFormat format=QgsRaster::PyramidsGTiff, const QStringList &configOptions=QStringList(), QgsRasterBlockFeedback *feedback=nullptr)
Create pyramid overviews.
Definition: qgsrasterdataprovider.h:316
QgsRasterDataProvider::bandScale
virtual double bandScale(int bandNo) const
Read band scale for raster value.
Definition: qgsrasterdataprovider.h:229
QgsRasterRangeList
QList< QgsRasterRange > QgsRasterRangeList
Definition: qgsrasterrange.h:26
QgsRasterDataProvider::sourceNoDataValue
virtual double sourceNoDataValue(int bandNo) const
Value representing no data value.
Definition: qgsrasterdataprovider.h:252
qgsrasterpyramid.h
QgsRasterDataProvider::colorTable
virtual QList< QgsColorRampShader::ColorRampItem > colorTable(int bandNo) const
Definition: qgsrasterdataprovider.h:259
QgsRasterDataProvider::fields
virtual QgsFields fields() const
Returns the fields of the raster layer for data providers that expose them, the default implementatio...
Definition: qgsrasterdataprovider.h:142
QgsCoordinateReferenceSystem
Definition: qgscoordinatereferencesystem.h:206
QgsDataProvider::temporalCapabilities
virtual QgsDataProviderTemporalCapabilities * temporalCapabilities()
Returns the provider's temporal capabilities.
Definition: qgsdataprovider.cpp:28
QgsRasterDataProvider::readBlock
virtual bool readBlock(int bandNo, QgsRectangle const &viewExtent, int width, int height, void *data, QgsRasterBlockFeedback *feedback=nullptr)
Reads a block of raster data into data, using the given extent and size.
Definition: qgsrasterdataprovider.h:606
QgsRasterDataProvider::TransformType
TransformType
Types of transformation in transformCoordinates() function.
Definition: qgsrasterdataprovider.h:563
QgsPointXY
Definition: qgspointxy.h:43
QgsRasterDataProvider::timestamp
QDateTime timestamp() const override
Time stamp of data source in the moment when data/metadata were loaded by provider.
Definition: qgsrasterdataprovider.h:425
QgsRasterDataProvider::colorInterpretation
virtual int colorInterpretation(int bandNo) const
Returns data type for the band specified by number.
Definition: qgsrasterdataprovider.h:151
QgsRasterDataProvider::setNoDataValue
virtual bool setNoDataValue(int bandNo, double noDataValue)
Set no data value on created dataset.
Definition: qgsrasterdataprovider.h:495
QgsRasterDataProvider::buildPyramidList
virtual QList< QgsRasterPyramid > buildPyramidList(QList< int > overviewList=QList< int >())
Returns the raster layers pyramid list.
Definition: qgsrasterdataprovider.h:338
QgsRaster::GrayIndex
@ GrayIndex
Greyscale.
Definition: qgsraster.h:64
QgsRasterInterface
Definition: qgsrasterinterface.h:116
QgsRasterDataProvider::userNoDataValues
virtual QgsRasterRangeList userNoDataValues(int bandNo) const
Returns a list of user no data value ranges.
Definition: qgsrasterdataprovider.h:257
QgsRasterDataProvider::TransformImageToLayer
@ TransformImageToLayer
Transforms image coordinates to layer (georeferenced) coordinates.
Definition: qgsrasterdataprovider.h:565
QgsRasterDataProvider::mUseSrcNoDataValue
QList< bool > mUseSrcNoDataValue
Use source nodata value.
Definition: qgsrasterdataprovider.h:638
QgsDataProvider::extent
virtual QgsRectangle extent() const =0
Returns the extent of the layer.
QgsRasterDataProvider::readBlock
virtual bool readBlock(int bandNo, int xBlock, int yBlock, void *data)
Reads a block of raster data into data.
Definition: qgsrasterdataprovider.h:598
QgsRasterBlockFeedback
Definition: qgsrasterinterface.h:40
QgsRasterIterator::DEFAULT_MAXIMUM_TILE_WIDTH
static const int DEFAULT_MAXIMUM_TILE_WIDTH
Default maximum tile width.
Definition: qgsrasteriterator.h:148
QgsRaster::RedBand
@ RedBand
Red band of RGBA image.
Definition: qgsraster.h:66
QgsRaster::YCbCr_CbBand
@ YCbCr_CbBand
Cb Chroma.
Definition: qgsraster.h:78
qgsdataprovider.h
QgsRasterDataProvider::isEditable
virtual bool isEditable() const
Checks whether the provider is in editing mode, i.e.
Definition: qgsrasterdataprovider.h:436
QgsRaster::PyramidsGTiff
@ PyramidsGTiff
Definition: qgsraster.h:96
qgsrasterrange.h
QgsRasterInterface::block
virtual QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr)=0
Read block of data using given extent and size.
QgsRaster::BlackBand
@ BlackBand
Black band of CMLY image.
Definition: qgsraster.h:76
QgsRasterDataProvider::mExtent
QgsRectangle mExtent
Definition: qgsrasterdataprovider.h:646
QgsMapSettings
Definition: qgsmapsettings.h:86
QgsRaster::HueBand
@ HueBand
Hue band of HLS image.
Definition: qgsraster.h:70
QgsRaster::PaletteIndex
@ PaletteIndex
Paletted (see associated color table)
Definition: qgsraster.h:65
QgsRaster::IdentifyFormat
IdentifyFormat
Definition: qgsraster.h:70
QgsRasterDataProvider
Definition: qgsrasterdataprovider.h:88
QgsRasterBlock
Definition: qgsrasterblock.h:36
QgsRasterDataProvider::colorInterpretationName
virtual QString colorInterpretationName(int bandNo) const
Definition: qgsrasterdataprovider.h:220
QgsRasterDataProviderTemporalCapabilities
Definition: qgsrasterdataprovidertemporalcapabilities.h:37
QgsRasterDataProvider::colorName
QString colorName(int colorInterpretation) const
Definition: qgsrasterdataprovider.h:157