MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual STRING MgCoordinateSystemMgrs::ConvertFromLonLat ( MgCoordinate pLonLat,
INT32  nPrecision 
) [pure virtual]

Converts a geographic coordinate to MGRS string form.

Parameters:
pLonLat(String/string) The geographic position to be converted. X coordinate is the longitude in degrees relative to Greenwich, negative indicating west longitude. Y coordinate is latitude in degrees, negative indicating south latitude.
nPrecision(int) A value between zero and five, indicates the precision of the numeric portion of the returned MGRS designation.
Returns:
The MGRs representation for the given point.