[GRASS-SVN] r54781 - grass/trunk/scripts/v.db.reconnect.all

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 27 01:13:43 PST 2013


Author: mmetz
Date: 2013-01-27 01:13:42 -0800 (Sun, 27 Jan 2013)
New Revision: 54781

Modified:
   grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.html
Log:
v.db.reconnect.all: update manual

Modified: grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.html
===================================================================
--- grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.html	2013-01-27 09:13:19 UTC (rev 54780)
+++ grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.html	2013-01-27 09:13:42 UTC (rev 54781)
@@ -6,9 +6,16 @@
 a link does not match the <b>old_database</b> it is left untouched.
 
 <p>
+If no new database is given, the default datase of the mapset is used as 
+printed by <tt>db.connect -g</tt>. If no old database is given, all 
+layers without a link in the new database will be liniked to the new 
+database. If an old database is given, only links in the old database 
+will be changed.
+
+<p>
 Optionally attribute tables in <b>new_database</b> can be created if
 not exist by <b>-c</b> flag. In this case <em>v.db.reconnect.all</em>
-also tries to create index on key column (usually "cat"
+also tries to create an index on key column (usually "cat"
 column).
  
 <h2>NOTES</h2>
@@ -69,6 +76,17 @@
  new_driver=sqlite new_database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db'
 </pre></div>
 
+or alternatively
+
+<div class="code"><pre>
+# set default connection (sqlite)
+db.connect -d
+# verify default connection
+db.connect -g
+# reconnect
+v.db.reconnect.all -c old_database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/'
+</pre></div>
+
 To automatically remove original DBF attribute tables after
 reconnecting the vector maps use <b>-d</b> flag. Note that attribute
 tables will be deleted <i>permanently</i> from the source



More information about the grass-commit mailing list