Skip to content

Commit

Permalink
[issue-156] Fix #156 for regression of dealing with WGS84
Browse files Browse the repository at this point in the history
Issue #156 reported squashing of types in the Y direction. This was
due to a multiplication changing to a plus.
  • Loading branch information
gdey committed Nov 4, 2017
1 parent cce9c19 commit a501a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maths/webmercator/pseudo.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func PLatToY(lat float64) float64 {
radiv2p4 := maths.PiDiv4 + raddiv2
tan := math.Tan(radiv2p4)
logTan := math.Log(tan)
val := EarthRadius + logTan
val := EarthRadius * logTan
if math.IsNaN(val) {

log.Println("We have an issue with lat", lat,
Expand Down

0 comments on commit a501a23

Please sign in to comment.