Sunday, 4 October 2015

coordinate system - Javascript library for converting MGRS to Lat/Lng


Is there a JS library that converts MGRS to LL? I have found one that converts Lat/Lng to MGRS, but nothing that converts MGRS to Lat/Lng.


Someone asked this question in the past, but the answer was USNG to LL but I HAVE to do MGRS to LL.



Answer



What about usng.js from http://forums.arcgis.com/threads/40941-MGRS-to-lat-long-or-UTM-Conversion?


In the library's MGRS to LL function it states



"create a Military Grid Reference System string. this is the same as a USNG string, but with no spaces. space delimiters are optional but allowed in USNG, but are not allowed in MGRS notation. but the numbers are the same."



By that logic, presumably USNG to LL is MGRS to LL.



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...