[GRASS-user] dbase driver in grass7
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?
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>
> > Thanks for the replies.
> > db.connect would do what I want, but I think my issue is a bit more
> > Actually, I use GRASS7 as a backend for some WPS processes, and as it
> > to me: every WPS process creates a temporary workspace. I may be able to
> > 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 .
> > module gives the error message: ERROR: Sorry, but only dbf driver
> > So that is why I want to find an "universal" solution.
> > Any thoughts?
> 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.
> Markus M
> > Cheers,
> > Levente
> > :
> > 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...
More information about the grass-user