MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgCoordinateSystemMgrs* MgCoordinateSystemFactory::GetMgrsEllipsoid ( CREFSTRING  sEllipsoidCode,
INT8  nLetteringScheme,
bool  bSetExceptionsOn 
) [virtual]

Manufactures an MGRS grid object. The returned object is suitable only for use in simple coordinate <-> MGRS string calculations.

Parameters:
sEllipsoidCodeDictionary code name of the ellipsoid upon which conversions to and from MGRS strings are to be based.
nLetteringSchemeA value as defined in the MgCoordinateSystemMgrsLetteringScheme object which specifies the lettering scheme to be used on MGRS string conversions.
bSetExceptionsOntrue indicates that exceptions are to be thrown on coordinate conversions which fail for any reason.
Returns:
Returns a disposable pointer to an MgCoordinateSystemMgrs object which is suitable only for MGRS string conversions.
Exceptions:
MgOutOfMemoryExceptionThrown on heap memory allocation failure.