Hi all! I'm trying to convert a 15 didgit MGRS to the respective GEO_DMS, GEO_DEG, GEO_DM coords.
There seems to be an issue with the precision of the conversion.
Take the MGRS: '31U CT 41024 19890'
GEO_DEG: result should be N 51.60757, E 0.703736 but its N 51.611383 E 0.703736
GEO_DMS: result should be N 51° 36' 27.27", E 0° 42' 14.94" E but its N 51° 36'40.98", E 0° 42'13.45"
GEO_DM: result should be N 51° 36.454' E 0° 42.249' but its N 51°36.9830' E 0°42.2241'
var locationString = "31U CT 41024 19890";
var location = Position.parse(locationString, Position.GEO_MGRS);
System.println(location.toGeoString(Position.GEO_DM));
System.println(location.toGeoString(Position.GEO_DMS));
System.println(location.toGeoString(Position.GEO_DEG));
Would anyone mind telling me if I'm doign something wrong or if this is the expected results. Its like the MGRS is being trimmed when the location object is created. I really need the precision for 15 MRGS strings.
N.B. this is a handy site to check the accuracy of conversions https://legallandconverter.com/p50.html
Many Thanks, Adam