mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
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:
parent
6446f0e1ea
commit
7546fca7fb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user