Opened 9 years ago

Last modified 8 years ago

#2592 closed enhancement

r.mapcalc: add -l flag — at Version 4

Reported by: martinl Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: Raster Version: svn-trunk
Keywords: r.mapcalc Cc: lutra
CPU: Unspecified Platform: Unspecified

Description (last modified by neteler)

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

Change History (4)

comment:1 by neteler, 9 years ago

Milestone: 7.0.17.0.2

Ticket retargeted after 7.0.1 milestone closed

comment:2 by neteler, 8 years ago

Milestone: 7.0.27.0.3

Ticket retargeted after milestone closed

comment:3 by lutra, 8 years ago

Cc: lutra added

comment:4 by neteler, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.