aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2016-10-18 21:58:29 +0200
committerKristian Evers <kristianevers@gmail.com>2016-10-18 21:58:29 +0200
commite3346bb39c860883ed9a8ada0657139118e21ef0 (patch)
treeec4d5f4c254c4450a41b8f98450e31ceca90148e /src
parent0f20b44656030086c5f24cf2ee1a84dfc4ba364e (diff)
downloadPROJ-e3346bb39c860883ed9a8ada0657139118e21ef0.tar.gz
PROJ-e3346bb39c860883ed9a8ada0657139118e21ef0.zip
Allow +alpha=0 and +gamma=0 when using omerc. Applied fix proposed in #195.
Diffstat (limited to 'src')
-rw-r--r--src/PJ_omerc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/PJ_omerc.c b/src/PJ_omerc.c
index de4a2c39..f0a660bd 100644
--- a/src/PJ_omerc.c
+++ b/src/PJ_omerc.c
@@ -191,10 +191,6 @@ PJ *PROJECTION(omerc) {
gamma = alpha_c;
} else
alpha_c = asin(D*sin(gamma0 = gamma));
- if ((con = fabs(alpha_c)) <= TOL ||
- fabs(con - M_PI) <= TOL ||
- fabs(fabs(P->phi0) - M_HALFPI) <= TOL)
- E_ERROR(-32);
P->lam0 = lamc - asin(.5 * (F - 1. / F) *
tan(gamma0)) / Q->B;
} else {