[GRASS-dev] Re: [GRASS GIS] #669: let users save/load mapcalc expressions

GRASS GIS trac at osgeo.org
Mon Aug 3 14:12:33 EDT 2009


#669: let users save/load mapcalc expressions
--------------------------+-------------------------------------------------
  Reporter:  timmie       |       Owner:  grass-dev at lists.osgeo.org
      Type:  enhancement  |      Status:  new                      
  Priority:  normal       |   Milestone:  6.5.0                    
 Component:  wxGUI        |     Version:  svn-develbranch6         
Resolution:               |    Keywords:  map calculator           
  Platform:  Linux        |         Cpu:  x86-32                   
--------------------------+-------------------------------------------------
Comment (by glynn):

 Replying to [comment:6 1gray]:
 > This is already possible when using the command-line interface.
 Consider, e. g.:
 {{{
   bash$ (r=baz ; a=foo ; b=bar ; r.mapcalc "\"$r\" = \"$a\" + \"$b\"")
 }}}

 Note that r.mapcalc allows map names to be quoted using either single or
 double quotes, so the above can be written as:

 {{{
   bash$ (r=baz ; a=foo ; b=bar ; r.mapcalc "'$r' = '$a' + '$b'")
 }}}

 This is probably clearer than using backslash and double-quote.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/669#comment:7>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list