فهرست منبع

v.db.reconnect.all: update manual

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54781 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 سال پیش
والد
کامیت
df5ee49b51
1فایلهای تغییر یافته به همراه19 افزوده شده و 1 حذف شده
  1. 19 1
      scripts/v.db.reconnect.all/v.db.reconnect.all.html

+ 19 - 1
scripts/v.db.reconnect.all/v.db.reconnect.all.html

@@ -6,9 +6,16 @@ of all vector maps in the current mapset from the source
 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 &quot;cat&quot;
+also tries to create an index on key column (usually &quot;cat&quot;
 column).
  
 <h2>NOTES</h2>
@@ -69,6 +76,17 @@ v.db.reconnect.all -c old_database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/' \
  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