Go to the documentation of this file.
24 static double lon_center;
30 static double sin_lat_o;
31 static double cos_lat_o;
32 static double false_easting;
33 static double false_northing;
50 lon_center = center_long;
55 false_easting = false_east;
56 false_northing = false_north;
72 sincos(lat_o, &sin_lat_o, &cos_lat_o);
101 delta_lon =
lon - lon_center;
103 sincos(delta_lon, &sin_delta_lon, &cos_delta_lon);
104 z = acos(sin_lat_o * sin_lat + cos_lat_o * cos_lat * cos_delta_lon);
105 Az = atan2(cos_lat * sin_delta_lon , cos_lat_o * sin_lat - sin_lat_o *
106 cos_lat * cos_delta_lon) + theta;
107 sincos(Az, &sin_Az, &cos_Az);
108 temp = 2.0 * sin(z / 2.0);
109 x_prime = temp * sin_Az;
110 y_prime = temp * cos_Az;
111 M = asin(x_prime / 2.0);
112 temp = y_prime / 2.0 * cos(
M) / cos(2.0 *
M / m);
114 *
y = n *
R * sin(2.0 *
N / n) + false_easting;
115 *
x = m *
R * sin(2.0 *
M / m) * cos(
N) / cos(2.0 *
N / n) + false_northing;
void gctp_print_title(const char *proj_name)
void gctp_print_cenlon(double A)
long obleqforint(double r, double center_long, double center_lat, double shape_m, double shape_n, double angle, double false_east, double false_north)
long obleqfor(double lon, double lat, double *x, double *y)
void gctp_print_offsetp(double A, double B)
void gctp_print_genrpt(double A, const char *S)
void gctp_print_radius(double radius)
void gctp_print_cenlat(double A)