[GRASS-user] dbase driver in grass7

Levente Juhász jlevente89 at gmail.com
Thu Jul 4 03:22:12 PDT 2013


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?
If so, can you point to a direction where I can start doing this?

Cheers,
Levente


2013/7/4 Markus Metz <markus.metz.giswork at gmail.com>

> On Thu, Jul 4, 2013 at 8:07 AM, Levente Juhász <jlevente89 at gmail.com>
> wrote:
> > Thanks for the replies.
> > db.connect would do what I want, but I think my issue is a bit more
> tricky.
> > Actually, I use GRASS7 as a backend for some WPS processes, and as it
> seems
> > to me: every WPS process creates a temporary workspace. I may be able to
> run
> > v.db.connect via WPS, but it would have effect on a vector map (which is
> > also temporary), so it has nothing to do with the next process I want to
> > execute.
> > The reason I wish to use dbf driver instead of SQLite is the following:
> > There's a package called Geo-MHYDAS, which had a module m.definput [1].
> This
> > module gives the error message: ERROR: Sorry, but only dbf driver
> accepted.
> > So that is why I want to find an "universal" solution.
> > Any thoughts?
>
> Yes:
>
> db.connect driver=dbf database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/'
>
> which sets the default database connection to dbf. Note the difference
> between db.connect and v.db.connect. In your case, you would need to
> run db.connect immediately after the mapset is created, before any
> vector data are imported in the temporary mapset.
>
> HTH,
>
> Markus M
>
> >
> > Cheers,
> > Levente
> >
> > [1]:
> >
> http://www.openfluid-project.org/resources/docs/mhydas/en/segmentation/html/m.definput.html
> >
> >
> > 2013/7/3 Hamish <hamish_b at yahoo.com>
> >>
> >> MarkusM:
> >>
> >> > Note that the dbf/ subdirectory in the mapset must exist or must be
> >> > created by the user.
> >>
> >> I think that usually it gets created as needed automatically. There
> >> may still be a few places it doesn't, if so file a ticket to fix..
> >> (did a long audit for that in grass6 some time ago, tested in grass7
> >> last week & it was automatically created as needed.)
> >>
> >>
> >> Hamish
> >>
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130704/c2b91ca6/attachment-0001.html>


More information about the grass-user mailing list