[GRASS-SVN] r34496 - grass/branches/develbranch_6/scripts/v.db.addtable

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 04:31:44 EST 2008


Author: neteler
Date: 2008-11-26 04:31:44 -0500 (Wed, 26 Nov 2008)
New Revision: 34496

Modified:
   grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable
Log:
overwrite if link exists

Modified: grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable	2008-11-26 09:28:30 UTC (rev 34495)
+++ grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable	2008-11-26 09:31:44 UTC (rev 34496)
@@ -1,5 +1,5 @@
 #!/bin/sh
-#
+
 ############################################################################
 #
 # MODULE:       v.db.addtable
@@ -178,7 +178,7 @@
 
 # connect the map to the DB:
 v.db.connect map="$GIS_OPT_MAP" database="${database}" driver="$driver" \
-   layer="$GIS_OPT_LAYER" table="$table" key=cat
+   layer="$GIS_OPT_LAYER" table="$table" key=cat -o
 
 # finally we have to add cats into the attribute DB to make modules such as v.what.rast happy:
 # (creates new row for each vector line):



More information about the grass-commit mailing list