ConvertMGRSToCoordinate

This method converts a given Military Grid Reference System coordinate to the coordinate system of the terrain database. The coordinates to be converted should be given in bstrMGRS. After the method is completed, pVal returns the converted coordinates.

Note:    The returned coordinates are the MGRS coordinates of the center of the MGRS tile.  

 

JavaScript

 

ConvertMGRSToCoordinate(

       bstrMGRS)

 

C#

 

ICoord2D ConvertMGRSToCoordinate(

       string bstrMGRS)

 

C++

 

HRESULT ConvertMGRSToCoordinate (

        BSTR  bstrMGRS,

        ICoord2D **  pVal )

 

Parameters

bstrMGRS

The MGRS coordinate as a string value.

Return Value

pVal

An ICoord2D representing the converted MPT coordinates.

Exceptions

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