use of org.opensextant.geodesy.Latitude in project Xponents by OpenSextant.
the class GeocoordMatch method toMGRS.
/**
* Convert the current coordinate to MGRS
*
* @return string version of MGRS
*/
public String toMGRS() {
if (mgrs == null) {
mgrs = new MGRS(new Longitude(longitude, Angle.DEGREES), new Latitude(latitude, Angle.DEGREES));
gridzone = mgrs.toString().substring(0, 5);
}
return mgrs.toString();
}