Go to the documentation of this file.
30 static double lon_center;
31 static double lat_center;
34 static double sin_p15;
35 static double cos_p15;
36 static double false_easting;
37 static double false_northing;
55 lon_center = center_long;
56 lat_center = center_lat;
57 false_easting = false_east;
58 false_northing = false_north;
59 sincos(center_lat, &sin_p15, &cos_p15);
95 rh = sqrt(
x *
x +
y *
y);
99 if (
r > sqrt(con/com))
104 sinz = (
p - sqrt(1.0 - (
r *
r * com) / con)) / (con /
r +
r/con);
113 *
lat =
asinz(cosz * sin_p15 + (
y * sinz * cos_p15)/rh);
117 if (lat_center >= 0.0)
128 con = cosz - sin_p15 * sin(*
lat);
131 *
lon =
adjust_lon(lon_center + atan2((
x * sinz * cos_p15), (con * rh)));
void gctp_print_title(const char *proj_name)
void gctp_print_cenlon(double A)
#define GCTP_PRINT_ERROR(format,...)
long gvnspinvint(double r, double h, double center_long, double center_lat, double false_east, double false_north)
double adjust_lon(double x)
void gctp_print_offsetp(double A, double B)
void gctp_print_genrpt(double A, const char *S)
long gvnspinv(double x, double y, double *lon, double *lat)
void gctp_print_radius(double radius)
void gctp_print_cenlat(double A)