t.connect.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <h2>DESCRIPTION</h2>
  2. <em>t.connect</em> allows the user to set the temporal GIS database connection.
  3. <h2>NOTES</h2>
  4. Values are stored in the mapset's <tt>VAR</tt> file;
  5. the connection is not tested for validity.
  6. <p>The <b>-d</b> flag will set the default TGIS connection parameters.
  7. A sqlite3 database "tgis/sqlite.db" will be created in the PERMANET directory
  8. of the current location. It will be located in the "tgis" sub-directory to not
  9. interfere with the sqlite3 database used for vector attribute storage.
  10. <p>The <b>-p</b> flag will display the current TGIS connection parameters.
  11. <p>The <b>-pg</b> flag will display the current TGIS connection parameters using shell style.
  12. <p>The <b>-c</b> flag will silently check if the TGIS connection parameters have
  13. been set, and if not will set them to use GRASS's default values.
  14. <h2>Note</h2>
  15. The default TGIS database of type sqlite3 is located in the PERMANENT mapset directory.
  16. Temporal GIS content from all created mapsets will be stored here. In case
  17. you have thousends of maps to register in the temporal database or you need concurrent read
  18. and write access in the TGIS database, consider to use a postgresql database instead.
  19. <h3>SQLite</h3>
  20. <div class="code"><pre>
  21. t.connect driver=sqlite database='$GISDBASE/$LOCATION_NAME/PERMANENT/tgis/sqlite.db'
  22. t.connect -p
  23. t.info -s
  24. </pre></div>
  25. <p>The SQLite database is created automatically when used the first time.
  26. <h3>PostgreSQL</h3>
  27. In case you use a postgresql database, you will need to specify the TGIS database connection
  28. for each mapset.
  29. <div class="code"><pre>
  30. t.connect driver=pg database="dbname=grass_test user=soeren password=abcdefgh"
  31. t.connect -p
  32. t.info -s
  33. </pre></div>
  34. <h2>AUTHOR</h2>
  35. Soeren Gebbert, vTI/AK Braunschweig
  36. <p><i>Last changed: $Date$</i>