#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.
#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).
#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
}}}
> 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):