2
static const char SCCSID[]="@(#)PJ_aea.c 4.2 94/03/18 GIE REL";
1
/******************************************************************************
2
* $Id: PJ_aea.c,v 1.4 2003/08/18 15:21:23 warmerda Exp $
5
* Purpose: Implementation of the aea (Albers Equal Area) projection.
6
* Author: Gerald Evenden
8
******************************************************************************
9
* Copyright (c) 1995, Gerald Evenden
11
* Permission is hereby granted, free of charge, to any person obtaining a
12
* copy of this software and associated documentation files (the "Software"),
13
* to deal in the Software without restriction, including without limitation
14
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
15
* and/or sell copies of the Software, and to permit persons to whom the
16
* Software is furnished to do so, subject to the following conditions:
18
* The above copyright notice and this permission notice shall be included
19
* in all copies or substantial portions of the Software.
21
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27
* DEALINGS IN THE SOFTWARE.
28
******************************************************************************
31
* Revision 1.4 2003/08/18 15:21:23 warmerda
32
* fixed initialization of en variable
34
* Revision 1.3 2002/12/14 19:27:06 warmerda
6
39
#define PROJ_PARMS__ \
19
# include <projects.h>
55
PJ_CVSID("$Id: PJ_aea.c,v 1.4 2003/08/18 15:21:23 warmerda Exp $");
20
60
PROJ_HEAD(aea, "Albers Equal Area")
21
61
"\n\tConic Sph&Ell\n\tlat_1= lat_2=";
22
62
PROJ_HEAD(leac, "Lambert Equal Area Conic")
121
161
P->inv = e_inverse; P->fwd = e_forward;
125
165
P->phi1 = pj_param(P->params, "rlat_1").f;
126
166
P->phi2 = pj_param(P->params, "rlat_2").f;
127
167
ENDENTRY(setup(P))
129
169
P->phi2 = pj_param(P->params, "rlat_1").f;
130
170
P->phi1 = pj_param(P->params, "bsouth").i ? - HALFPI: HALFPI;
131
171
ENDENTRY(setup(P))