diff options
| author | Howard Butler <howard@hobu.co> | 2014-09-13 20:19:37 +0000 |
|---|---|---|
| committer | Howard Butler <howard@hobu.co> | 2014-09-13 20:19:37 +0000 |
| commit | 2d0acd7d61374a167f532cd2851f46f63d5e09a4 (patch) | |
| tree | 1e59317a1dd24b2b9f2e128ef23b336c4c3535d2 /src | |
| parent | d2595989e3230bd649bcb26c5a802bf8915540f3 (diff) | |
| download | PROJ-2d0acd7d61374a167f532cd2851f46f63d5e09a4.tar.gz PROJ-2d0acd7d61374a167f532cd2851f46f63d5e09a4.zip | |
Apply patch in #244 along with test scenario
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2520 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src')
| -rw-r--r-- | src/PJ_aeqd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PJ_aeqd.c b/src/PJ_aeqd.c index fa7c3f63..d564455d 100644 --- a/src/PJ_aeqd.c +++ b/src/PJ_aeqd.c @@ -210,7 +210,7 @@ INVERSE(s_inverse); /* spherical */ xy.y = (cosc - P->sinph0 * sin(lp.phi)) * c_rh; xy.x *= sinc * P->cosph0; } - lp.lam = xy.y == 0. ? 0. : atan2(xy.x, xy.y); + lp.lam = atan2(xy.x, xy.y); } else if (P->mode == N_POLE) { lp.phi = HALFPI - c_rh; lp.lam = atan2(xy.x, -xy.y); |
