qissue-bot / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
http://qgis.org
GNU General Public License v2.0
0 stars 0 forks source link

r.mapcalculator: variable number of input maps #2564

Open qissue-bot opened 5 years ago

qissue-bot commented 5 years ago

Author Name: Paolo Cavallini (Paolo Cavallini) Original Redmine Issue: 2577, https://issues.qgis.org/issues/2577


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

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Markus Neteler (Markus Neteler) Original Date: 2010-03-21T10:43:45.000Z


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

but

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.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Paolo Cavallini (Paolo Cavallini) Original Date: 2018-02-24T15:04:50.998Z


Unchanged in QGIS 3