Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/gov/nasa/worldwind/geom/coords/MGRSCoordConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ else if (error_code == MGRS_NOZONE_WARNING)
UPSCoord UPS = convertMGRSToUPS(MGRSString);
if (UPS != null)
{
error_code = MGRS_NO_ERROR;
latitude = UPS.getLatitude().radians;
longitude = UPS.getLongitude().radians;
}
Expand Down Expand Up @@ -365,6 +366,7 @@ private MGRSComponents breakMGRSString(String MGRSString)
num_letters = i - j;
if (num_letters == 3)
{
error_code = MGRS_NO_ERROR;
/* get letters */
letters[0] = alphabet.indexOf(Character.toUpperCase(MGRSString.charAt(j)));
if ((letters[0] == LETTER_I) || (letters[0] == LETTER_O))
Expand Down Expand Up @@ -1124,7 +1126,7 @@ private UPSCoord convertMGRSToUPS(String MGRS)
{
hemisphere = AVKey.SOUTH;

ltr2_low_value = upsConstants[mgrs.latitudeBand][12]; //.ltr2_low_value;
ltr2_low_value = upsConstants[mgrs.latitudeBand][1]; //.ltr2_low_value;
ltr2_high_value = upsConstants[mgrs.latitudeBand][2]; //.ltr2_high_value;
ltr3_high_value = upsConstants[mgrs.latitudeBand][3]; //.ltr3_high_value;
false_easting = upsConstants[mgrs.latitudeBand][4]; //.false_easting;
Expand Down