Go to the documentation of this file.
30 static double lon_center;
31 static double lat_center;
33 static double sin_p13;
34 static double cos_p13;
35 static double false_easting;
36 static double false_northing;
52 lon_center = center_long;
53 lat_center = center_lat;
54 false_easting = false_east;
55 false_northing = false_north;
56 sincos(center_lat, &sin_p13, &cos_p13);
88 rh = sqrt(
x *
x +
y *
y);
98 *
lat =
asinz(cosz * sin_p13 + (
y * sinz * cos_p13) / rh);
102 if (lat_center >= 0.0)
113 con = cosz - sin_p13 * sin(*
lat);
116 *
lon =
adjust_lon(lon_center + atan2((
x * sinz * cos_p13), (con * rh)));
void gctp_print_title(const char *proj_name)
long gnominv(double x, double y, double *lon, double *lat)
void gctp_print_cenlon(double A)
double adjust_lon(double x)
long gnominvint(double r, double center_long, double center_lat, double false_east, double false_north)
void gctp_print_offsetp(double A, double B)
void gctp_print_radius(double radius)
void gctp_print_cenlat(double A)