Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something weird going on with how MGRS/USNG to latlon to UTM is being handled #15

Closed
bmulcahy opened this issue Apr 28, 2015 · 1 comment

Comments

@bmulcahy
Copy link

http://www.movable-type.co.uk/scripts/latlong-utm-mgrs.html

if one puts in 12S TC 52 86 the lat/long returned is 33.39823425°N, 114.22478232°W
if one puts in 12S TC 52000 86000 the lat/long returned 34.18551907°N, 113.69099623°W

These two lat/longs should be the same as they are the sw coordinate of the entered grid and adding 000 should not cause this coordinate to change since it is the same starting grid location, just a smaller box.

@chrisveness
Copy link
Owner

Thanks for this.

It was mistakenly parsing ‘12S TC 52 86’ as ‘12S TC 00052 00086’ instead of ‘12S TC 52000 86000’.

Should be good now (v1.0.2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants