Feature request #2577

r.mapcalculator: variable number of input maps

Added by Paolo Cavallini almost 8 years ago. Updated 9 months ago.

Pull Request or Patch supplied:No Resolution:
Easy fix?:No


It would be good to have a variable number of input maps for r.mapcalculator GRASS module. See r.buffer as an example (this approach cannot be used directly, as the underlying GRASS commands are different).


#1 Updated by Markus Neteler almost 8 years ago

The reason for the different behaviour is that the command style is different:

 r.mapcalculator [-eo] [amap=string] [bmap=string] [cmap=string]
   [dmap=string] [emap=string] [fmap=string] formula=string
   outfile=string ...


r.buffer [-zq] input=name output=name distances=value[,value,...] ...

The distances parameter is a 1..n list while in r.mapcalculator the
parameters are separate.

Suggestion: modify r.mapcalculator in QGIS to require input=string[,string,...]
since this cannot be changed in the GRASS 6 series for compatibility.

#2 Updated by Giovanni Manghi about 6 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#3 Updated by Paolo Cavallini about 6 years ago

  • Pull Request or Patch supplied set to No
  • Assignee deleted (Lorenzo Masini)

#4 Updated by Giovanni Manghi almost 6 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#5 Updated by Pirmin Kalberer over 5 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

#6 Updated by Giovanni Manghi 9 months ago

  • Easy fix? set to No

Also available in: Atom PDF