Menu

[r4007]: / trunk / toolkits / basemap / src / PJ_urm5.c  Maximize  Restore  History

Download this file

32 lines (29 with data), 763 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef lint
static const char SCCSID[]="@(#)PJ_urm5.c 4.1 94/02/15 GIE REL";
#endif
#define PROJ_PARMS__ \
double m, rmn, q3, n;
#define PJ_LIB__
# include <projects.h>
PROJ_HEAD(urm5, "Urmaev V") "\n\tPCyl., Sph.\n\tn= q= alphi=";
FORWARD(s_forward); /* spheroid */
double t;
t = lp.phi = aasin(P->n * sin(lp.phi));
xy.x = P->m * lp.lam * cos(lp.phi);
t *= t;
xy.y = lp.phi * (1. + t * P->q3) * P->rmn;
return xy;
}
FREEUP; if (P) pj_dalloc(P); }
ENTRY0(urm5)
double alpha, t;
P->n = pj_param(P->params, "dn").f;
P->q3 = pj_param(P->params, "dq").f / 3.;
alpha = pj_param(P->params, "ralpha").f;
t = P->n * sin(alpha);
P->m = cos(alpha) / sqrt(1. - t * t);
P->rmn = 1. / (P->m * P->n);
P->es = 0.;
P->inv = 0;
P->fwd = s_forward;
ENDENTRY(P)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.