22 #include "gctp_prototypes.h" 56 int (*for_trans[
MAXPROJ+1])(double, double,
double *,
double *);
57 double deg2rad = acos(-1) / 180.0;
59 if (lat_dd == NULL || lon_dd == NULL || line == NULL || sample == NULL)
71 NULL, NULL, &iflg, for_trans);
75 for (i = 0; i < nelement; i++) {
81 iflg =
somfor(lon_dd[i]*deg2rad, lat_dd[i]*deg2rad, &som_x, &som_y);
89 if (tline < -0.5 || tline > mapinfo.
nline - 0.5) {
95 if (tsample < -0.5 || tsample > mapinfo.
nsample - 0.5) {
MISR Projection Parameters.
#define MTK_ERR_CODE_JUMP(code)
MTKt_status MtkLatLonToLSAry(MTKt_MapInfo mapinfo, int nelement, const double *lat_dd, const double *lon_dd, float *line, float *sample)
Convert array of decimal degrees latitude and longitude to array of line, sample. ...
MTKt_status MtkPathToProjParam(int path, int resolution_meters, MTKt_MisrProjParam *pp)
Get projection parameters.
int for_init(int outsys, int outzone, const double *outparm, int outdatum, char *fn27, char *fn83, int *iflg, int(*for_trans[])(double, double, double *, double *))
#define MTK_ERR_COND_JUMP(code)
int somfor(double lon, double lat, double *y, double *x)