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

Converts a geographic coordinate to MGRS string form.

Parameters:
dLongitude(double) Longitude of the geographic position to be converted, in degrees relative to Greenwich. Use negative value for west longitude.
dLatitude(double) Latitude of the geographic position to be converted, in degrees. Use negative value for 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.