[GRASS-dev] Re: [GRASS-user] Error while creating vectorial file in WinGRASS

Kim Besson kimbesson1981 at gmail.com
Wed Aug 4 04:52:46 EDT 2010


Hi there
Regarding Hamish suggestion "
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
2010/8/4 Markus Metz <markus.metz.giswork at googlemail.com>

> Hamish wrote:
> > Hamish wrote:
> >> 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();
> >  }
> >
> >
> > see bug #7  http://trac.osgeo.org/grass/ticket/7
> >
> >
> > Hamish
> >
> >
> >
> >
> >
> > _______________________________________________
> > grass-user mailing list
> > grass-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/grass-user
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20100804/ce65dd28/attachment-0001.html


More information about the grass-dev mailing list