Skip to content
Permalink
Browse files

gdal provider: add statusChanged signal and fix debugging output

  • Loading branch information
jef-n committed Dec 22, 2011
1 parent 5829fed commit 6dae2f18a1f6528ea1f7d11c04b65b523ac70d79
Showing with 6 additions and 6 deletions.
  1. +3 −6 src/providers/gdal/qgsgdalprovider.cpp
  2. +3 −0 src/providers/gdal/qgsgdalprovider.h
@@ -280,7 +280,7 @@ QgsGdalProvider::QgsGdalProvider( QString const & uri )
}
}
mNoDataValue.append( myNoDataValue );
QgsDebugMsg( QString( "mNoDataValue[%1] = %1" ).arg( i - 1 ).arg( mNoDataValue[i-1] ) );
QgsDebugMsg( QString( "mNoDataValue[%1] = %2" ).arg( i - 1 ).arg( mNoDataValue[i-1] ) );
}

mValid = true;
@@ -1512,11 +1512,8 @@ QList<QgsRasterPyramid> QgsGdalProvider::buildPyramidList()
myRasterPyramid.xDim = ( int )( 0.5 + ( myWidth / ( double )myDivisor ) );
myRasterPyramid.yDim = ( int )( 0.5 + ( myHeight / ( double )myDivisor ) );
myRasterPyramid.exists = false;
#ifdef QGISDEBUG
QgsLogger::debug( "Pyramid", myRasterPyramid.level, 1, __FILE__, __FUNCTION__, __LINE__ );
QgsLogger::debug( "xDim", myRasterPyramid.xDim, 1, __FILE__, __FUNCTION__, __LINE__ );
QgsLogger::debug( "yDim", myRasterPyramid.yDim, 1, __FILE__, __FUNCTION__, __LINE__ );
#endif

QgsDebugMsg( QString( "Pyramid %1 xDim %2 yDim %3" ).arg( myRasterPyramid.level ).arg( myRasterPyramid.xDim ).arg( myRasterPyramid.yDim ) );

//
// Now we check if it actually exists in the raster layer
@@ -256,6 +256,9 @@ class QgsGdalProvider : public QgsRasterDataProvider
/** Emit a signal to notify of the progress event. */
void emitProgress( int theType, double theProgress, QString theMessage );

signals:
void statusChanged( QString );

private:
// initialize CRS from wkt
bool crsFromWkt( const char *wkt );

0 comments on commit 6dae2f1

Please sign in to comment.
You can’t perform that action at this time.