[GRASS-dev] [GRASS GIS] #2592: r.mapcalc: add -l flag

GRASS GIS trac at osgeo.org
Sat Feb 21 00:49:05 PST 2015


#2592: r.mapcalc: add -l flag
-------------------------+--------------------------------------------------
 Reporter:  martinl      |       Owner:  grass-dev@…              
     Type:  enhancement  |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.1                    
Component:  Raster       |     Version:  svn-trunk                
 Keywords:  r.mapcalc    |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 Add new flag to list inputs and outputs:

 {{{
 r.mapcalc -l "test1 = test2 + test3 + 5"
 input=test2,test3
 output=test1
 }}}

 From #2409:

 {{{
  Such an option would be fairly simple to add. Most of the relevant logic
 is already present in execute() in r.mapcalc/evaluate.c.

 The initialize() function populates the list of input maps (in
 r.mapcalc/map.c or map3.c), which can be used to generate the list of
 inputs. Each top-level assignment expression defines an output.
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2592>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list