[GRASS-user] Spatial Statistics

Markus Neteler neteler at itc.it
Thu Mar 8 12:21:33 EST 2007


Dr. Manuel Seeger wrote on 03/08/2007 08:31 AM:
> Hello all
>>
>> Please tell us
>> - which error
>>   
> The error is caused when I try to add the columns by v.rast.stats.
> This is what it gives as report. I run it by gui:
>
> Adding column <DGM_n>
> /usr/lib/grass/scripts/v.db.addcol: 96: let: not found

I have fixed that - "let" is a bash command but not shell.
Change line 96 (where the "let" is) to
   n=`expr $n + 1`

> DBMI-DBF driver error:
> Column 'DGM_n' already exists (duplicate name)
> Cannot add column.

Could you do a
v.info -c yourmap
?
> Error in db_execute_immediate()
>
>
> Error while executing: "ALTER TABLE Kyll_fluss_100 ADD COLUMN DGM_n
> double precision
> "
> ERROR: Cannot continue (problem adding column).
> ERROR: Cannot continue (problem to add column).
>
>> - which GRASS version
>>   
> I'm running grass 6.2.1
>> - which operating system
>>   
> On an ubuntu edgy with gnome

Strange that "let" fails - I would expect that from Windows only. Anyway,
should be fixed now.

> Another thing I noticed is that it does not work if vector file and
> table have different names (I dind not forget to connect the tables;-))
Sigh :) I have to look into this, too.
Please let us know if at least the "let" problem is solved.

Cheers
Markus




More information about the grass-user mailing list