#2986: r.mapcalc with same variable on LHS and RHS
--------------------------+-------------------------
Reporter: mankoff | Owner: grass-dev@…
Type: defect | Status: closed
Priority: major | Milestone: 7.0.4
Component: Docs | Version: 7.0.3
Resolution: fixed | Keywords: r.mapcalc
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Comment (by glynn):
Replying to [comment:10 mankoff]:
> Would it be possible to support this by making {{{r.mapcalc}}} a
wrapper, which replaces the {{{LHS}}} with something unique (if it is
detected on the {{{RHS}}}, and then as a final step, setting the user
{{{result}}} to the LHS-unique variable?
It can't realistically be implemented as a wrapper, and I'm not sure that
the behaviour would even be desirable. If change is warranted, it would be
better to just check for the situation where an output map will overwrite
any of the input maps, and report it as an error.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2986#comment:11>
GRASS GIS <https://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev