Skip to content

Commit

Permalink
Fix inaccuracies due to incorrect brace placement
Browse files Browse the repository at this point in the history
Fixes #120
  • Loading branch information
bartvanandel committed Dec 15, 2024
1 parent 9c7cc8f commit 78ee2b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utm/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ def to_latlon(easting, northing, zone_number, zone_letter=None, northern=None, s
d5 = d4 * d
d6 = d5 * d

latitude = (p_rad - (p_tan / r) *
(d2 / 2 -
d4 / 24 * (5 + 3 * p_tan2 + 10 * c - 4 * c2 - 9 * E_P2)) +
latitude = p_rad - (p_tan / r) * (
d2 / 2 -
d4 / 24 * (5 + 3 * p_tan2 + 10 * c - 4 * c2 - 9 * E_P2) +
d6 / 720 * (61 + 90 * p_tan2 + 298 * c + 45 * p_tan4 - 252 * E_P2 - 3 * c2))

longitude = (d -
Expand Down

0 comments on commit 78ee2b9

Please sign in to comment.