Opened 12 years ago

Closed 11 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 madair, 12 years ago

Status: newassigned

comment:2 by madair, 12 years ago

Thanks for the fix. committed this to trunk.

Can you provide a test case for this issue as in test/mgrs.js please?

comment:3 by madair, 11 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.