17 static int scan_double(
const char *,
double *);
41 if (!scan_double(buf, northing))
47 return scan_double(buf, northing);
72 if (!scan_double(buf, easting))
78 return scan_double(buf, easting);
107 return (scan_double(buf, res) && *res > 0.0);
110 static int scan_double(
const char *buf,
double *value)
120 if (sscanf(buf,
"%lf%1s", value, junk) == 1 && *junk == 0) {
125 if (*buf >=
'A' && *buf <=
'Z')
127 if (*buf >=
'a' && *buf <=
'z')
int G_lon_scan(const char *, double *)
int G_lat_scan(const char *, double *)
int G_llres_scan(const char *, double *)
#define PROJECTION_LL
Projection code - Latitude-Longitude.
int G_scan_resolution(const char *buf, double *res, int projection)
ASCII resolution to double.
int G_scan_northing(const char *buf, double *northing, int projection)
ASCII northing to double.
int G_scan_easting(const char *buf, double *easting, int projection)
ASCII easting to double.