You need to run db.connect to select a database backend to
use first. (There is no VAR file in the mapset yet)
hopefully fixed & ready for testing in 6.5svn r42988 (v.edit).
devs:
maybe do this for 'v.in.ascii -e' and 'v.digit -n' too?
or move this into Vect_open_new() ? ... but I'm not totally
convinced that's the right place for it either; the mapset may
come from an earlier version of GRASS. perhaps db.execute
instead of exiting with an error.
#include <grass/dbmi.h>
...
if (! db_get_default_driver_name() ) {
G_message(_("Creating new DB connection based on default mapset settings..."));
db_set_default_connection();
}
You need to run db.connect to select a database backend to
use first. (There is no VAR file in the mapset yet)
hopefully fixed & ready for testing in 6.5svn r42988 (v.edit).
devs:
maybe do this for 'v.in.ascii -e' and 'v.digit -n' too?
or move this into Vect_open_new() ?
Not to Vect_open_new(), a GRASS vector does not need to have a DB
connection, this is optional.
Markus M
... but I'm not totally
convinced that's the right place for it either; the mapset may
come from an earlier version of GRASS. perhaps db.execute
instead of exiting with an error.
#include <grass/dbmi.h>
...
if (! db_get_default_driver_name() ) {
G_message(_("Creating new DB connection based on default mapset settings..."));
db_set_default_connection();
}
You need to run db.connect to select a database backend to use first. (There is no VAR file in the mapset yet) The thing is: I have been using an WinGRASS6.4 binary version where I didn’t need to do anything else. Just create Vector by doing this. So, my question is, why was this disabled? Or is it some error that only occurs in this release?
About
hopefully fixed & ready for testing in 6.5svn r42988 (v.edit).
Will it be available for 6.4 in Windows?
Thanks
Kim
You need to run db.connect to select a database backend to
use first. (There is no VAR file in the mapset yet)
hopefully fixed & ready for testing in 6.5svn r42988 (v.edit).
devs:
maybe do this for ‘v.in.ascii -e’ and ‘v.digit -n’ too?
or move this into Vect_open_new() ?
Not to Vect_open_new(), a GRASS vector does not need to have a DB
connection, this is optional.
Markus M
… but I’m not totally
convinced that’s the right place for it either; the mapset may
come from an earlier version of GRASS. perhaps db.execute
instead of exiting with an error.
#include <grass/dbmi.h>
…
if (! db_get_default_driver_name() ) {
G_message(_(“Creating new DB connection based on default mapset settings…”));
db_set_default_connection();
}