Go to the documentation of this file.
24 static double r_major;
25 static double lon_center;
26 static double lat_origin;
27 static double false_northing;
28 static double false_easting;
29 static double sin_p10;
30 static double cos_p10;
46 lon_center = center_lon;
47 lat_origin = center_lat;
48 false_northing = false_north;
49 false_easting = false_east;
51 sincos(center_lat,&sin_p10,&cos_p10);
83 rh = sqrt(
x *
x +
y *
y);
84 z = 2.0 * atan(rh / (2.0 * r_major));
94 *
lat = asin(cosz * sin_p10 + (
y * sinz * cos_p10) / rh);
98 if (lat_origin >= 0.0)
111 con = cosz - sin_p10 * sin(*
lat);
115 *
lon =
adjust_lon(lon_center + atan2((
x * sinz * cos_p10), (con * rh)));
void gctp_print_origin(double A)
void gctp_print_title(const char *proj_name)
double adjust_lon(double x)
void gctp_print_offsetp(double A, double B)
void gctp_print_cenlonmer(double A)
long sterinvint(double r_maj, double center_lon, double center_lat, double false_east, double false_north)
void gctp_print_radius(double radius)
long sterinv(double x, double y, double *lon, double *lat)