[GRASS-dev] [GRASS GIS] #2986: r.mapcalc with same variable on LHS and RHS

GRASS GIS trac at osgeo.org
Wed Apr 13 06:53:12 PDT 2016


#2986: r.mapcalc with same variable on LHS and RHS
-------------------------+-------------------------
 Reporter:  mankoff      |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  major        |  Milestone:  7.0.4
Component:  Docs         |    Version:  7.0.3
 Keywords:  r.mapcalc    |        CPU:  Unspecified
 Platform:  Unspecified  |
-------------------------+-------------------------
 It appears the following is valid syntax:

 {{{
 r.mapcalc "x = x + 1" --o
 }}}

 But a GRASS developer has said ([http://gis.stackexchange.com/a/109763/609
 source]),

 {{{
 Note that you shouldn't use r.mapcalc like this (read from and write in
 the same map):

 r.mapcalc "old = old + 10" --overwrite
 }}}

 If this is the case, this seems like it **important** and should be
 included in the documentation.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2986>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list