Skip to content

Commit

Permalink
Allow +alpha=0 and +gamma=0 when using omerc. Applied fix proposed in O…
Browse files Browse the repository at this point in the history
  • Loading branch information
kbevers committed Oct 18, 2016
1 parent 0f20b44 commit e3346bb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/PJ_omerc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e3346bb

Please sign in to comment.