|
@@ -90,6 +90,7 @@ void create_map(const struct input *inputs, int num_inputs, const char *output,
|
|
|
struct History history;
|
|
|
struct Categories cats;
|
|
|
struct Colors colors;
|
|
|
+ char buf[1024];
|
|
|
|
|
|
Rast_put_cellhd(output, cellhd);
|
|
|
|
|
@@ -118,8 +119,11 @@ void create_map(const struct input *inputs, int num_inputs, const char *output,
|
|
|
Rast_write_rstats(output, ostats);
|
|
|
|
|
|
G_verbose_message(_("Creating support files for %s"), output);
|
|
|
- Rast_short_history(output, "raster", &history);
|
|
|
+ Rast_short_history(output, "virtual", &history);
|
|
|
Rast_command_history(&history);
|
|
|
+ Rast_format_history(&history, HIST_KEYWRD, _("virtual raster generated by %s"), G_program_name());
|
|
|
+ sprintf(buf, "%d raster maps", num_inputs);
|
|
|
+ Rast_set_history(&history, HIST_DATSRC_1, buf);
|
|
|
Rast_write_history(output, &history);
|
|
|
|
|
|
if (Rast_read_colors(inputs[0].name, inputs[0].mapset, &colors) == 1)
|