@@ -120,22 +120,8 @@ class QgsRasterDataProvider : QgsDataProvider, QgsRasterInterface
120
120
virtual int ySize() const;
121
121
122
122
/** read block of data */
123
- // TODO clarify what happens on the last block (the part outside raster)
124
- // virtual void readBlock( int bandNo, int xBlock, int yBlock, void *data );
125
-
126
- /** read block of data using give extent and size */
127
- // virtual void readBlock( int bandNo, QgsRectangle const & viewExtent, int width, int height, void *data );
128
-
129
- /** read block of data using give extent and size */
130
- // virtual void *readBlock( int bandNo, QgsRectangle const & viewExtent, int width, int height, QgsCoordinateReferenceSystem theSrcCRS, QgsCoordinateReferenceSystem theDestCRS, void *data );
131
-
132
- /** Read block of data using given extent and size. */
133
- // virtual void *readBlock( int bandNo, QgsRectangle const & extent, int width, int height );
134
123
virtual QgsRasterBlock *block( int bandNo, const QgsRectangle &extent, int width, int height ) / Factory /;
135
124
136
- /* Read a value from a data block at a given index. */
137
- //virtual double readValue( void *data, int type, int index );
138
-
139
125
/* Return true if source band has no data value */
140
126
virtual bool srcHasNoDataValue( int bandNo ) const;
141
127
@@ -145,14 +131,6 @@ class QgsRasterDataProvider : QgsDataProvider, QgsRasterInterface
145
131
/** \brief Set source nodata value usage */
146
132
virtual void setUseSrcNoDataValue( int bandNo, bool use );
147
133
148
- /** value representing null data */
149
- //virtual double noDataValue() const;
150
-
151
- /** Value representing currentno data.
152
- * WARNING: this value returned by this method is not constant. It may change
153
- * for example if user disable use of source no data value. */
154
- //virtual double noDataValue( int bandNo ) const;
155
-
156
134
/** Value representing no data value. */
157
135
virtual double srcNoDataValue( int bandNo ) const;
158
136
@@ -161,9 +139,6 @@ class QgsRasterDataProvider : QgsDataProvider, QgsRasterInterface
161
139
/** Get list of user no data value ranges */
162
140
virtual QgsRasterRangeList userNoDataValue( int bandNo ) const;
163
141
164
- virtual double minimumValue( int bandNo ) const;
165
- virtual double maximumValue( int bandNo ) const;
166
-
167
142
virtual QList<QgsColorRampShader::ColorRampItem> colorTable( int bandNo ) const;
168
143
169
144
// Defined in parent
@@ -235,11 +210,6 @@ class QgsRasterDataProvider : QgsDataProvider, QgsRasterInterface
235
210
@note: this method was added in version 1.2*/
236
211
void setDpi( int dpi );
237
212
238
- static QStringList cStringList2Q_( char ** stringList );
239
-
240
- static QString makeTableCell( const QString & value );
241
- static QString makeTableCells( const QStringList & values );
242
-
243
213
/** Time stamp of data source in the moment when data/metadata were loaded by provider */
244
214
virtual QDateTime timestamp() const;
245
215
@@ -273,9 +243,7 @@ class QgsRasterDataProvider : QgsDataProvider, QgsRasterInterface
273
243
virtual bool remove();
274
244
275
245
/** Returns a list of pyramid resampling method names for given provider */
276
- static QStringList pyramidResamplingMethods( QString providerKey = "gdal" );
277
- /** Returns the pyramid resampling argument that corresponds to a given method */
278
- static QString pyramidResamplingArg( QString method, QString providerKey = "gdal" );
246
+ static QList<QPair<QString,QString> > pyramidResamplingMethods( QString providerKey );
279
247
280
248
/** Validates creation options for a specific dataset and destination format.
281
249
* @note used by GDAL provider only
0 commit comments