[GRASS-SVN] r34221 - grass/branches/develbranch_6/vector/v.db.connect

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 10 01:52:35 EST 2008


Author: hamish
Date: 2008-11-10 01:52:35 -0500 (Mon, 10 Nov 2008)
New Revision: 34221

Modified:
   grass/branches/develbranch_6/vector/v.db.connect/description.html
Log:
add sqlite example

Modified: grass/branches/develbranch_6/vector/v.db.connect/description.html
===================================================================
--- grass/branches/develbranch_6/vector/v.db.connect/description.html	2008-11-10 06:51:52 UTC (rev 34220)
+++ grass/branches/develbranch_6/vector/v.db.connect/description.html	2008-11-10 06:52:35 UTC (rev 34221)
@@ -52,21 +52,41 @@
 <p>
 Using hardcoded path to DBF directory (not recommended):<br>
 <div class="code"><pre>
-v.db.connect map=vectormap table=table database=/home/user/grassdata/spearfish60/PERMANENT/dbf
+v.db.connect map=vectormap table=table \
+             database=/home/user/grassdata/spearfish60/PERMANENT/dbf
 </pre></div>
 
 <p>
 Using variable as DBF directory definition, single quotes must be used:<br>
 <div class="code"><pre>
-v.db.connect map=vectormap table=table database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/'
+v.db.connect map=vectormap table=table \
+             database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/'
 </pre></div>
 
 <p>
-Connect vector map layer 2 and key ID to database with variables (note: if needed, single quotes must be used for the <em>database</em> parameter):
+Connect vector map layer 2 and key ID to database with variables
+(note: if needed, single quotes must be used for the <em>database</em>
+parameter):
 <div class="code"><pre>
 v.db.connect map=vectormap table=table layer=2 key=ID
 </pre></div>
 
+
+
+<h3>Connect vector map to database (SQLite driver)</h3>
+
+Very similar to DBF driver example above.
+
+<div class="code"><pre>
+db.connect driver=sqlite database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db'
+db.tables -p
+v.db.connect map=vectormap table=table driver=sqlite \
+             database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db'
+v.db.connect -p map=vectormap
+</pre></div>
+
+
+
 <h3>Connect vector map to database (MySQL driver)</h3>
 
 <div class="code"><pre>
@@ -169,6 +189,7 @@
 
 <h2>SEE ALSO</h2>
 
+<em>
 <a HREF="db.connect.html">db.connect</a>,
 <a HREF="db.copy.html">db.copy</a>,
 <a HREF="db.tables.html">db.tables</a>,
@@ -179,6 +200,7 @@
 <a HREF="v.external.html">v.external</a>,
 <a HREF="v.in.db.html">v.in.db</a>,
 <a HREF="v.overlay.html">v.overlay</a>
+</em>
 
 <h2>AUTHOR</h2>
 



More information about the grass-commit mailing list