Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
gdal provider: add statusChanged signal and fix debugging output
  • Loading branch information
jef-n committed Dec 22, 2011
1 parent 5829fed commit 6dae2f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/providers/gdal/qgsgdalprovider.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/providers/gdal/qgsgdalprovider.h
Expand Up @@ -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 );
Expand Down

0 comments on commit 6dae2f1

Please sign in to comment.