15 #include <grass/gis.h>
17 static 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);
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')