aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_lsat.c
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>2010-06-11 03:26:04 +0000
committerFrank Warmerdam <warmerdam@pobox.com>2010-06-11 03:26:04 +0000
commitcf5c8cd32ebf39f7ff24c426ac00e75a7ae34da8 (patch)
treec7e18dad05709f747a2aaccb21da844ae6b43f24 /src/PJ_lsat.c
parent02b4b8db7f5d3ce59baca4a38b8059538ccf3217 (diff)
downloadPROJ-cf5c8cd32ebf39f7ff24c426ac00e75a7ae34da8.tar.gz
PROJ-cf5c8cd32ebf39f7ff24c426ac00e75a7ae34da8.zip
roll projCtx through various other low level functions
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1856 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src/PJ_lsat.c')
-rw-r--r--src/PJ_lsat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PJ_lsat.c b/src/PJ_lsat.c
index e8edb542..d11a5c14 100644
--- a/src/PJ_lsat.c
+++ b/src/PJ_lsat.c
@@ -66,7 +66,7 @@ FORWARD(e_forward); /* ellipsoid */
}
if (l) {
sp = sin(lp.phi);
- phidp = aasin((P->one_es * P->ca * sp - P->sa * cos(lp.phi) *
+ phidp = aasin(P->ctx,(P->one_es * P->ca * sp - P->sa * cos(lp.phi) *
sin(lamt)) / sqrt(1. - P->es * sp * sp));
tanph = log(tan(FORTPI + .5 * phidp));
sd = sin(lamdp);
@@ -116,7 +116,7 @@ INVERSE(e_inverse); /* ellipsoid */
lamt -= HALFPI * (1. - scl) * sl;
lp.lam = lamt - P->p22 * lamdp;
if (fabs(P->sa) < TOL)
- lp.phi = aasin(spp / sqrt(P->one_es * P->one_es + P->es * sppsq));
+ lp.phi = aasin(P->ctx,spp / sqrt(P->one_es * P->one_es + P->es * sppsq));
else
lp.phi = atan((tan(lamdp) * cos(lamt) - P->ca * sin(lamt)) /
(P->one_es * P->sa));
@@ -127,9 +127,9 @@ ENTRY0(lsat)
int land, path;
double lam, alf, esc, ess;
- land = pj_param(P->params, "ilsat").i;
+ land = pj_param(P->ctx, P->params, "ilsat").i;
if (land <= 0 || land > 5) E_ERROR(-28);
- path = pj_param(P->params, "ipath").i;
+ path = pj_param(P->ctx, P->params, "ipath").i;
if (path <= 0 || path > (land <= 3 ? 251 : 233)) E_ERROR(-29);
if (land <= 3) {
P->lam0 = DEG_TO_RAD * 128.87 - TWOPI / 251. * path;