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

Returns array of undefined on mgrs inverse for for 36NYF and 36NXF #75

Open
rohitshetty opened this issue Apr 14, 2022 · 0 comments
Open

Comments

@rohitshetty
Copy link

When we call inverse on these two MGRS id - 36NYF and 36NXF we get a bbox filled with undefined rather than accurate value.
Example:
Below it works for 36MXE but fails for 36NYF and 36NXF

> mgrs_inverse = require("mgrs").inverse; 
[Function: inverse]
> mgrs_inverse('36MXE') // Works
[
  33.89874893707548,
  -0.9046185787600894,
  33.89874893707548,
  -0.9046185787600894
]
> mgrs_inverse('36NXF')
[ undefined, undefined, undefined, undefined ]
> mgrs_inverse('36NYF')
[ undefined, undefined, undefined, undefined ]

Please let me know if there is a way we can fix this or where this may be happening.
Currently using version 1.0.0

Thanks!

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

1 participant