Dear devs,

In the help file of r.mapcalc it is written:

When the user enters input to /r.mapcalc/ non-interactively on the command line, the program will not warn the user not to overwrite existing map layers. Users should therefore take care to assign program outputs raster map names that do not yet exist in their current mapsets.

Perhaps the description is somewhat ambiguous, but if the way I read this is correct, this is not the default behaviour. Perhaps the following describes it better:

By default it is not possible to overwrite existing raster layers, so the user is expected to take care to assign program output raster names that do not yet exist in their current mapset. If they want to overwrite existing maps, users can use the --overwrite flag.

I added a patch file in case the above is ok.

Best wishes,

Paulo

--- /home/paulo/Software/Linux/grass7/trunk/raster/r.mapcalc/r.mapcalc.html
+++ /home/paulo/Software/Linux/grass7/trunk/raster/r.mapcalc/r.mapcalc_correction.html
@@ -547,10 +547,10 @@
 <p>If the <em>r.mapcalc</em> formula entered by the user is very long,
 the map title will contain only some of it, but most (if not all) of
 the formula will be placed into the history file for the <em>result</em> map.
-<p>When the user enters input to <em>r.mapcalc</em> non-interactively on
-the command line, the program will not warn the user not to overwrite
-existing map layers.  Users should therefore take care to assign program
-outputs raster map names that do not yet exist in their current mapsets.
+<p>By default it is not possible to overwrite existing raster layers, so the 
user is expected to take care to assign program output raster names that do not 
yet exist in their current mapset. If they want to overwrite existing maps, 
users can use the --overwrite flag.
 
 <h3>Raster MASK handling</h3>
 <p>
_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to