Details Ticket 5005


Comment | Reply | Take | Open


Serial Number 5005
Subject r.shaded.relief syntax error
Area grass6
Queue grass
Requestors l.pennig@klett.de
Owner none
Status resolved
Last User Contact Tue Aug 15 14:56:12 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Wed Aug 16 11:40:31 2006 (2 yr ago)
Created Tue Aug 15 11:18:09 2006 (2 yr ago)

Transaction History Ticket 5005


Tue, Aug 15 2006 11:18:09    Request created by guest  
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.
Tue, Aug 15 2006 14:56:12    Mail sent by neteler@itc.it  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Date Tue, 15 Aug 2006 14:56:10 +0200
From Markus Neteler <neteler@itc.it>
To Request Tracker <grass-bugs@intevation.de>
Cc grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #5005] (grass) r.shaded.relief syntax error
Message-ID <20060815125610.GD22223@bartok.itc.it>
Mail-Followup-To Request Tracker <grass-bugs@intevation.de>, grass-dev@grass.itc.it
References <20060815091809.A4A291006AF@lists.intevation.de>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
In-Reply-To <20060815091809.A4A291006AF@lists.intevation.de>
User-Agent Mutt/1.4.1i
X-PGP-Key http://www.gdf-hannover.de/neteler/markus_gpgkey.asc
X-PGP-Fingerprint D4D5 2F80 120E AD60 E2F6 2297 21B3 D02B E1E7 E789
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-4.165 tagged_above=-999 required=3 tests=[AWL=0.835, BAYES_00=-5]
X-Spam-Level
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


Tue, Aug 15 2006 14:57:27    Status changed to resolved by mneteler  
Tue, Aug 15 2006 15:23:24    Mail sent by l.pennig@klett.de  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de=20
+0200 (CEST)
+0200 (CEST)
+0200 (CEST)
(CEST)
635 for <grass-bugs@intevation.de>; Tue, 15 Aug 2006 14 56:10 +0200
k7FCuA0j017222; Tue, 15 Aug 2006 14 56:10 +0200
Date Tue, 15 Aug 2006 14:56:10 +0200
From Markus Neteler <neteler@itc.it>
To Request Tracker <grass-bugs@intevation.de>
Cc grass-dev@grass.itc.it=20
Subject Re: [GRASS-dev] [bug #5005] (grass) r.shaded.relief syntax error
Message-ID <20060815125610.GD22223@bartok.itc.it>
Mail-Followup-To Request Tracker <grass-bugs@intevation.de>, grass-dev@grass.itc.it=20
References <20060815091809.A4A291006AF@lists.intevation.de>
Mime-Version 1.0
Content-Type text/plain; charset=3Dus-ascii
Content-Disposition inline
In-Reply-To <20060815091809.A4A291006AF@lists.intevation.de>
User-Agent Mutt/1.4.1i
X-PGP-Key http://www.gdf-hannover.de/neteler/markus_gpgkey.asc
X-PGP-Fingerprint D4D5 2F80 120E AD60 E2F6 2297 21B3 D02B E1E7 E789
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=3D-4.165 tagged_above=3D-999 required=3D3 =
tests=3D[AWL=3D0.835, BAYES_00=3D-5]
X-Spam-Level =20 -------------------------------------------- Managed by Request Tracker --- Headers Follow --- >From l.pennig@klett.de Tue Aug 15 15:23:24 2006
Return-Path <l.pennig@klett.de>
Delivered-To grass-bugs@lists.intevation.de
Message-Id <s4e1e6ea.013@mail.klett-systeme.de>
X-Mailer Novell GroupWise Internet Agent 6.5.4
Date Tue, 15 Aug 2006 15:22:32 +0200
From "Lars Pennig" <l.pennig@klett.de>
To <grass-bugs@intevation.de>
Subject Antw: >>>>SPAM<<<<[bug #5005] (grass) r.shaded.relief syntax error
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Content-Disposition inline
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-3.2 tagged_above=-999 required=3 tests=[AWL=1.800, BAYES_00=-5]
X-Spam-Level
Hallo Markus,

jetzt funktioniert es, dankesch=F6n!

Lars Pennig

>>> Markus Neteler via RT <grass-bugs@intevation.de> 15.08.2006 14:56 >>>
On Tue, Aug 15, 2006 at 11:18:09AM +0200, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3D5005=20
> -------------------------------------------------------------------------=
>=20
> Subject: r.shaded.relief syntax error
>=20
> 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
>=20
> 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=3D"-g -Wall"
> ./configure \
>  --enable-64bit \
>  --with-libs=3D/usr/lib64 \
>  --with-postgres \
>  --without-fftw \
>  --with-postgres-includes=3D/usr/local/pgsql/include \
>  --with-postgres-libs=3D/usr/local/pgsql/lib
> make, make install etc.
>=20
> when executing:
> r.shaded.relief map=3Dinfile shadedmap=3Doutfile azimuth=3D315 =
altitude=3D45 units=3Dmeters
>=20
> I get the following message:
> Calculating shading, please stand by.
> syntax error, unexpected ',', expecting ')'
> Parse error
>=20
> 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=3DC

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


Tue, Aug 15 2006 15:23:24    Status changed to open by _rt_system  
Wed, Aug 16 2006 11:40:31    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request