Go to the documentation of this file.
34 static double lon_center;
36 static double false_easting;
37 static double false_northing;
39 static double xlr[21];
55 lon_center = center_long;
56 false_easting = false_east;
57 false_northing = false_north;
100 for (
i = 0;
i < 21;
i++)
123 p2 =
fabs(
lat / 5.0 / .01745329252);
124 ip1 = (int32_t) (p2 -
EPSLN);
129 *
x =
R * (xlr[ip1 + 2] + p2 * (xlr[ip1 + 3] - xlr[ip1 + 1]) / 2.0 +
130 p2 * p2 * (xlr[ip1 + 3] - 2.0 * xlr[ip1 + 2] + xlr[ip1 + 1]) / 2.0) *
131 dlon + false_easting;
134 *
y =
R * (pr[ip1 + 2] + p2 * (pr[ip1 + 3] - pr[ip1 + 1]) / 2.0 + p2 * p2 *
135 (pr[ip1 + 3] - 2.0 * pr[ip1 + 2] + pr[ip1 + 1]) / 2.0) *
PI / 2.0 +
138 *
y = -
R * (pr[ip1 + 2] + p2 * (pr[ip1 + 3] - pr[ip1 + 1]) / 2.0 + p2 * p2 *
139 (pr[ip1 + 3] - 2.0 * pr[ip1 + 2] + pr[ip1 + 1]) / 2.0) *
PI / 2.0 +
double adjust_lon(double x)
integer, parameter double
int robforint(double r, double center_long, double false_east, double false_north)
int robfor(double lon, double lat, double *x, double *y)