Opened 14 years ago
Closed 13 years ago
#1093 closed defect (fixed)
wxModeler does not accept r.mapcalc action
Reported by: | timmie | Owned by: | martinl |
---|---|---|---|
Priority: | normal | Milestone: | 6.5.0 |
Component: | wxGUI | Version: | svn-develbranch6 |
Keywords: | modeler | Cc: | grass-dev@… |
CPU: | Unspecified | Platform: | Linux |
Description
Trying the modeler, it comes not possible to add a action using the r.mapcalc module.
Change History (5)
follow-up: 4 comment:1 by , 14 years ago
Cc: | added |
---|---|
Keywords: | modeler added |
comment:2 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 14 years ago
Version: | unspecified → svn-develbranch6 |
---|
follow-up: 5 comment:4 by , 14 years ago
Replying to 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
comment:5 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
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).