[GRASS-dev] [GRASS GIS] #278: wxGUI: don't allow for negative column number

GRASS GIS trac at osgeo.org
Mon Jul 21 21:43:46 PDT 2014

#278: wxGUI: don't allow for negative column number
 Reporter:  msieczka  |       Owner:  martinl  
     Type:  defect    |      Status:  assigned 
 Priority:  minor     |   Milestone:  7.0.0    
Component:  wxGUI     |     Version:  svn-trunk
 Keywords:  parser    |    Platform:  All      
      Cpu:  All       |  

Comment(by wenzeslaus):

 In GRASS, values `> 0` should be now specified in C as:
 opt->options = "1-";
 and in Python as:
 #% options: 1-

 So, v.in.ascii needs this fix, so that standard Parser mechanism is used
 instead of custom error handling.

 GUI now allows to input negative numbers but label contains "valid range
 1-" and Run gives an standard error message generated by module (parser):

 ERROR: Value <-4> out of range for parameter <x>
         Legal range: 1-

 GUI would not allow to input values out of range if both limits would be
 specified. GUI needs to be improved, so it can handle also range with min
 or max only.

 Modules using custom range handling, such as `v.in.ascii`, should be
 chanaged to use parser.

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

More information about the grass-dev mailing list