Statistics
| Revision:

svn-gvsig-desktop / branches / v10 / libraries / libjni-proj4 / src / PJ_denoy.c @ 40603

History | View | Annotate | Download (635 Bytes)

1
#ifndef lint
2
static const char SCCSID[]="@(#)PJ_denoy.c        4.1 94/02/15     GIE     REL";
3
#endif
4
#define PJ_LIB__
5
#include        <projects.h>
6
PROJ_HEAD(denoy, "Denoyer Semi-Elliptical") "\n\tPCyl., no inv., Sph.";
7
#define C0        0.95
8
#define C1        -.08333333333333333333
9
#define C3        .00166666666666666666
10
#define D1        0.9
11
#define D5        0.03
12
FORWARD(s_forward); /* spheroid */
13
        xy.y = lp.phi;
14
        xy.x = lp.lam;
15
        lp.lam = fabs(lp.lam);
16
        xy.x *= cos((C0 + lp.lam * (C1 + lp.lam * lp.lam * C3)) *
17
                (lp.phi * (D1 + D5 * lp.phi * lp.phi * lp.phi * lp.phi)));
18
        return (xy);
19
}
20
FREEUP; if (P) pj_dalloc(P); }
21
ENTRY0(denoy) P->es = 0.; P->fwd = s_forward; ENDENTRY(P)