Opened 9 years ago

Last modified 8 years ago

#2592 closed enhancement

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

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

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

Note: See TracTickets for help on using tickets.