Skip to content

Commit

Permalink
Fixed issue #194 (Bug with the stereographic projection at equator) t…
Browse files Browse the repository at this point in the history
…hat multiplied equatorial coordinates by 2
  • Loading branch information
kbevers committed Oct 18, 2016
1 parent 26607f1 commit 93024d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/PJ_stere.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static XY e_forward (LP lp, PJ *P) { /* Ellipsoidal, forward */
goto xmul; /* but why not just xy.x = A * cosX; break; ? */

case EQUIT:
A = 2. * Q->akm1 / (1. + cosX * coslam);
A = Q->akm1 / (1. + cosX * coslam);
xy.y = A * sinX;
xmul:
xy.x = A * cosX;
Expand Down Expand Up @@ -320,10 +320,10 @@ int pj_stere_selftest (void) {
};

XY e_fwd_expect[] = {
{ 445289.70910023432, 221221.76694834774},
{ 445289.70910023432, -221221.76694835056},
{-445289.70910023432, 221221.76694834774},
{-445289.70910023432, -221221.76694835056},
{ 222644.8545501172, 110610.8834741739},
{ 222644.8545501172, -110610.8834741739},
{-222644.8545501172, 110610.8834741739},
{-222644.8545501172, -110610.8834741739},
};

XY s_fwd_expect[] = {
Expand Down

0 comments on commit 93024d9

Please sign in to comment.