<div dir="ltr">I was wondering about re-compiling GRASS7. I don't know if it is possible to compile it with the dbf connection as default. I think that would solve my problem. What do you think? Does it make any sense?<div style>
If so, can you point to a direction where I can start doing this?</div><div style><br></div><div style>Cheers,</div><div style>Levente</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/4 Markus Metz <span dir="ltr"><<a href="mailto:markus.metz.giswork@gmail.com" target="_blank">markus.metz.giswork@gmail.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">On Thu, Jul 4, 2013 at 8:07 AM, Levente Juhász <<a href="mailto:jlevente89@gmail.com">jlevente89@gmail.com</a>> wrote:<br>

> Thanks for the replies.<br>
> db.connect would do what I want, but I think my issue is a bit more tricky.<br>
> Actually, I use GRASS7 as a backend for some WPS processes, and as it seems<br>
> to me: every WPS process creates a temporary workspace. I may be able to run<br>
> v.db.connect via WPS, but it would have effect on a vector map (which is<br>
> also temporary), so it has nothing to do with the next process I want to<br>
> execute.<br>
> The reason I wish to use dbf driver instead of SQLite is the following:<br>
> There's a package called Geo-MHYDAS, which had a module m.definput [1]. This<br>
> module gives the error message: ERROR: Sorry, but only dbf driver accepted.<br>
> So that is why I want to find an "universal" solution.<br>
> Any thoughts?<br>
<br>
</div>Yes:<br>
<br>
db.connect driver=dbf database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/'<br>
<br>
which sets the default database connection to dbf. Note the difference<br>
between db.connect and v.db.connect. In your case, you would need to<br>
run db.connect immediately after the mapset is created, before any<br>
vector data are imported in the temporary mapset.<br>
<br>
HTH,<br>
<br>
Markus M<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Cheers,<br>
> Levente<br>
><br>
> [1]:<br>
> <a href="http://www.openfluid-project.org/resources/docs/mhydas/en/segmentation/html/m.definput.html" target="_blank">http://www.openfluid-project.org/resources/docs/mhydas/en/segmentation/html/m.definput.html</a><br>

><br>
><br>
> 2013/7/3 Hamish <<a href="mailto:hamish_b@yahoo.com">hamish_b@yahoo.com</a>><br>
>><br>
>> MarkusM:<br>
>><br>
>> > Note that the dbf/ subdirectory in the mapset must exist or must be<br>
>> > created by the user.<br>
>><br>
>> I think that usually it gets created as needed automatically. There<br>
>> may still be a few places it doesn't, if so file a ticket to fix..<br>
>> (did a long audit for that in grass6 some time ago, tested in grass7<br>
>> last week & it was automatically created as needed.)<br>
>><br>
>><br>
>> Hamish<br>
>><br>
><br>
</div></div></blockquote></div><br></div>