@@ -76,114 +76,35 @@ class QgsGdalProvider : public QgsRasterDataProvider, QgsGdalProviderBase
7676
7777 QgsGdalProvider * clone () const override ;
7878
79- /* * \brief Renders the layer as an image
80- */
8179 QImage* draw ( QgsRectangle const & viewExtent, int pixelWidth, int pixelHeight ) override ;
82-
83- /* * Return a provider name
84- *
85- * Essentially just returns the provider key. Should be used to build file
86- * dialogs so that providers can be shown with their supported types. Thus
87- * if more than one provider supports a given format, the user is able to
88- * select a specific provider to open that file.
89- *
90- * @note
91- *
92- * Instead of being pure virtual, might be better to generalize this
93- * behavior and presume that none of the sub-classes are going to do
94- * anything strange with regards to their name or description?
95- *
96- */
9780 QString name () const override ;
98-
99-
100- /* * Return description
101- *
102- * Return a terse string describing what the provider is.
103- *
104- * @note
105- *
106- * Instead of being pure virtual, might be better to generalize this
107- * behavior and presume that none of the sub-classes are going to do
108- * anything strange with regards to their name or description?
109- *
110- */
11181 QString description () const override ;
112-
11382 virtual QgsCoordinateReferenceSystem crs () const override ;
114-
11583 virtual QgsRectangle extent () const override ;
116-
11784 bool isValid () const override ;
118-
11985 QgsRasterIdentifyResult identify ( const QgsPoint & thePoint, QgsRaster::IdentifyFormat theFormat, const QgsRectangle &theExtent = QgsRectangle(), int theWidth = 0, int theHeight = 0, int theDpi = 96 ) override ;
120-
121- /* *
122- * \brief Returns the caption error text for the last error in this provider
123- *
124- * If an operation returns 0 (e.g. draw()), this function
125- * returns the text of the error associated with the failure.
126- * Interactive users of this provider can then, for example,
127- * call a QMessageBox to display the contents.
128- */
12986 QString lastErrorTitle () override ;
130-
131- /* *
132- * \brief Returns the verbose error text for the last error in this provider
133- *
134- * If an operation returns 0 (e.g. draw()), this function
135- * returns the text of the error associated with the failure.
136- * Interactive users of this provider can then, for example,
137- * call a QMessageBox to display the contents.
138- */
139-
14087 QString lastError () override ;
141-
142- /* * Returns a bitmask containing the supported capabilities
143- Note, some capabilities may change depending on which
144- sublayers are visible on this provider, so it may
145- be prudent to check this value per intended operation.
146- */
14788 int capabilities () const override ;
148-
14989 Qgis::DataType dataType ( int bandNo ) const override ;
15090 Qgis::DataType sourceDataType ( int bandNo ) const override ;
151-
15291 int bandCount () const override ;
153-
15492 int colorInterpretation ( int bandNo ) const override ;
155-
15693 int xBlockSize () const override ;
15794 int yBlockSize () const override ;
158-
15995 int xSize () const override ;
16096 int ySize () const override ;
161-
16297 QString generateBandName ( int theBandNumber ) const override ;
16398
164- // ! Reimplemented from QgsRasterDataProvider to bypass second resampling (more efficient for local file based sources)
99+ // Reimplemented from QgsRasterDataProvider to bypass second resampling (more efficient for local file based sources)
165100 QgsRasterBlock *block ( int theBandNo, const QgsRectangle &theExtent, int theWidth, int theHeight, QgsRasterBlockFeedback* feedback = nullptr ) override ;
166101
167102 void readBlock ( int bandNo, int xBlock, int yBlock, void *data ) override ;
168103 void readBlock ( int bandNo, QgsRectangle const & viewExtent, int width, int height, void *data, QgsRasterBlockFeedback* feedback = nullptr ) override ;
169-
170- /* * Read band scale for raster value
171- * @@note added in 2.3 */
172104 double bandScale ( int bandNo ) const override ;
173-
174- /* * Read band offset for raster value
175- * @@note added in 2.3 */
176105 double bandOffset ( int bandNo ) const override ;
177-
178106 QList<QgsColorRampShader::ColorRampItem> colorTable ( int bandNo )const override ;
179-
180- /* *
181- * Get metadata in a format suitable for feeding directly
182- * into a subset of the GUI raster properties "Metadata" tab.
183- */
184107 QString metadata () override ;
185-
186- // ! \brief Returns the sublayers of this layer - Useful for providers that manage their own layers, such as WMS
187108 QStringList subLayers () const override ;
188109 static QStringList subLayers ( GDALDatasetH dataset );
189110
@@ -228,12 +149,8 @@ class QgsGdalProvider : public QgsRasterDataProvider, QgsGdalProviderBase
228149
229150 static QMap<QString, QString> supportedMimes ();
230151
231- // ! Writes into the provider datasource
232152 bool write ( void * data, int band, int width, int height, int xOffset, int yOffset ) override ;
233-
234153 bool setNoDataValue ( int bandNo, double noDataValue ) override ;
235-
236- // ! Remove dataset
237154 bool remove () override ;
238155
239156 QString validateCreationOptions ( const QStringList& createOptions, const QString& format ) override ;
0 commit comments