mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 19:52:09 +01:00
Fixed broken xy2ll computation on southern hemispheres
This commit is contained in:
parent
4e3b6c2eb2
commit
2e2dad8d04
@ -75,7 +75,7 @@ Coordinates LambertConic::xy2ll(const QPointF &p) const
|
|||||||
double dx = p.x() - _fe;
|
double dx = p.x() - _fe;
|
||||||
double dy = p.y() - _fn - _R0;
|
double dy = p.y() - _fn - _R0;
|
||||||
double R = sqrt(dx * dx + dy * dy);
|
double R = sqrt(dx * dx + dy * dy);
|
||||||
double q = _q0 - log(R / _R0) / _n;
|
double q = _q0 - log(fabs(R / _R0)) / _n;
|
||||||
|
|
||||||
return Coordinates(rad2deg(deg2rad(_cm) + dl / _n), rad2deg(iq(_e, q)));
|
return Coordinates(rad2deg(deg2rad(_cm) + dl / _n), rad2deg(iq(_e, q)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user