Home > Working with SGWorld > CoordServices (ICoordServices6) > Reproject

Reproject

This method converts a given coordinate from one coordinate system to another.

 

JavaScript

 

Reproject(From, To, X, Y)

 

C#

 

IPoint3D Reproject(

      ICoordinateSystem6      From,

      ICoordinateSystem6      To,

      double      X,

      double      Y)

 

C++

 

HRESULT Reproject(

       ICoordinateSystem6 *   From,

       ICoordinateSystem6 *   To,

       double     X,

       double     Y,

       ICoord2D **      pVal )

 

Parameters

From

The coordinate system in which the coordinate is given.

To

The coordinate system to which you want to convert the coordinate.

X

X-coordinate in coordinate system units.

Y

Y-coordinate in coordinate system units.

Return Value

pVal

An ICoord2D representing the converted coordinates.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.