@@ -120,22 +120,8 @@ class QgsRasterDataProvider : QgsDataProvider, QgsRasterInterface
120120 virtual int ySize() const;
121121
122122 /** 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 );
134123 virtual QgsRasterBlock *block( int bandNo, const QgsRectangle &extent, int width, int height ) / Factory /;
135124
136- /* Read a value from a data block at a given index. */
137- //virtual double readValue( void *data, int type, int index );
138-
139125 /* Return true if source band has no data value */
140126 virtual bool srcHasNoDataValue( int bandNo ) const;
141127
@@ -145,14 +131,6 @@ class QgsRasterDataProvider : QgsDataProvider, QgsRasterInterface
145131 /** \brief Set source nodata value usage */
146132 virtual void setUseSrcNoDataValue( int bandNo, bool use );
147133
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-
156134 /** Value representing no data value. */
157135 virtual double srcNoDataValue( int bandNo ) const;
158136
@@ -161,9 +139,6 @@ class QgsRasterDataProvider : QgsDataProvider, QgsRasterInterface
161139 /** Get list of user no data value ranges */
162140 virtual QgsRasterRangeList userNoDataValue( int bandNo ) const;
163141
164- virtual double minimumValue( int bandNo ) const;
165- virtual double maximumValue( int bandNo ) const;
166-
167142 virtual QList<QgsColorRampShader::ColorRampItem> colorTable( int bandNo ) const;
168143
169144 // Defined in parent
@@ -235,11 +210,6 @@ class QgsRasterDataProvider : QgsDataProvider, QgsRasterInterface
235210 @note: this method was added in version 1.2*/
236211 void setDpi( int dpi );
237212
238- static QStringList cStringList2Q_( char ** stringList );
239-
240- static QString makeTableCell( const QString & value );
241- static QString makeTableCells( const QStringList & values );
242-
243213 /** Time stamp of data source in the moment when data/metadata were loaded by provider */
244214 virtual QDateTime timestamp() const;
245215
@@ -273,9 +243,7 @@ class QgsRasterDataProvider : QgsDataProvider, QgsRasterInterface
273243 virtual bool remove();
274244
275245 /** 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 );
279247
280248 /** Validates creation options for a specific dataset and destination format.
281249 * @note used by GDAL provider only
0 commit comments