Go to the documentation of this file.
30 static double r_major;
31 static double r_minor;
32 static double lon_center;
33 static double lat_center;
34 static double false_easting;
35 static double false_northing;
36 static double acoef[7];
37 static double bcoef[7];
38 static double sin_p26;
39 static double cos_p26;
61 false_easting = false_east;
62 false_northing = false_north;
63 lon_center = -152.0 *
D2R;
64 lat_center = 64.0 *
D2R;
67 es = .006768657997291094;
83 esphi = e * sin(lat_center);
84 chi = 2.0 * atan(tan((
HALF_PI + lat_center)/2.0) *
85 pow(((1.0 - esphi)/(1.0 + esphi)),(e/2.0))) -
HALF_PI;
86 sincos(chi,&sin_p26,&cos_p26);
111 double sinlon,coslon;
112 double sinphi,cosphi;
135 sincos(dlon,&sinlon,&coslon);
136 esphi = e * sin(
lat);
138 pow(((1.0 - esphi) / (1.0 + esphi)),(e/2.0))) -
HALF_PI;
139 sincos(chi,&sinphi,&cosphi);
140 g = sin_p26 * sinphi + cos_p26 * cosphi * coslon;
142 xp =
s * cosphi * sinlon;
143 yp =
s * (cos_p26 * sinphi - sin_p26 * cosphi * coslon);
154 for (
j =2;
j <= n;
j++)
160 br = acoef[n -
j] -
s * ar;
161 bi = bcoef[n -
j] -
s * ai;
170 *
x = (xp * ar - yp * ai + br) * r_major + false_easting;
171 *
y = (yp * ar + xp * ai + bi) * r_major + false_northing;
long alconfor(double lon, double lat, double *x, double *y)
void gctp_print_title(const char *proj_name)
void gctp_print_cenlon(double A)
long alconforint(double r_maj, double r_min, double false_east, double false_north)
double adjust_lon(double x)
void gctp_print_offsetp(double A, double B)
void gctp_print_radius2(double radius1, double radius2)
void gctp_print_cenlat(double A)