MGRS number translate fix
This commit is contained in:
parent
eeaf45ea98
commit
33968534fa
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue