proj4js / mgrs

Utility for converting between WGS84 lat/lng and MGRS coordinates
MIT License
105 stars 45 forks source link

updated tests to work with new version of GEOTRANS #60

Closed DanielJDufour closed 3 years ago

DanielJDufour commented 4 years ago

NGA recently released a new version of GEOTRANS, version 3.8, which included a change to the MGRS calculation. The new formula now uses the center of the box (which is what this library uses). This Pull Request mostly updates the test files taken from GEOTRANS. Here's a screenshot from the relevant section on https://earth-info.nga.mil/GandG/update/index.php?action=home:

Screen Shot 2020-08-07 at 10 29 29 PM

I also updated the GEOTRANS consistency test, to check if the results from this library are within 0.0000015 degrees of the results given by GEOTRANS.

I also added 'geodesy' as a keyword in the package.json.

I'll leave this open here until 8/14 and will merge shortly thereafter barring any comments to the contrary.

I also updated the package-lock.json after running npm audit --fix.

Thank you and let me know if that are any questions.