proj4js / mgrs

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

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

Open rohitshetty opened 2 years ago

rohitshetty commented 2 years ago

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!