Hi there<div>Regarding Hamish suggestion "<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><table cellspacing="0" cellpadding="0" border="0"><tbody><tr>
<td valign="top" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; font: inherit; "><div class="im" style="color: rgb(80, 0, 80); ">You need to run db.connect to select a database backend to use<br>
first. (There is no VAR file in the mapset yet)</div><div class="im" style="color: rgb(80, 0, 80); "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: arial; font-size: small; ">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?</span></div>
</td></tr></tbody></table></span></div><div><br></div><div>About</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(80, 0, 80); ">hopefully fixed & ready for testing in 6.5svn r42988 (v.edit).</span></div>
<div>Will it be available for 6.4 in Windows?</div><div>Thanks</div><div>Kim<br><div class="gmail_quote">2010/8/4 Markus Metz <span dir="ltr"><<a href="mailto:markus.metz.giswork@googlemail.com">markus.metz.giswork@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Hamish wrote:<br>
> Hamish wrote:<br>
>> You need to run db.connect to select a database backend to<br>
>> use first. (There is no VAR file in the mapset yet)<br>
><br>
> hopefully fixed & ready for testing in 6.5svn r42988 (v.edit).<br>
><br>
><br>
> devs:<br>
> maybe do this for 'v.in.ascii -e' and 'v.digit -n' too?<br>
> or move this into Vect_open_new() ?<br>
<br>
</div><div class="im">Not to Vect_open_new(), a GRASS vector does not need to have a DB<br>
connection, this is optional.<br>
<br>
Markus M<br>
<br>
<br>
</div><div class="im">... but I'm not totally<br>
> convinced that's the right place for it either; the mapset may<br>
> come from an earlier version of GRASS. perhaps db.execute<br>
> instead of exiting with an error.<br>
><br>
><br>
> #include <grass/dbmi.h><br>
> ...<br>
> if (! db_get_default_driver_name() ) {<br>
> G_message(_("Creating new DB connection based on default mapset settings..."));<br>
> db_set_default_connection();<br>
> }<br>
><br>
><br>
> see bug #7 <a href="http://trac.osgeo.org/grass/ticket/7" target="_blank">http://trac.osgeo.org/grass/ticket/7</a><br>
><br>
><br>
> Hamish<br>
><br>
><br>
><br>
><br>
><br>
</div><div><div></div><div class="h5">> _______________________________________________<br>
> grass-user mailing list<br>
> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
><br>
</div></div></blockquote></div><br></div></div>