Re: [GRASS-user] dbase driver in grass7
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? Cheers, Levente [1]: http://www.openfluid-project.org/resources/docs/mhydas/en/segmentation/html/m.definput.html 2013/7/3 Hamish hamis...@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 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] dbase driver in grass7
On Thu, Jul 4, 2013 at 8:07 AM, Levente Juhász jlevent...@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 hamis...@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 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] dbase driver in grass7
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 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] dbase driver in grass7
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.gisw...@gmail.com On Thu, Jul 4, 2013 at 8:07 AM, Levente Juhász jlevent...@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 hamis...@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 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] dbase driver in grass7
Levente wrote: I was wondering about re-compiling GRASS7. I don't know if it is possible to compile it with the dbf connection as default. see include/dbmi.h: #define DB_DEFAULT_DRIVER sqlite and include/temporal.h: #define TGISDB_DEFAULT_DRIVER sqlite change to dbf. I think that would solve my problem. What do you think? Does it make any sense? typically just running db.connect early on to set the default database for the mapset in the $MAPSET/VAR file is enough. (or pre-seed that VAR file into the new mapset dir yourself) Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] dbase driver in grass7
Hi, 2013/7/4 Hamish hamis...@yahoo.com Levente wrote: I was wondering about re-compiling GRASS7. I don't know if it is possible to compile it with the dbf connection as default. see include/dbmi.h: #define DB_DEFAULT_DRIVER sqlite and include/temporal.h: #define TGISDB_DEFAULT_DRIVER sqlite The TGISDB_DEFAULT_DRIVER can not be set to dbf. It works only with sqlite and postgresql (pg). But i am absolutely sure that you do not need to set the TGIS default driver. Best regards Soeren change to dbf. I think that would solve my problem. What do you think? Does it make any sense? typically just running db.connect early on to set the default database for the mapset in the $MAPSET/VAR file is enough. (or pre-seed that VAR file into the new mapset dir yourself) Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] dbase driver in grass7
Hi list, is it possible to use the old dbf driver instead of the new default sqlite driver in GRASS7? Thanks, Levente ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] dbase driver in grass7
On Wed, Jul 3, 2013 at 3:17 PM, Levente Juhász jlevent...@gmail.com wrote: Hi list, is it possible to use the old dbf driver instead of the new default sqlite driver in GRASS7? You can set the default database connection with db.connect, e.g. db.connect driver=dbf database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/' Note that the dbf/ subdirectory in the mapset must exist or must be created by the user. Markus M ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] dbase driver in grass7
Levente Juhász wrote: Hi list, Hi! is it possible to use the old dbf driver instead of the new default sqlite driver in GRASS7? I think its as easy as connecting to it, i.e. (from the manual) db.connect driver=dbf database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/' It was the default DB driver in earlier GRASS versions [0], including all series 6.x (I think... ?). Nowadays, that is in GRASS 7, the default driver is SQLite [1]. Best, Nikos --- [0] http://grass.osgeo.org/grass64/manuals/grass-dbf.html [1] http://grass.osgeo.org/grass70/manuals/grass-sqlite.html ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user