[GRASS5] [bug #4311] (grass) shaded relief parameter checking
Request Tracker
grass-bugs at intevation.de
Wed Apr 19 11:50:50 EDT 2006
this bug's URL: http://intevation.de/rt/webrt?serial_num=4311
-------------------------------------------------------------------------
Subject: shaded relief parameter checking
Platform: GNU/Linux/x86_64
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: 6.1
There is a bug in r.shaded.relief where the input parameters are
checked, especially the azimuth.
the current version reads:
================
if test $alt -lt 0 -o $alt -gt 90
then
echo "Sorry, altitude must be greater than 0 and less than 90"
exit 1
fi
if test $az -lt 0 -o $alt -gt 360
then
echo "Sorry, azimuth must be between 0 and 360"
exit 1
fi
================
and it should be according to the text description
================
if test $alt -lt 1 -o $alt -gt 89
then
echo "Sorry, altitude must be greater than 0 and less than 90"
exit 1
fi
if test $az -lt 0 -o $az -gt 360
then
echo "Sorry, azimuth must be between 0 and 360"
exit 1
fi
-------------------------------------------- Managed by Request Tracker
More information about the grass-dev
mailing list