MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgCoordinateSystemGridSpecification* MgCoordinateSystemFactory::GridSpecification ( INT32  gridType,
INT32  gridLevel 
) [virtual]

Constructs a grid specification object with all specifications set to the values indicated by the supplied parameters.

Parameters:
gridTypeA value defined by the MgCoordinateSystemGridSpecializationType object which indicates the Type of specialized grid desired.
gridLevelA value which indicates the density of the grid desired. The exact value of this parameter is dependent upon the value of the gridType argument. See Remarks below.
Returns:
Returns a fully initialized grid specification structure.
Exceptions:
std::bad_allocThrown in the event of a heap memory allocation failure.
Remarks:
The value of the gridLevel parameter is depenent upon the gridType argument. For each type of grid, there exists a different set legal values for the gridLevel parameter. For example, the most common usgae would have the gridType parameter set to MgCoordinateSystemGridSpecializationType::MGRS and therefore the value of the gridLevel argument would need to be a value defined by the MgCoordinateSystemMgrsGridLevel object.