MGRS number translate fix

This commit is contained in:
androiddevkotlin 2021-03-26 01:55:38 +02:00
parent eeaf45ea98
commit 33968534fa

View file

@ -17,6 +17,7 @@ package com.jwetherell.openmap.common;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Locale;
public class MGRSPoint extends ZonedUTMPoint { public class MGRSPoint extends ZonedUTMPoint {
@ -697,10 +698,9 @@ public class MGRSPoint extends ZonedUTMPoint {
all.set(1, shiftChar(all.get(1), eastShift, northShift)); all.set(1, shiftChar(all.get(1), eastShift, northShift));
String zero = ""; String zero = "";
} }
all.add(String.format(java.util.Locale.US,"%0" + accuracy + "d", roundedEasting));
all.add(String.format("%0" + accuracy + "d", roundedEasting)); all.add(String.format(java.util.Locale.US,"%0" + accuracy + "d", roundedNorthing));
all.add(String.format("%0" + accuracy + "d", roundedNorthing));
break; break;
} }
} }