[GRASS-user] setting resolution with wxpython-GUI fails when...

Martin Landa landa.martin at gmail.com
Fri Apr 18 13:35:01 EDT 2008


Hi,

'g.region' ends up with error, so region settings should remain untouched.

grass-dev: you can define (for parser) valid value range of parameter
[min, max]. To define range [min, not-defined) or (not-defined, max]
would be also useful, in this case valid range of 'rows' is > 0. For
GUI dialog - range parameter of wx.SpinCtrl widget could set to min=1,
max=(big number) to avoid the situation when user choose rows<=0.

Martin

2008/4/18, Nikos Alexandris <nikos.alexandris at felis.uni-freiburg.de>:
> While testing the new GUI:
>  Config > Region > Set region > "Resolution" tab in g,region window.
>
>  Accidentaly I "touched" the "Number of rows in the new region" field
>  instead of typing in some resolution in the N-S, E-W fields. Then I just
>  filled-in the desired resolution in the N-S, E-W fields but the "row"
>  field doesn't seem to be "reset".
>
>  Following error:
>
>  (2) g.region --overwrite rows=0 nsres=250
>  ewres=250
>  ERROR: Invalid region: Illegal row value
>  (2) Command finished (0 sec)
>
>  Is it really a "bug"?
>
>  Could there be somekind of a reset button?
>
>  Nikos
>
>  _______________________________________________
>  grass-user mailing list
>  grass-user at lists.osgeo.org
>  http://lists.osgeo.org/mailman/listinfo/grass-user
>


-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-user mailing list