1
1
#include <grass/gis.h>
2
#include <grass/raster.h>
4
void fancy(char *mapset, struct Cell_head *window, struct Categories *cats,
5
void fancy(struct Cell_head *window, struct Categories *cats, FILE * fp)
7
char xname[GNAME_MAX], xmapset[GMAPSET_MAX];
9
G_unqualified_name(map_name, G_mapset(), xname, xmapset);
7
11
fprintf(fp, ".C %s\n", "green");
8
12
fprintf(fp, ".S %f\n", size + 1.0);
9
13
fprintf(fp, "LOCATION: %s\n", G_location());
10
14
fprintf(fp, ".C %s\n", color);
11
15
fprintf(fp, ".S %f\n", size);
12
fprintf(fp, "%s in %s\n", map_name, mapset);
16
fprintf(fp, "%s in %s\n", xname, xmapset);
13
17
fprintf(fp, "%s\n", cats->title);
14
18
fprintf(fp, "North: %10.2f South: %10.2f\n",
15
19
window->north, window->south);