[GRASS-dev] [GRASS GIS] #1075: Better default values in GUI function

GRASS GIS trac at osgeo.org
Sat Feb 14 16:46:02 PST 2015


#1075: Better default values  in GUI function
------------------------------------+---------------------------------------
 Reporter:  vesnikos                |       Owner:  grass-dev@…              
     Type:  enhancement             |      Status:  new                      
 Priority:  minor                   |   Milestone:  7.0.0                    
Component:  wxGUI                   |     Version:  svn-trunk                
 Keywords:  forms, module defaults  |    Platform:  All                      
      Cpu:  All                     |  
------------------------------------+---------------------------------------
Changes (by wenzeslaus):

  * keywords:  => forms, module defaults


Comment:

 Replying to [ticket:1075 vesnikos]:

 > what Im proposing, is that the gui should recommended (or autofill) some
 optional or required fields that the user needs to fill. For example the
 proposed name of an output file/layer could be
 `${input_name)_${command_called}_${region}`.

 This makes sense to me. It is probably possible to implement without much
 side effects, although that's hard for the code in `forms.py`. Generating
 the new name can be a bit tricky: Some modules have more outputs, e.g.
 `r.slope.aspect`, so you have to find out, what are the output options and
 if there is more then one, include also the name of the option. I'm not
 sure about the region, details are part of the map metadata (e.g.
 `r.info`). It would be good to think about different cases before
 implementing anything like that.

 > The same can said for some arithmetic values.

 These as well as other defaults should be solved at the level of modules.
 If you have some ideas, please suggest them individually for a given
 module.

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



More information about the grass-dev mailing list