aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-10-03 18:48:06 +0000
committerEven Rouault <even.rouault@spatialys.com>2019-10-03 18:49:26 +0000
commit29b17b5e381cefeee0dc41a6c3d166e8c7f30eaf (patch)
tree7bb688e3d57dd5a8928802ee8bb9894ec1724f7b /src
parent07bbf14615d4a5f4fad0d6dea84f8a067c0a6ab6 (diff)
downloadPROJ-29b17b5e381cefeee0dc41a6c3d166e8c7f30eaf.tar.gz
PROJ-29b17b5e381cefeee0dc41a6c3d166e8c7f30eaf.zip
aeqd: for spherical forward path, go to higher precision ellipsoidal case when the point coordinates are super close to the origin (fixes #1654)
Diffstat (limited to 'src')
-rw-r--r--src/projections/aeqd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/projections/aeqd.cpp b/src/projections/aeqd.cpp
index 04c3662e..eb38cbf3 100644
--- a/src/projections/aeqd.cpp
+++ b/src/projections/aeqd.cpp
@@ -151,7 +151,7 @@ oblcon:
return xy;
}
else
- xy.x = xy.y = 0.;
+ return aeqd_e_forward(lp, P);
else {
xy.y = acos(xy.y);
xy.y /= sin(xy.y);