MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
MgCoordinateSystemMgrs Class Reference

This object carries most, if not all, intelligence specific to the MGRS (Military Grid Reference System) grid standard. It can be used at two distinct levels, depending upon how it is manufactured. More...

+ Inheritance diagram for MgCoordinateSystemMgrs:

List of all members.

Public Member Functions

virtual STRING ConvertFromLonLat (double dLongitude, double dLatitude, INT32 nPrecision)=0
 Converts a geographic coordinate to MGRS string form.
virtual STRING ConvertFromLonLat (MgCoordinate *pLonLat, INT32 nPrecision)=0
 Converts a geographic coordinate to MGRS string form.
virtual MgCoordinateConvertToLonLat (CREFSTRING sMgrs)=0
 Converts an MGRS string to geographic coordinates.
virtual MgCoordinateConvertToLonLat (CREFSTRING sMgrs, INT32 grdSqrPosition)=0
 Converts an MGRS string to geographic coordinates.
virtual INT8 GetLetteringScheme ()=0
 Returns a value as defined by the MgCoordinateSystemMgrsLetteringScheme object indicating which lettering scheme is currently active.

Detailed Description

This object carries most, if not all, intelligence specific to the MGRS (Military Grid Reference System) grid standard. It can be used at two distinct levels, depending upon how it is manufactured.

When manufactured with an ellipsoid/datum specification, this object is suitable only for conversion of geographic coordinates to MGRS strings and vice-versa.

WHen manufactured with a frame coordinate system with a grid boundary subsequently supplied, the resulting object is capable of NGRS string conversions AND the generation of MGRS grids.

When manufactured using a frame coordinate system and subsequent provision of a frame boundary (see base class MgCoordinateSystemGridBase) the members derived from the MgCoordinateSystemGridBase base class can be used for MGRS grid drawing purposes.