[GRASS-dev] [GRASS GIS] #2147: db.databases not working in GRASS 7
GRASS GIS
trac at osgeo.org
Sun Dec 22 14:49:05 PST 2013
#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 neteler):
Replying to [comment:5 martinl]:
> Replying to [comment:4 neteler]:
...
> {{{
> > GRASS 7.0.svn (nc_spm_08):~ > db.databases
> > D1/1: db_d_init_error(): SQLite
> > D1/1: db count = 0
> > No databases found
> }}}
>
> The command
> {{{
> db.connect -d
> D1/1: Creating new default DB params with db_set_default_connection()
> Default driver / database set to:
> driver: sqlite
> database: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db
> }}}
>
> doesn't create database, so `db.databases` doesn't list any
> database. You need to run command which writes attribute data
> to the database.
Good point.
Maybe "db.connect -d" should create the (empty) sqlite.db file to
avoid user confusion.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2147#comment:6>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list