Skip to content

Commit 6dae2f1

Browse files
committedDec 22, 2011
gdal provider: add statusChanged signal and fix debugging output
1 parent 5829fed commit 6dae2f1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎src/providers/gdal/qgsgdalprovider.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ QgsGdalProvider::QgsGdalProvider( QString const & uri )
280280
}
281281
}
282282
mNoDataValue.append( myNoDataValue );
283-
QgsDebugMsg( QString( "mNoDataValue[%1] = %1" ).arg( i - 1 ).arg( mNoDataValue[i-1] ) );
283+
QgsDebugMsg( QString( "mNoDataValue[%1] = %2" ).arg( i - 1 ).arg( mNoDataValue[i-1] ) );
284284
}
285285

286286
mValid = true;
@@ -1512,11 +1512,8 @@ QList<QgsRasterPyramid> QgsGdalProvider::buildPyramidList()
15121512
myRasterPyramid.xDim = ( int )( 0.5 + ( myWidth / ( double )myDivisor ) );
15131513
myRasterPyramid.yDim = ( int )( 0.5 + ( myHeight / ( double )myDivisor ) );
15141514
myRasterPyramid.exists = false;
1515-
#ifdef QGISDEBUG
1516-
QgsLogger::debug( "Pyramid", myRasterPyramid.level, 1, __FILE__, __FUNCTION__, __LINE__ );
1517-
QgsLogger::debug( "xDim", myRasterPyramid.xDim, 1, __FILE__, __FUNCTION__, __LINE__ );
1518-
QgsLogger::debug( "yDim", myRasterPyramid.yDim, 1, __FILE__, __FUNCTION__, __LINE__ );
1519-
#endif
1515+
1516+
QgsDebugMsg( QString( "Pyramid %1 xDim %2 yDim %3" ).arg( myRasterPyramid.level ).arg( myRasterPyramid.xDim ).arg( myRasterPyramid.yDim ) );
15201517

15211518
//
15221519
// Now we check if it actually exists in the raster layer

‎src/providers/gdal/qgsgdalprovider.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ class QgsGdalProvider : public QgsRasterDataProvider
256256
/** Emit a signal to notify of the progress event. */
257257
void emitProgress( int theType, double theProgress, QString theMessage );
258258

259+
signals:
260+
void statusChanged( QString );
261+
259262
private:
260263
// initialize CRS from wkt
261264
bool crsFromWkt( const char *wkt );

0 commit comments

Comments
 (0)
Please sign in to comment.