17 static void format_double(
double,
char *,
int);
33 else if (projection == -1)
34 format_double(north, buf,
TRUE);
36 format_double(north, buf,
FALSE);
53 else if (projection == -1)
54 format_double(east, buf,
TRUE);
56 format_double(east, buf,
FALSE);
73 else if (projection == -1)
74 format_double(res, buf,
TRUE);
76 format_double(res, buf,
FALSE);
85 static void format_double(
double value,
char *buf,
int full_prec)
88 sprintf(buf,
"%.15g", value);
90 sprintf(buf,
"%.8f", value);
void G_lat_format(double, char *)
void G_lon_format(double, char *)
void G_llres_format(double, char *)
void G_trim_decimal(char *)
Removes trailing zeros from decimal number.
#define PROJECTION_LL
Projection code - Latitude-Longitude.