[GRASS-dev] [GRASS GIS] #2147: db.databases not working in GRASS 7

GRASS GIS trac at osgeo.org
Tue Jul 22 10:13:39 PDT 2014


#2147: db.databases not working in GRASS 7
----------------------------------+-----------------------------------------
 Reporter:  cmbarton              |       Owner:  grass-dev@…              
     Type:  defect                |      Status:  new                      
 Priority:  normal                |   Milestone:  7.0.0                    
Component:  Database              |     Version:  svn-trunk                
 Keywords:  db.databases, sqlite  |    Platform:  All                      
      Cpu:  OSX/Intel             |  
----------------------------------+-----------------------------------------

Comment(by cmbarton):

 I just checked and the behavior is the same as I originally reported. I've
 run this from a mapset in my nc_spm_08 location that has a functioning
 SQLITE database. That is, this mapset has vectors connected to an SQLITE
 database that is working correctly. Yet I still get:

 {{{

 db.databases location=nc_spm_08nc_spm_08
 dbmi: db_list_databases() not implemented
 dbmi: db_list_databases() not implemented
 ERROR: Unable to list databases. Try to define correct connection settings
        by db.login.

 }}}

 The manual defines "location" as follows:

 "Default location for SQLite driver is the full path for the current
 mapset. For PostgreSQL driver it's empty connection string. "

 This is NOT standard usage of the word "location" in GRASS. Nonetheless,
 it doesn't seem to work when I put in the proper pathname either.

 {{{

 db.databases location=$GISDBASE/$LOCATION_NAME/$MAPSET
 dbmi: db_list_databases() not implemented
 dbmi: db_list_databases() not implemented
 ERROR: Unable to list databases. Try to define correct connection settings
        by db.login.

 }}}

 Same thing happens if I specify the path to the SQLite database itself:

 {{{

 db.databases location=$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db
 dbmi: db_list_databases() not implemented
 dbmi: db_list_databases() not implemented
 ERROR: Unable to list databases. Try to define correct connection settings
        by db.login.

 }}}

 Maybe the command is no longer relevant. If it doesn't work, maybe it
 should be dropped from the distribution.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2147#comment:11>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list