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);
74 double sinphi, cosphi;
85 g = sin_p10 * sinphi + cos_p10 * cosphi * coslon;
93 ksp = 2.0 / (1.0 +
g);
94 *
x = false_easting + r_major * ksp * cosphi * sin(dlon);
95 *
y = false_northing + r_major * ksp * (cos_p10 * sinphi - sin_p10 *
void gctp_print_origin(double A)
void gctp_print_title(const char *proj_name)
#define GCTP_PRINT_ERROR(format,...)
double adjust_lon(double x)
long sterforint(double r_maj, double center_lon, double center_lat, double false_east, double false_north)
long sterfor(double lon, double lat, double *x, double *y)
void gctp_print_offsetp(double A, double B)
void gctp_print_cenlonmer(double A)
void gctp_print_radius(double radius)