17static int scan_double(
const char *,
double *);
40 if (projection == PROJECTION_LL) {
41 if (!scan_double(buf, northing))
47 return scan_double(buf, northing);
71 if (projection == PROJECTION_LL) {
72 if (!scan_double(buf, easting))
78 return scan_double(buf, easting);
102 if (projection == PROJECTION_LL) {
107 return (scan_double(buf, res) && *res > 0.0);
110static 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_lat_scan(const char *buf, double *lat)
int G_lon_scan(const char *buf, double *lon)
int G_llres_scan(const char *buf, double *res)
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.