[GRASS-SVN] r29619 - grass/branches/releasebranch_6_3/scripts/db.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 8 09:00:58 EST 2008


Author: neteler
Date: 2008-01-08 09:00:58 -0500 (Tue, 08 Jan 2008)
New Revision: 29619

Modified:
   grass/branches/releasebranch_6_3/scripts/db.in.ogr/description.html
Log:
docs extended (merge from HEAD)

Modified: grass/branches/releasebranch_6_3/scripts/db.in.ogr/description.html
===================================================================
--- grass/branches/releasebranch_6_3/scripts/db.in.ogr/description.html	2008-01-08 14:00:16 UTC (rev 29618)
+++ grass/branches/releasebranch_6_3/scripts/db.in.ogr/description.html	2008-01-08 14:00:58 UTC (rev 29619)
@@ -2,7 +2,8 @@
 
 <em>db.in.ogr</em> imports attribute tables in various formats as
 supported by the OGR driver on the local system (DBF, CSV,
-PostgreSQL, SQLite, MySQL, ODBC, etc.).
+PostgreSQL, SQLite, MySQL, ODBC, etc.). Optionally a unique key (ID)
+column can be added to the table.
 
 <h2>NOTES</h2>
 
@@ -16,15 +17,23 @@
 <p>
 <div class="code"><pre>
 # NOTE: create koeppen_gridcode.csvt first for type recognition
-db.in.ogr dsn=koeppen_gridcode.csv out=koeppen_gridcode
+db.in.ogr dsn=koeppen_gridcode.csv output=koeppen_gridcode
 db.select koeppen_gridcode
 </pre></div>
 
 <p>
+Import of a DBF table with additional unique key column (e.g., needed for <em>v.in.db</em>):
+<p>
+<div class="code"><pre>
+db.in.ogr dsn=$HOME/mydata.dbf output=census_raleigh key=myid
+db.describe -c census_raleigh
+</pre></div>
+
+<p>
 Import of a SQLite table:
 <p>
 <div class="code"><pre>
-db.in.ogr dsn=$HOME/sqlite/sqlite.db db_table=census_raleigh out=census_raleigh
+db.in.ogr dsn=$HOME/sqlite/sqlite.db db_table=census_raleigh output=census_raleigh
 </pre></div>
 
 <p>
@@ -32,7 +41,7 @@
 <p>
 <div class="code"><pre>
 db.in.ogr dsn="PG:host=localhost dbname=ecad user=neteler" \
-          db_table=ecad_verona_tmean out=ecad_verona_tmean
+          db_table=ecad_verona_tmean output=ecad_verona_tmean
 db.select ecad_verona_tmean
 db.describe -c ecad_verona_tmean
 </pre></div>



More information about the grass-commit mailing list