<div dir="ltr">Hi,<br><br>as general improvement I would like to see that each map generating GRASS command prints the name(s) of the generated maps. This is especially relevant when multiple maps can generated (e.g. r.watershed).<br>
<br>I have today added such support in v.vol.rst but wondered if a more generic possibility exists at library level.<br>For raster maps, this ugly hack works:<br><br><font face="courier new, monospace">Index: lib/raster/history.c<br>
===================================================================<br>--- lib/raster/history.c (revision 60664)<br>+++ lib/raster/history.c (working copy)<br>@@ -162,6 +162,7 @@<br> G_fatal_error(_("Unable to write history information for <%s>"), name);<br>
<br> Rast__write_history(hist, fp);<br>+ G_done_msg(_("Raster map <%s> created"), name);<br> }</font><br><br>Interestingly, it gets printed twice then:<div><br><font face="courier new, monospace"># using GRASS 7.1.svn (nc_spm_08_grass7):~ ></font></div>
<div><font face="courier new, monospace">r.mapcalc "result = if(landclass96 == 5, 1, null() )"<br> 100%<br>r.mapcalc complete. Raster map <result> created<br>r.mapcalc complete. Raster map <result> created</font><br>
</div><div><br></div><div>Likewise another example:</div><div><br></div><div><div><font face="courier new, monospace"># using GRASS 7.1.svn (nc_spm_08_grass7):~ ></font></div><div><font face="courier new, monospace"> g.region rast=elev_lid792_1m</font></div>
<div><font face="courier new, monospace">r.watershed elevation=elev_lid792_1m accumulation=elev_lid792_1m.acc2 \</font></div><div><font face="courier new, monospace"> basin=elev_lid792_1m.basin2 stream=elev_lid792_1m.stream2 \</font></div>
<div><font face="courier new, monospace"> tci=elev_lid792_1m.tci2 threshold=1000</font></div><div><font face="courier new, monospace">SECTION 1a (of 5): Initiating Memory.</font></div><div><font face="courier new, monospace">SECTION 1b (of 5): Determining Offmap Flow.</font></div>
<div><font face="courier new, monospace"> 100%</font></div><div><font face="courier new, monospace">...</font></div><div><font face="courier new, monospace">SECTION 5: Closing Maps.</font></div><div><font face="courier new, monospace"> 100%</font></div>
<div><font face="courier new, monospace">ram complete. Raster map <elev_lid792_1m.stream2> created</font></div><div><font face="courier new, monospace">ram complete. Raster map <elev_lid792_1m.basin2> created</font></div>
<div><font face="courier new, monospace">ram complete. Raster map <elev_lid792_1m.acc2> created</font></div><div><font face="courier new, monospace">ram complete. Raster map <elev_lid792_1m.tci2> created</font></div>
<div><font face="courier new, monospace">r.watershed complete. Raster map <elev_lid792_1m.acc2> created</font></div><div><font face="courier new, monospace">r.watershed complete. Raster map <elev_lid792_1m.tci2> created</font></div>
<div><font face="courier new, monospace">r.watershed complete. Raster map <elev_lid792_1m.basin2> created</font></div><div><font face="courier new, monospace">r.watershed complete. Raster map <elev_lid792_1m.stream2> created</font></div>
</div><div><br></div><div>For vector maps, a similar mechanism would be ideal.</div><div><br></div><div>Ideas?</div><div><br></div><div>Markus</div></div>