Opened 10 years ago

Closed 8 years ago

#2592 closed enhancement (fixed)

r.mapcalc: add -l flag

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 (9)

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, 9 years ago

Milestone: 7.0.27.0.3

Ticket retargeted after milestone closed

comment:3 by lutra, 9 years ago

Cc: lutra added

comment:4 by neteler, 9 years ago

Description: modified (diff)

in reply to:  description comment:5 by glynn, 9 years ago

Replying to martinl:

Add new flag to list inputs and outputs:

Try r67000.

comment:6 by neteler, 9 years ago

Milestone: 7.0.3

Ticket retargeted after milestone closed

comment:7 by neteler, 9 years ago

Milestone: 7.0.4

Ticket retargeted after 7.0.3 milestone closed

comment:8 by martinl, 9 years ago

Milestone: 7.0.47.0.5

comment:9 by martinl, 8 years ago

Milestone: 7.0.57.2.0
Resolution: fixed
Status: newclosed

Implemented for GRASS 7.2. Backport for 7.0 is not planned (new feature).

Note: See TracTickets for help on using tickets.