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

GRASS GIS trac at osgeo.org
Thu Nov 26 02:31:07 PST 2015


#2592: r.mapcalc: add -l flag
--------------------------+-------------------------
  Reporter:  martinl      |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  7.0.3
 Component:  Raster       |    Version:  svn-trunk
Resolution:               |   Keywords:  r.mapcalc
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------
Description changed by neteler:

Old description:

> 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.
> }}}

New description:

 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: <https://trac.osgeo.org/grass/ticket/2592#comment:4>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list