[GRASS-dev] [GRASS GIS] #680: Wrong database driver (dbf instead of sqlite) for showing attribute table with tcltk gui

#680: Wrong database driver (dbf instead of sqlite) for showing attribute table
with tcltk gui
---------------------------------------+------------------------------------
Reporter: marmai | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: Tcl | Version: 6.4.0 RCs
Keywords: tcltk gui database driver | Platform: Linux
      Cpu: Unspecified |
---------------------------------------+------------------------------------
I think within the tcltk gui there is a problem when using another
database than dbf.

Within the nc dataset I opened the sqlite mapset and copied the
geology map to the splite mapset with:

~> g.copy vect=geology@PERMANENT,geology

Now there should be the geology map with the sqlite database.
Then I tried to show the attribute table of the geology map by using the
tcl/tk GUI (the button in the lower part of the GIS Manager window). By
clicking the button 'Show attribute data' the following command is sent
to the GIS.m window:

db.select table=geology
database=/home/martin/GISDataBase/nc_spm_08/sqlite/sqlite.db driver=dbf

Note the driver option! This command fails with the error:

Cannot open dbf database:
/home/martin/GISDataBase/nc_spm_08/sqlite/sqlite.db

By correcting the driver option to sqlite everything works fine.
By the way: v.db.connect -p geology shows the correct sqlite driver.

I am working with the 6.4.0RC4 (from:
http://download.opensuse.org/repositories/Application:/Geo/openSUSE_10.3)
at OpenSuse 10.3 system.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/680&gt;
GRASS GIS <http://grass.osgeo.org>

#680: Wrong database driver (dbf instead of sqlite) for showing attribute table
with tcltk gui
---------------------+------------------------------------------------------
  Reporter: marmai | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.4.0
Component: Tcl | Version: 6.4.0 RCs
Resolution: | Keywords: tcltk gui database driver
  Platform: Linux | Cpu: Unspecified
---------------------+------------------------------------------------------
Comment (by frankie):

This seems already reported as #602

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/680#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#680: Wrong database driver (dbf instead of sqlite) for showing attribute table
with tcltk gui
---------------------+------------------------------------------------------
  Reporter: marmai | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.4.0
Component: Tcl | Version: 6.4.0 RCs
Resolution: | Keywords: tcltk gui database driver
  Platform: Linux | Cpu: Unspecified
---------------------+------------------------------------------------------
Comment (by marmai):

Replying to [comment:1 frankie]:
> This seems already reported as #602

Yes, seems to be the same problem. Sorry, I have not found that bug report
(#602), before filing this report.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/680#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#680: Wrong database driver (dbf instead of sqlite) for showing attribute table
with tcltk gui
------------------------+---------------------------------------------------
  Reporter: marmai | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.0
Component: Tcl | Version: 6.4.0 RCs
Resolution: duplicate | Keywords: tcltk gui database driver
  Platform: Linux | Cpu: Unspecified
------------------------+---------------------------------------------------
Changes (by martinl):

  * status: new => closed
  * resolution: => duplicate

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/680#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>