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

« back to all changes in this revision

Viewing changes to src/PJ_cea.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:
42
42
ENTRY1(cea, apa)
43
43
        double t;
44
44
 
45
 
        if (pj_param(P->params, "tlat_ts").i &&
46
 
                (P->k0 = cos(t = pj_param(P->params, "rlat_ts").f)) < 0.) E_ERROR(-24)
47
 
        else
48
 
                t = 0.;
 
45
        if (pj_param(P->ctx, P->params, "tlat_ts").i &&
 
46
            (P->k0 = cos(t = pj_param(P->ctx, P->params, "rlat_ts").f)) < 0.)
 
47
          E_ERROR(-24);
49
48
        if (P->es) {
50
49
                t = sin(t);
51
50
                P->k0 /= sqrt(1. - P->es * t * t);