Skip to content

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

@rohitshetty

Description

@rohitshetty

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions