Skip to content

Commit

Permalink
reduce raster reprojection debugging noice
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15783 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 20, 2011
1 parent c087409 commit 0b4ddc5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/qgsrasterprojector.cpp
Expand Up @@ -295,8 +295,8 @@ void QgsRasterProjector::nextHelper()

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 )
Expand All @@ -305,9 +305,9 @@ void QgsRasterProjector::preciseSrcRowCol( int theDestRow, int theDestCol, int *
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 );
Expand Down Expand Up @@ -370,7 +370,7 @@ void QgsRasterProjector::insertRows()
{
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;
Expand Down Expand Up @@ -409,7 +409,7 @@ void QgsRasterProjector::calcCP( int theRow, int theCol )

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 );
Expand Down

0 comments on commit 0b4ddc5

Please sign in to comment.