Skip to content

Commit

Permalink
Fix Inaccurate and asymmetric (North/South) transformation utm to lat…
Browse files Browse the repository at this point in the history
… lon; #6
  • Loading branch information
im7mortal committed Nov 3, 2024
1 parent 44fa868 commit 8394391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utm.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ func ToLatLon(

latitude = pRad - (pTan/rad_)*
(d2/2-
d4/24*(5+3*pTan2+10*c-4*c2-9*eP2)) +
d6/720*(61+90*pTan2+298*c+45*pTan4-252*eP2-3*c2)
d4/24*(5+3*pTan2+10*c-4*c2-9*eP2)+
d6/720*(61+90*pTan2+298*c+45*pTan4-252*eP2-3*c2))

longitude = (d -
d3/6*(1+2*pTan2+c) +
Expand Down

0 comments on commit 8394391

Please sign in to comment.