[GRASS-dev] v.db.renamecol written

Markus Neteler neteler at itc.it
Sat Apr 7 12:59:56 EDT 2007


Since renaming is a relative pain in DBF and SQLite,
I have written a new script v.db.renamecol. To use it
be sure to update db.describe, too, from CVS.

Usage example Spearfish:

g.copy vect=roads,myroads
v.info -c myroads
INTEGER|cat
CHARACTER|label

v.db.renamecol myroads col=label,roadtype
v.info -c myroads
INTEGER|cat
CHARACTER|roadtype

Tested with PostgreSQL, too.

Cheers
Markus

PS: I didn't test with MySQL - please let me know if it should fail there.




More information about the grass-dev mailing list