#define NUM_PROJ 18 struct projection { char name[80]; char id; }; extern struct projection Proj[NUM_PROJ]; struct control { char proj; int pnum; double lon_0,lon_1,lon_2,lon_p; double lat_0,lat_1,lat_2,lat_p; double pixsize,scale; double x0,y0; double c,C,F,H,k,k0,k1,k2,n,P,rho_0; double omega; /* elevation (tilt of surface plane) */ double gamma; /* azimuth (east of north) */ double horiz; /* radius of horizon arc */ }; int auto_set_constants(struct control *cc); int xy2ll(double x,double y,double *lat,double *lon,struct control cc); int ll2xy(double lat,double lon,double *x,double *y,struct control cc); int get_constants(struct control *cc,char string[][80],int *nums); int choose_projection(struct control *cc,char *string); int dms(double ddeg,double *deg,double *min,double *sec);