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

« back to all changes in this revision

Viewing changes to src/PJ_aea.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:
1
1
/******************************************************************************
2
 
 * $Id: PJ_aea.c 1504 2009-01-06 02:11:57Z warmerdam $
 
2
 * $Id: PJ_aea.c 1856 2010-06-11 03:26:04Z warmerdam $
3
3
 *
4
4
 * Project:  PROJ.4
5
5
 * Purpose:  Implementation of the aea (Albers Equal Area) projection.
43
43
#define PJ_LIB__
44
44
#include <projects.h>
45
45
 
46
 
PJ_CVSID("$Id: PJ_aea.c 1504 2009-01-06 02:11:57Z warmerdam $");
 
46
PJ_CVSID("$Id: PJ_aea.c 1856 2010-06-11 03:26:04Z warmerdam $");
47
47
 
48
48
# define EPS10  1.e-10
49
49
# define TOL7   1.e-7
153
153
        return P;
154
154
}
155
155
ENTRY1(aea,en)
156
 
        P->phi1 = pj_param(P->params, "rlat_1").f;
157
 
        P->phi2 = pj_param(P->params, "rlat_2").f;
 
156
        P->phi1 = pj_param(P->ctx, P->params, "rlat_1").f;
 
157
        P->phi2 = pj_param(P->ctx, P->params, "rlat_2").f;
158
158
ENDENTRY(setup(P))
159
159
ENTRY1(leac,en)
160
 
        P->phi2 = pj_param(P->params, "rlat_1").f;
161
 
        P->phi1 = pj_param(P->params, "bsouth").i ? - HALFPI: HALFPI;
 
160
        P->phi2 = pj_param(P->ctx, P->params, "rlat_1").f;
 
161
        P->phi1 = pj_param(P->ctx, P->params, "bsouth").i ? - HALFPI: HALFPI;
162
162
ENDENTRY(setup(P))