[GRASS-dev] Re: [GRASS GIS] #1059: wxGUI: No menu option for r.mapcalc

GRASS GIS trac at osgeo.org
Tue May 11 13:30:51 EDT 2010

#1059: wxGUI: No menu option for r.mapcalc
  Reporter:  vesnikos  |       Owner:  martinl        
      Type:  defect    |      Status:  reopened       
  Priority:  major     |   Milestone:  7.0.0          
 Component:  wxGUI     |     Version:  svn-trunk      
Resolution:            |    Keywords:  r.mapcalc wxGUI
  Platform:  Linux     |         Cpu:  x86-32         
Comment (by cmbarton):

 If you type a GRASS command and press return, the parser reads xml
 information pass from running [command] --interface-description, and
 builds a basic GUI from this. Actually, the module GUI it builds is pretty
 sophisticated, with format control, choice boxes, color pickers, etc. If
 you run r.mapcalc this way, this is the kind of GUI you get--one that
 gives you a more accessible way to complete required and optional
 arguments, see output, and have access to the manual.

 The map calculator that is accessible from the GUI is a special module
 that only runs in the wxPython environment of the GUI. It presents a much
 more graphical interface, with a "calculator" like appearance. It is not
 callable automatically by the parser when you run r.mapcalc.

 To link this calculator-like interface to mapcalc, you probably would need
 to change the parser code to make a special exception for r.mapcalc. Then
 you would need to change the map calculator code to make it run stand-
 alone. Neither of these changes are trivial.

 And I don't think this is really necessary. Most people running r.mapcalc
 from the command line will be comfortable with entering mapcalc
 expressions. Those running the map calculator can use expressions, but
 don't need to. The calculator can help them learn these expressions,
 however. Nonetheless, they are likely to be a different set of users.


Ticket URL: <http://trac.osgeo.org/grass/ticket/1059#comment:19>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list