ConvertFromMGRS

This method converts a given Military Grid Reference System coordinate to the coordinate system of the terrain database. If you called SetSourceCS() to change the client application coordinate system, the coordinate returned is in the set coordinate system.
The coordinates to be converted should be given in bstrMGRS. After the method is completed, doubleCoordX and doubleCoordY return the converted coordinates.

Implemented only in ICoordSys2.

 

HRESULT ConvertFromMGRS(

 [in] BSTR bstrMGRS,

 [out] VARIANT* doubleCoordX,

 [out] VARIANT* doubleCoordY)

Parameters:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

TE_E_INTERNAL

TerraExplorer internal error.

TE_E_COORDSYS_NOT_INIT

Reprojection error.

The key component geocalc.dat may be missing