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

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.

 

JavaScript

 

ConvertMGRSToCoordinate(bstrMGRS)

 

C#

 

IPoint3D 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.