Opened 12 years ago
Closed 12 years ago
#85 closed defect (fixed)
Bug in MGRS.js
Reported by: | rshidler | Owned by: | madair |
---|---|---|---|
Priority: | major | Milestone: | 1.1.1 |
Component: | core | Version: | trunk |
Keywords: | Cc: |
Description
I believe there is a bug in the UTMtoLL() method of MGRS.js at line 394. The code is checking the zone letter for "S" to determine that the coordinate is in the Southern Hemisphere. The UTM coordinate system does not use the zone letter to indicate the hemisphere. Zone letter "S" is in the Northern Hemisphere. Zone letters C-M are in the Southern Hemisphere.
Modify the code from:
if (zoneLetter == 'S') {
to:
if (zoneLetter < "N") {
Change History (3)
comment:1 by , 12 years ago
Status: | new → assigned |
---|
comment:2 by , 12 years ago
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Thanks for the fix. committed this to trunk.
Can you provide a test case for this issue as in test/mgrs.js please?