[GRASS-dev] r.li.*: write cmd history?

Hamish hamish_nospam at yahoo.com
Sun Mar 11 19:18:01 EDT 2007


> Markus Neteler wrote:
> > it would be great to add support for the command line
> > history to the r.li.* modules. Essentially these 4 lines
> > have to be added:
> > 
> > struct History history;
> > ...
> > 
> > G_short_history(out, "raster", &history);
> > G_command_history(&history);
> > G_write_history(out, &history);
> > 
> > 
> > I tried to modify
> > r.li.daemon/worker.c
> > accordingly but it doesn't help. Where should it be added
> > instead?

Glynn:
> AFAICT, in r.li.daemon/daemon.c; that's the only file which creates a
> new map (G_open_cell_new()). worker.c only opens existing maps.


note that you have to close the raster map before calling G_write_history()



Hamish




More information about the grass-dev mailing list