MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgCoordinateSystemMgrs* MgCoordinateSystemFactory::GetMgrs ( double  dEquatorialRadius,
double  dEccentricity,
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:
dEquatorialRadiusEquatorial radius of the ellipsod upon which conversions to and from MGRS strings are to be based.
dEccentricityEccentricity of the ellipsod 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.