Open Skhmt opened 7 months ago
Just confirming this is still an issue. I actually ran into this while writing unit tests in my own application and cross verifying using a different online coordinate conversion tool.
Issue is in two places in the code: https://github.com/codice/usng.js/blob/64420822d95ec8fa40c83718dc5d75fcbe0c0137/src/usng.ts#L355 https://github.com/codice/usng.js/blob/64420822d95ec8fa40c83718dc5d75fcbe0c0137/src/usng.ts#L572
Results below for longitudes -179 through 179 in the southern pole using the LLtoUTMUPS(lat, lon)
method.
At the south pole, any longitude > -90 and < 90 (i.e. towards the prime meridian) gives the zone letter B, while longitudes > 90 but < -90 (i.e. towards the anti-meridian) gives the zone letter A. In other words, the zone letter at the south pole is being determined by the northing. This is incorrect.
DMA TM 8358,1 B-3.2:
See also the wikipedia example.
I had an open PR but since the repo hasn't been touched in years, I just closed it. This is more to let anyone else know to not trust the grid zone letter for UPS at the south pole.