this bug's URL: http://intevation.de/rt/webrt?serial_num=5005
-------------------------------------------------------------------------
Subject: r.shaded.relief syntax error
Platform: GNU/Linux/x86_64
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.3.cvs_src_snapshot_2006_08_12
Compiled as follows:
tar xzvf grass-6.3.cvs_src_snapshot_2006_08_12.tar.gz
cd grass-6.3.cvs_src_snapshot_2006_08_12
CFLAGS="-g -Wall"
./configure \
--enable-64bit \
--with-libs=/usr/lib64 \
--with-postgres \
--without-fftw \
--with-postgres-includes=/usr/local/pgsql/include \
--with-postgres-libs=/usr/local/pgsql/lib
make, make install etc.
when executing:
r.shaded.relief map=infile shadedmap=outfile azimuth=315 altitude=45 units=meters
I get the following message:
Calculating shading, please stand by.
syntax error, unexpected ',', expecting ')'
Parse error
The same command executed in GRASS 6.0.2 works OK.
-------------------------------------------- Managed by Request Tracker
On Tue, Aug 15, 2006 at 11:18:09AM +0200, Request Tracker wrote:
this bug's URL: http://intevation.de/rt/webrt?serial_num=5005
-------------------------------------------------------------------------
Subject: r.shaded.relief syntax error
Platform: GNU/Linux/x86_64
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.3.cvs_src_snapshot_2006_08_12
Compiled as follows:
tar xzvf grass-6.3.cvs_src_snapshot_2006_08_12.tar.gz
cd grass-6.3.cvs_src_snapshot_2006_08_12
CFLAGS="-g -Wall"
./configure \
--enable-64bit \
--with-libs=/usr/lib64 \
--with-postgres \
--without-fftw \
--with-postgres-includes=/usr/local/pgsql/include \
--with-postgres-libs=/usr/local/pgsql/lib
make, make install etc.
when executing:
r.shaded.relief map=infile shadedmap=outfile azimuth=315 altitude=45 units=meters
I get the following message:
Calculating shading, please stand by.
syntax error, unexpected ',', expecting ')'
Parse error
The same command executed in GRASS 6.0.2 works OK.
I can confirm the problem. Fix: Add in the first part of the script:
# setting environment, so that awk works properly in all languages
unset LC_ALL
export LC_NUMERIC=C
It's a LOCALE problem which changes '.' to ',' in certain locales.
Somehow we forgot to add above to this scripts (in other scripts
this fix was done time ago).
Fixed in CVS for 6.3 and 6.2-release branch.
Markus