Skip to content

Commit 0b4ddc5

Browse files
author
jef
committedApr 20, 2011
reduce raster reprojection debugging noice
git-svn-id: http://svn.osgeo.org/qgis/trunk@15783 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c087409 commit 0b4ddc5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/core/qgsrasterprojector.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ void QgsRasterProjector::nextHelper()
295295

296296
void QgsRasterProjector::srcRowCol( int theDestRow, int theDestCol, int *theSrcRow, int *theSrcCol )
297297
{
298-
if ( mApproximate ) approximateSrcRowCol( theDestRow, theDestCol, theSrcRow, theSrcCol);
299-
else preciseSrcRowCol( theDestRow, theDestCol, theSrcRow, theSrcCol);
298+
if ( mApproximate ) approximateSrcRowCol( theDestRow, theDestCol, theSrcRow, theSrcCol );
299+
else preciseSrcRowCol( theDestRow, theDestCol, theSrcRow, theSrcCol );
300300
}
301301

302302
void QgsRasterProjector::preciseSrcRowCol( int theDestRow, int theDestCol, int *theSrcRow, int *theSrcCol )
@@ -305,9 +305,9 @@ void QgsRasterProjector::preciseSrcRowCol( int theDestRow, int theDestCol, int *
305305
double x = mDestExtent.xMinimum() + ( theDestCol + 0.5 ) * mDestXRes;
306306
double y = mDestExtent.yMaximum() - ( theDestRow + 0.5 ) * mDestYRes;
307307
double z = 0;
308-
308+
309309
mCoordinateTransform.transformInPlace( x, y, z );
310-
310+
311311
// Get source row col
312312
*theSrcRow = ( int ) floor(( mSrcExtent.yMaximum() - y ) / mSrcXRes );
313313
*theSrcCol = ( int ) floor(( x - mSrcExtent.xMinimum() ) / mSrcYRes );
@@ -370,7 +370,7 @@ void QgsRasterProjector::insertRows()
370370
{
371371
myRow.append( QgsPoint() );
372372
}
373-
QgsDebugMsg( QString( "insert new row at %1" ).arg( 1 + r*2 ) );
373+
QgsDebugMsgLevel( QString( "insert new row at %1" ).arg( 1 + r*2 ), 3 );
374374
mCPMatrix.insert( 1 + r*2, myRow );
375375
}
376376
mCPRows += mCPRows - 1;
@@ -409,7 +409,7 @@ void QgsRasterProjector::calcCP( int theRow, int theCol )
409409

410410
bool QgsRasterProjector::calcRow( int theRow )
411411
{
412-
QgsDebugMsg( QString( "theRow = %1" ).arg( theRow ) );
412+
QgsDebugMsgLevel( QString( "theRow = %1" ).arg( theRow ), 3 );
413413
for ( int i = 0; i < mCPCols; i++ )
414414
{
415415
calcCP( theRow, i );

0 commit comments

Comments
 (0)
Please sign in to comment.