[GRASS-dev] [GRASS GIS] #1093: wxModeler does not accept r.mapcalc action

#1093: wxModeler does not accept r.mapcalc action
-------------------------+--------------------------------------------------
Reporter: timmie | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: unspecified
Keywords: | Platform: Linux
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Trying the modeler, it comes not possible to add a action using the
r.mapcalc module.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1093&gt;
GRASS GIS <http://grass.osgeo.org>

#1093: wxModeler does not accept r.mapcalc action
-------------------------+--------------------------------------------------
Reporter: timmie | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: unspecified
Keywords: modeler | Platform: Linux
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by martinl):

* cc: grass-dev@… (added)
  * keywords: => modeler

Comment:

The reason is that r.mapcalc in GRASS 6.5 doesn't use the parser, in the
result wxGUI cannot generated dialog for this command. Try r.mapcalculator
instead. This problem is not related to GRASS 7 (r.mapcalc uses in GRASS 7
the parser).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1093#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1093: wxModeler does not accept r.mapcalc action
-------------------------+--------------------------------------------------
Reporter: timmie | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: unspecified
Keywords: modeler | Platform: Linux
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by martinl):

  * owner: grass-dev@… => martinl
  * status: new => assigned

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1093#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1093: wxModeler does not accept r.mapcalc action
-------------------------+--------------------------------------------------
Reporter: timmie | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: modeler | Platform: Linux
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by martinl):

  * version: unspecified => svn-develbranch6

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1093#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1093: wxModeler does not accept r.mapcalc action
-------------------------+--------------------------------------------------
Reporter: timmie | Owner: martinl
     Type: defect | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: modeler | Platform: Linux
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by glynn):

Replying to [comment:1 martinl]:
> The reason is that r.mapcalc in GRASS 6.5 doesn't use the parser, in the
result wxGUI cannot generated dialog for this command. Try r.mapcalculator
instead. This problem is not related to GRASS 7 (r.mapcalc uses in GRASS 7
the parser).

If you want "raw" r.mapcalc from the GUI, it wouldn't be particularly hard
to add a front-end script which implements the 7.0 semantics (i.e.
expression= and file= options). E.g. (untested, boilerplate omitted):

{{{
if [ -n "$GIS_OPT_EXPRESSION" ] ; then
     exec r.mapcalc "$GIS_OPT_EXPRESSION"
elif [ -n "$GIS_OPT_FILE" ] ; then
     exec r.mapcalc < "$GIS_OPT_FILE"
else
     echo "Either expression= or file= must be given" >&2
     exit 1
fi
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1093#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1093: wxModeler does not accept r.mapcalc action
---------------------+------------------------------------------------------
  Reporter: timmie | Owner: martinl
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords: modeler
  Platform: Linux | Cpu: Unspecified
---------------------+------------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

Comment:

Replying to [comment:4 glynn]:

> If you want "raw" r.mapcalc from the GUI, it wouldn't be particularly
hard to add a front-end script which implements the 7.0 semantics (i.e.
expression= and file= options). E.g. (untested, boilerplate omitted):

done in r48861.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1093#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>