This project is read-only.
1

Closed

MGRS to UTM/GEO has errors

description

T've found that when trying to convert MGRS to UTM/GEO there are errors when the MGRS strign represents a GEO coordinate with latitude higher than 55N/55S
 
Maybe the developer could take a look to correct that.
 
The library is GREAT ans IMPRESIVE!
 
I'm including a correction to extend the range to latitudes 72N/72S, but cannot reach higher
 
    If Coord_UTM_Zone_Letter >= "N" Then
        If (Coord_UTM_Zone_Letter = "Q") AndAlso (Aux2 < 10) Then Aux2 += 20
        If Coord_UTM_Zone_Letter >= "R" Then Aux2 += 20
        If (Coord_UTM_Zone_Letter = "S") AndAlso (Aux2 < 30) Then Aux2 += 20
        If Coord_UTM_Zone_Letter >= "T" Then Aux2 += 20
        If (Coord_UTM_Zone_Letter = "U") AndAlso (Aux2 < 50) Then Aux2 += 20
        If (Coord_UTM_Zone_Letter >= "V") Then Aux2 += 20
    Else
        If (Coord_UTM_Zone_Letter = "C") AndAlso (Aux2 < 10) Then Aux2 += 20
        If Coord_UTM_Zone_Letter >= "D" Then Aux2 += 20
        If (Coord_UTM_Zone_Letter = "F") AndAlso (Aux2 < 30) Then Aux2 += 20
        If Coord_UTM_Zone_Letter >= "G" Then Aux2 += 20
        If (Coord_UTM_Zone_Letter = "H") AndAlso (Aux2 < 50) Then Aux2 += 20
        If Coord_UTM_Zone_Letter >= "J" Then Aux2 += 20
        If (Coord_UTM_Zone_Letter = "K") AndAlso (Aux2 < 70) Then Aux2 += 20
        If Coord_UTM_Zone_Letter >= "L" Then Aux2 += 20
    End If
Closed Jun 6, 2010 at 4:00 PM by geoutility

comments