Skip to content
Permalink
Browse files

prepare-commit.sh

  • Loading branch information
homann committed Sep 12, 2012
1 parent 87b9b5d commit c1f37e8a03b4752a10e5286276bfe4680a69592f
Showing with 18 additions and 18 deletions.
  1. +18 −18 src/core/qgsrasterprojector.cpp
@@ -596,18 +596,18 @@ bool QgsRasterProjector::checkCols()
QgsPoint mySrcApprox(( mySrcPoint1.x() + mySrcPoint3.x() ) / 2, ( mySrcPoint1.y() + mySrcPoint3.y() ) / 2 );
try
{
QgsPoint myDestApprox = mCoordinateTransform.transform( mySrcApprox, QgsCoordinateTransform::ReverseTransform );
double mySqrDist = myDestApprox.sqrDist( myDestPoint );
if ( mySqrDist > mSqrTolerance )
{
return false;
}
QgsPoint myDestApprox = mCoordinateTransform.transform( mySrcApprox, QgsCoordinateTransform::ReverseTransform );
double mySqrDist = myDestApprox.sqrDist( myDestPoint );
if ( mySqrDist > mSqrTolerance )
{
return false;
}
}
catch ( QgsCsException &e )
{
Q_UNUSED( e );
// Caught an error in transform
return false;
Q_UNUSED( e );
// Caught an error in transform
return false;
}
}
}
@@ -631,18 +631,18 @@ bool QgsRasterProjector::checkRows()
QgsPoint mySrcApprox(( mySrcPoint1.x() + mySrcPoint3.x() ) / 2, ( mySrcPoint1.y() + mySrcPoint3.y() ) / 2 );
try
{
QgsPoint myDestApprox = mCoordinateTransform.transform( mySrcApprox, QgsCoordinateTransform::ReverseTransform );
double mySqrDist = myDestApprox.sqrDist( myDestPoint );
if ( mySqrDist > mSqrTolerance )
{
return false;
}
QgsPoint myDestApprox = mCoordinateTransform.transform( mySrcApprox, QgsCoordinateTransform::ReverseTransform );
double mySqrDist = myDestApprox.sqrDist( myDestPoint );
if ( mySqrDist > mSqrTolerance )
{
return false;
}
}
catch ( QgsCsException &e )
{
Q_UNUSED( e );
// Caught an error in transform
return false;
Q_UNUSED( e );
// Caught an error in transform
return false;
}
}
}

0 comments on commit c1f37e8

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