[GRASS-user] grass default db driver

Hamish hamish_b at yahoo.com
Thu Apr 4 13:24:25 PDT 2013


Hamish wrote:
> > #define DB_DEFAULT_DRIVER "dbf"
> >  to be
> > #define DB_DEFAULT_DRIVER "sqlite"

Vincent wrote:
> I'll give it a try.
> Is this statement sufficient to turn db-file sub-directory
> name to :
> $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db ?

the function that sets up the driver connection looks at the
driver name defined above, and adjusts the db file path as
needed, automatically.

see db_set_default_connection() in lib/db/dbmi_base/default_name.c


Hamish


More information about the grass-user mailing list