~ubuntu-branches/ubuntu/wily/proj/wily

« back to all changes in this revision

Viewing changes to src/PJ_nsper.c

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine, Jerome Villeneuve Larouche, Francesco Paolo Lovergine
  • Date: 2013-11-25 15:11:25 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20131125151125-mvcw144wvgep1hev
Tags: 4.8.0-1
[ Jerome Villeneuve Larouche ]
* New upstream release
* Modified libproj-dev.install to remove nad_list.h and projects.h
* Modified proj-bin.install to remove nad2nad
* Modified proj-bin.manpages to remove nad2nad man
* Added symbols for libproj0

[ Francesco Paolo Lovergine ]
* Properly merged with current git master and sid version 4.7.0-2.
* Removed proj transitional package and obsolete conflicts/replaces against
  series 4.6 and older.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
FREEUP; if (P) pj_dalloc(P); }
116
116
        static PJ *
117
117
setup(PJ *P) {
118
 
        if ((P->height = pj_param(P->params, "dh").f) <= 0.) E_ERROR(-30);
 
118
        if ((P->height = pj_param(P->ctx, P->params, "dh").f) <= 0.) E_ERROR(-30);
119
119
        if (fabs(fabs(P->phi0) - HALFPI) < EPS10)
120
120
                P->mode = P->phi0 < 0. ? S_POLE : N_POLE;
121
121
        else if (fabs(P->phi0) < EPS10)
141
141
ENTRY0(tpers)
142
142
        double omega, gamma;
143
143
 
144
 
        omega = pj_param(P->params, "dtilt").f * DEG_TO_RAD;
145
 
        gamma = pj_param(P->params, "dazi").f * DEG_TO_RAD;
 
144
        omega = pj_param(P->ctx, P->params, "dtilt").f * DEG_TO_RAD;
 
145
        gamma = pj_param(P->ctx, P->params, "dazi").f * DEG_TO_RAD;
146
146
        P->tilt = 1;
147
147
        P->cg = cos(gamma); P->sg = sin(gamma);
148
148
        P->cw = cos(omega); P->sw = sin(omega);