Go to the documentation of this file.
27 static long outdat[
MAXPROJ + 1];
42 const long *inspheroid,
46 const double *outparm,
48 const long *outspheroid,
97 if ((inzn[*insys] != *inzone) || (indat[*insys] != *inspheroid) ||
98 (inpj[*insys] != *insys))
103 for (
i = 0;
i < 13;
i++)
104 if (pdin[*insys][
i] != inparm[
i])
112 if ((outzn[*outsys] != *outzone) || (outdat[*outsys] != *outspheroid) ||
113 (outpj[*outsys] != *outsys))
118 for (
i = 0;
i < 13;
i++)
119 if (pdout[*outsys][
i] != outparm[
i])
158 x = incoor[0] * factor;
159 y = incoor[1] * factor;
165 inpj[*insys] = *insys;
166 indat[*insys] = *inspheroid;
167 inzn[*insys] = *inzone;
169 pdin[*insys][
i] = inparm[
i];
173 inv_init(*insys,*inzone,inparm,*inspheroid,iflg,inv_trans);
191 if ((*iflg = inv_trans[*insys](
x,
y, &
lon, &
lat)) != 0)
207 outpj[*outsys] = *outsys;
208 outdat[*outsys] = *outspheroid;
209 outzn[*outsys] = *outzone;
211 pdout[*outsys][
i] = outparm[
i];
214 for_init(*outsys,*outzone,outparm,*outspheroid,iflg,for_trans);
229 if ((*iflg = for_trans[*outsys](
lon,
lat, &outcoor[0], &outcoor[1])) != 0)
243 outcoor[0] *= factor;
244 outcoor[1] *= factor;
#define GCTP_PRINT_ERROR(format,...)
void inv_init(long insys, long inzone, const double *inparm, long inspheroid, long *iflg, long(*inv_trans[])(double, double, double *, double *))
long untfz(long inunit, long outunit, double *factor)
integer, parameter double
void gctp(const double *incoor, const long *insys, const long *inzone, const double *inparm, long *inunit, const long *inspheroid, double *outcoor, const long *outsys, const long *outzone, const double *outparm, long *outunit, const long *outspheroid, long *iflg)
void for_init(long outsys, long outzone, const double *outparm, long outspheroid, long *iflg, long(*for_trans[])(double, double, double *, double *))