MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgCoordinateSystemGridBase* MgCoordinateSystemFactory::MgrsGrid ( MgCoordinateSystem pFrameCs,
bool  bUseFrameDatum,
INT8  nLetteringScheme,
bool  bSetExceptionsOn 
) [virtual]

Manufactures an MGRS grid object which is suitable for generating an actual MGRS grid.

Parameters:
pFrameCsThe frame coordinate system.
bUseFrameDatumtrue causes the frame datum to be used for all geodetic calculations neccessary to generate the grid; otherwise WGS84 is assumed.
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. This applies only to MGRS string conversions.
Returns:
Returns a disposable pointer to the abstract interface class from which the MGRS grid object (and all other grid objects) derive.
Exceptions:
MgOutOfMemoryExceptionThrown on heap memory allocation failure.
Remarks:
Refer to MgCoordinateSystemFactory::CreateFromCode for additional exception information.
Coordinate system transformation exceptions are always suppressed during grid generation.