MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgCoordinate* MgCoordinateSystemTransform::Transform ( double  x,
double  y 
) [pure virtual]

Transforms the given X and Y values whose frame of reference is the source coordinate system into an XY coordinate whose frame of reference is the target coordinate system.

Parameters:
x(double) The X ordinate to transform.
y(double) The Y ordinate to transform.
Returns:
Returns an MgCoordinate object which is the equivalent in the target coordinate system of the given X and Y ordinates.
Example (PHP)
See the code example in MgCoordinateSystemTransform::Transform Method (MgCoordinate*) and make the appropriate substitutions.
Exceptions:
MgCoordinateSystemTransformFailedException

Implements MgTransform.