Opened 5 years ago

Closed 3 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 Changed 4 years ago by neteler

Milestone: 7.0.17.0.2

Ticket retargeted after 7.0.1 milestone closed

comment:2 Changed 4 years ago by neteler

Milestone: 7.0.27.0.3

Ticket retargeted after milestone closed

comment:3 Changed 4 years ago by lutra

Cc: lutra added

comment:4 Changed 4 years ago by neteler

Description: modified (diff)

comment:5 in reply to:  description Changed 4 years ago by glynn

Replying to martinl:

Add new flag to list inputs and outputs:

Try r67000.

comment:6 Changed 4 years ago by neteler

Milestone: 7.0.3

Ticket retargeted after milestone closed

comment:7 Changed 4 years ago by neteler

Milestone: 7.0.4

Ticket retargeted after 7.0.3 milestone closed

comment:8 Changed 3 years ago by martinl

Milestone: 7.0.47.0.5

comment:9 Changed 3 years ago by martinl

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.