db.out.ogr.html 871 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <h2>DESCRIPTION</h2>
  2. <em>db.out.ogr</em> exports GRASS attribute tables into various formats as
  3. supported by the OGR driver on the local system (CSV, DBF,
  4. PostgreSQL, SQLite, MySQL, ODBC, etc.).
  5. <h2>EXAMPLES</h2>
  6. Export of GRASS table to a DBF table (default format):
  7. <p>
  8. <div class="code"><pre>
  9. db.out.ogr points_tab dsn=/tmp/points_tab.dbf
  10. </pre></div>
  11. <p>
  12. Export of GRASS table to a CSV table file:<br>
  13. <p>
  14. <div class="code"><pre>
  15. db.out.ogr points_tab dsn=points.csv format=CSV
  16. </pre></div>
  17. <p>
  18. Export of GRASS table into a PostgreSQL table:
  19. <p>
  20. <div class="code"><pre>
  21. db.out.ogr points_tab dsn="PG:host=localhost dbname=postgres user=neteler" format=PostgreSQL
  22. echo "SELECT * FROM points_tab" | psql postgres
  23. </pre></div>
  24. <h2>SEE ALSO</h2>
  25. <em><a href="sql.html">GRASS SQL interface</a></em>
  26. <h2>AUTHOR</h2>
  27. Markus Neteler
  28. <p><i>Last changed: $Date$</i>