This commit is contained in:
vshcherb 2020-12-07 16:09:26 +01:00 committed by GitHub
parent 43fab472af
commit 1eba748e6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -519,7 +519,11 @@ public class OsmAndFormatter {
result.append(r);
} else if (outputFormat == MGRS_FORMAT) {
MGRSPoint pnt = new MGRSPoint(new LatLonPoint(lat, lon));
result.append(pnt.toFlavoredString(5));
try {
result.append(pnt.toFlavoredString(5));
} catch (java.lang.Error e) {
e.printStackTrace();
}
}
return result.toString();
}
@ -573,4 +577,4 @@ public class OsmAndFormatter {
coordinate *= 60.0;
return coordinate;
}
}
}