18 #include <grass/gis.h>
21 static void format_double(
double,
char *,
int);
38 if (projection == PROJECTION_LL)
40 else if (projection == -1)
41 format_double(north, buf,
TRUE);
43 format_double(north, buf,
FALSE);
63 if (projection == PROJECTION_LL)
65 else if (projection == -1)
66 format_double(east, buf,
TRUE);
68 format_double(east, buf,
FALSE);
88 if (projection == PROJECTION_LL)
90 else if (projection == -1)
91 format_double(res, buf,
TRUE);
93 format_double(res, buf,
FALSE);
104 static void format_double(
double value,
char *
buf,
int full_prec)
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
int G_trim_decimal(char *buf)
Removes trailing zeros from decimal number.
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]