Skip to content

Commit 12cbb96

Browse files
jef-nalexbruy
authored andcommitted
gdal provider: add statusChanged signal and fix debugging output
1 parent 4783b7c commit 12cbb96

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/providers/gdal/qgsgdalprovider.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ QgsGdalProvider::QgsGdalProvider( QString const & uri )
285285
}
286286
}
287287
mNoDataValue.append( myNoDataValue );
288-
QgsDebugMsg( QString( "mNoDataValue[%1] = %1" ).arg( i - 1 ).arg( mNoDataValue[i-1] ) );
288+
QgsDebugMsg( QString( "mNoDataValue[%1] = %2" ).arg( i - 1 ).arg( mNoDataValue[i-1] ) );
289289
}
290290

291291
mValid = true;
@@ -1506,11 +1506,8 @@ QList<QgsRasterPyramid> QgsGdalProvider::buildPyramidList()
15061506
myRasterPyramid.xDim = ( int )( 0.5 + ( myWidth / ( double )myDivisor ) );
15071507
myRasterPyramid.yDim = ( int )( 0.5 + ( myHeight / ( double )myDivisor ) );
15081508
myRasterPyramid.exists = false;
1509-
#ifdef QGISDEBUG
1510-
QgsLogger::debug( "Pyramid", myRasterPyramid.level, 1, __FILE__, __FUNCTION__, __LINE__ );
1511-
QgsLogger::debug( "xDim", myRasterPyramid.xDim, 1, __FILE__, __FUNCTION__, __LINE__ );
1512-
QgsLogger::debug( "yDim", myRasterPyramid.yDim, 1, __FILE__, __FUNCTION__, __LINE__ );
1513-
#endif
1509+
1510+
QgsDebugMsg( QString( "Pyramid %1 xDim %2 yDim %3" ).arg( myRasterPyramid.level ).arg( myRasterPyramid.xDim ).arg( myRasterPyramid.yDim ) );
15141511

15151512
//
15161513
// Now we check if it actually exists in the raster layer

src/providers/gdal/qgsgdalprovider.h

+3
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ class QgsGdalProvider : public QgsRasterDataProvider
248248
/** Emit a signal to notify of the progress event. */
249249
void emitProgress( int theType, double theProgress, QString theMessage );
250250

251+
signals:
252+
void statusChanged( QString );
253+
251254
private:
252255
// initialize CRS from wkt
253256
bool crsFromWkt( const char *wkt );

0 commit comments

Comments
 (0)