mgrs icon indicating copy to clipboard operation
mgrs copied to clipboard

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

Open rohitshetty opened this issue 4 years ago • 0 comments

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!

rohitshetty avatar Apr 14 '22 13:04 rohitshetty