To add new columns to your database, try v.db.addcol:
http://grass.itc.it/grass61/manuals/html61_user/v.db.addcol.html
~ Eric.
-----Original Message-----
From: grass-dev-bounces@grass.itc.it
To: grass-dev@grass.itc.it
Sent: 7/12/2006 6:42 AM
Subject: [GRASS-dev] again: add attributes to new vector / create new
vector(Vlib)
Hello list!
I am still working on a new vector module for GRASS GIS.
It reads an existing vector set (stream network), calculates the
strahler order for the lines and writes a new vector set.
On 12.07.2006, at 14:22, Patton, Eric wrote:
To add new columns to your database, try v.db.addcol:
Thanks Eric,
v.db.addcol doesn't help me so much as I need to alter the table from within the module written in C.
Thank you for your hint, though, it did lead me to the function db_add_columns() in the DBMI library.
This function should do what I need. However, it seems to be not implemented yet, a conclusion I draw from the error message I get when I call it:
dbmi: db_add_column() not implemented
How is the development status of db_add_column() and what can I use instead?
-Flo.