[QGIS Commit] r15783 - trunk/qgis/src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Apr 20 17:23:47 EDT 2011
Author: jef
Date: 2011-04-20 14:23:47 -0700 (Wed, 20 Apr 2011)
New Revision: 15783
Modified:
trunk/qgis/src/core/qgsrasterprojector.cpp
Log:
reduce raster reprojection debugging noice
Modified: trunk/qgis/src/core/qgsrasterprojector.cpp
===================================================================
--- trunk/qgis/src/core/qgsrasterprojector.cpp 2011-04-20 20:06:59 UTC (rev 15782)
+++ trunk/qgis/src/core/qgsrasterprojector.cpp 2011-04-20 21:23:47 UTC (rev 15783)
@@ -295,8 +295,8 @@
void QgsRasterProjector::srcRowCol( int theDestRow, int theDestCol, int *theSrcRow, int *theSrcCol )
{
- if ( mApproximate ) approximateSrcRowCol( theDestRow, theDestCol, theSrcRow, theSrcCol);
- else preciseSrcRowCol( theDestRow, theDestCol, theSrcRow, theSrcCol);
+ if ( mApproximate ) approximateSrcRowCol( theDestRow, theDestCol, theSrcRow, theSrcCol );
+ else preciseSrcRowCol( theDestRow, theDestCol, theSrcRow, theSrcCol );
}
void QgsRasterProjector::preciseSrcRowCol( int theDestRow, int theDestCol, int *theSrcRow, int *theSrcCol )
@@ -305,9 +305,9 @@
double x = mDestExtent.xMinimum() + ( theDestCol + 0.5 ) * mDestXRes;
double y = mDestExtent.yMaximum() - ( theDestRow + 0.5 ) * mDestYRes;
double z = 0;
-
+
mCoordinateTransform.transformInPlace( x, y, z );
-
+
// Get source row col
*theSrcRow = ( int ) floor(( mSrcExtent.yMaximum() - y ) / mSrcXRes );
*theSrcCol = ( int ) floor(( x - mSrcExtent.xMinimum() ) / mSrcYRes );
@@ -370,7 +370,7 @@
{
myRow.append( QgsPoint() );
}
- QgsDebugMsg( QString( "insert new row at %1" ).arg( 1 + r*2 ) );
+ QgsDebugMsgLevel( QString( "insert new row at %1" ).arg( 1 + r*2 ), 3 );
mCPMatrix.insert( 1 + r*2, myRow );
}
mCPRows += mCPRows - 1;
@@ -409,7 +409,7 @@
bool QgsRasterProjector::calcRow( int theRow )
{
- QgsDebugMsg( QString( "theRow = %1" ).arg( theRow ) );
+ QgsDebugMsgLevel( QString( "theRow = %1" ).arg( theRow ), 3 );
for ( int i = 0; i < mCPCols; i++ )
{
calcCP( theRow, i );
More information about the QGIS-commit
mailing list