ngageoint / mgrs-java

Military Grid Reference System Java Library
https://ngageoint.github.io/mgrs-java/
MIT License
18 stars 4 forks source link

MGRS and the South Pole #2

Open dtvasquez opened 1 year ago

dtvasquez commented 1 year ago

Please fill out as much known and relevant information as possible.

Version Information:

Expected Results:

Create an MGRS object near the Poles. Example: AQE 33377 29769
Using the GEOTrans utility/source code, this value can be parsed as valid MGRS

Observed Results:

Output:

Steps to Reproduce:

  1. Try to parse an MGRS string that represents a location at the poles
  2. ParseException

Relevant Code:

MGRS mgrs = MGRS.parse("AQE3337729769");

Test Files:

Additional Information:

MGRS uses UPS project to cover the poles, where A|B cover the South Pole, and Y|Z cover the North Pole. I didn't see references to ups in the source for this project. Are there plans to add support for the poles?

image image

mkrupczak3 commented 10 months ago

Possibly related to an issue I encountered with mgrs-android which uses this repo:

https://github.com/ngageoint/mgrs-android/issues/3

It would appear that the polar regions are not being handled correctly by this library, which is unfortunate

newmanw commented 10 months ago

These libraries don't currently support polar regions. PRs are welcome if you would like to take a stab at it.

bradh commented 5 months ago

If this is not a bug (i.e. it is expected behaviour), this behaviour should be documented.