Go to the documentation of this file.
30 static double lon_center;
31 static double lat_center;
33 static double sin_lat_o;
34 static double cos_lat_o;
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_lat_o, &cos_lat_o);
89 Rh = sqrt(
x *
x +
y *
y);
90 temp = Rh / (2.0 *
R);
96 z = 2.0 *
asinz(temp);
101 *
lat =
asinz(sin_lat_o * cos_z + cos_lat_o * sin_z *
y / Rh);
105 temp = cos_z - sin_lat_o * sin(*
lat);
106 if(temp!=0.0)*
lon=
adjust_lon(lon_center+atan2(
x*sin_z*cos_lat_o,temp*Rh));
108 else if (lat_center < 0.0) *
lon =
adjust_lon(lon_center - atan2(-
x,
y));
111 else *
lat = lat_center;
void gctp_print_title(const char *proj_name)
void gctp_print_cenlon(double A)
#define GCTP_PRINT_ERROR(format,...)
double adjust_lon(double x)
void gctp_print_offsetp(double A, double B)
long lamazinv(double x, double y, double *lon, double *lat)
void gctp_print_radius(double radius)
long lamazinvint(double r, double center_long, double center_lat, double false_east, double false_north)
void gctp_print_cenlat(double A)