[GRASS-dev] Re: [GRASS GIS] #1093: wxModeler does not accept
r.mapcalc action
GRASS GIS
trac at osgeo.org
Mon Jun 21 00:21:43 EDT 2010
#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>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list