commot forogtten file to go with the .h

git-svn-id: http://svn.osgeo.org/qgis/trunk@3159 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
g_j_m 2005-04-14 19:52:56 +00:00
parent 6446f0e1ea
commit 7546fca7fb

View File

@ -208,6 +208,26 @@ QgsPoint QgsCoordinateTransform::transform(const double theX, const double theY=
return transform(QgsPoint(theX, theY), direction);
}
void QgsCoordinateTransform::transformInPlace(double& x, double& y,
TransformDirection direction) const
{
if (mShortCircuit || !mInitialisedFlag)
return;
// transform x
double z = 0.0;
try
{
transformCoords(1, x, y, z, direction );
}
catch(QgsCsException &cse)
{
//something bad happened....
// rethrow the exception
throw cse;
}
}
QgsRect QgsCoordinateTransform::transform(const QgsRect theRect,TransformDirection direction) const
{
if (mShortCircuit || !mInitialisedFlag) return theRect;