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

GRASS GIS trac at osgeo.org
Mon May 10 07:08:39 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 mmetz):

 Replying to [comment:12 glynn]:
 > Replying to [comment:11 mmetz]:
 >
 > > This is now no longer possible in grass7.
 >
 > r42183 was incomplete; this should be fixed by r42210.
 Thanks!
 >
 > > r.mapcalculator is present in grass7, but as bash script, apparently
 it awaits translation to python?
 >
 > The consensus was that it wasn't worth maintaining. In 7.0, r.mapcalc
 uses G_parser(), so it can be run directly from the GUI without requiring
 a wrapper.

 OK, nice.
 >
 > > All the recent changes are done only to get a hit when searching the
 module in the wxGUI?
 >
 > r42183 had two parts: fixing the GUI menu, and cosmetic changes to
 r.mapcalc. The latter included renaming the input= option to file=, but
 overlooked the fact that it synthesises "input=-" when run without
 arguments (to preserve the historical behaviour). The change broke this
 behaviour; r42210 reinstates it.

 Why not just

 {{{
 Index: gui/wxpython/xml/menudata.xml
 ===================================================================
 --- gui/wxpython/xml/menudata.xml       (revision 42182)
 +++ gui/wxpython/xml/menudata.xml       (working copy)
 @@ -1010,7 +1010,9 @@
         <menuitem>
           <label>Map calculator</label>
           <help>Map calculator for raster map algebra</help>
 +         <keywords>raster</keywords>
           <handler>DispMapCalculator</handler>
 +         <command>r.mapcalc</command>
         </menuitem>
         <menu>
           <label>Neighborhood analysis</label>

 }}}

 against r42182? AFAICT, no modifications needed for raster/r.mapcalc

 BTW, could the Map calculator get an output window and the r.mapcalc
 manual?

 Thanks,

 Markus M

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


More information about the grass-dev mailing list