Skip to content

Commit

Permalink
Incorrect formula used, changed to comply with Snyder and other sourc…
Browse files Browse the repository at this point in the history
…es. Fixes #331
  • Loading branch information
kbevers committed Oct 19, 2016
1 parent 8525610 commit 2cac138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PJ_omerc.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ PJ *PROJECTION(omerc) {
if (no_off)
Q->u_0 = 0;
else {
Q->u_0 = fabs(Q->ArB * atan2(sqrt(D * D - 1.), cos(alpha_c)));
Q->u_0 = fabs(Q->ArB * atan(sqrt(D * D - 1.) / cos(alpha_c)));
if (P->phi0 < 0.)
Q->u_0 = - Q->u_0;
}
Expand Down

0 comments on commit 2cac138

Please sign in to comment.