[GRASS-user] database(s) in grass
Ricardo Oliveira
autopilot at oniduo.pt
Thu Apr 12 03:38:52 EDT 2007
On Wed, 11 Apr 2007 20:20:26 +0200
Markus Neteler <neteler at itc.it> wrote:
> I assume that your table is lacking an integer column "cat".
> Please tell us how you launched the v.digit command.
>
> Unrelated:
> The _grass_internal_database_encoding was fixed recently, it now
> depends on this GRASS version you use.
v.digit -n map
> Generally you don't need to generate the basedados.db database if you
> want to create a new map - GRASS will do this for you. It is best to
> follow this approach:
>
> # example for storing DB in mapset directory (keep single quotes):
> db.connect driver=sqlite
> database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db' db.connect -p
>
> This will put the file sqlite.db (or however you name it) into
> the related mapset directory. The single quotes prevent from expanding
> the variable names. GRASS internally substitutes these variables to
> the correct path (which you can verify with g.gisenv)
I have tried versions 6.2.1 and devel and none of them creates the
file...
>
> Suggestion:
>
> 1. do
>
> # example for storing DB in mapset directory (keep single quotes):
> db.connect driver=sqlite
> database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db' db.connect -p
Using this approach the result is: "no such file"
> 2. do
>
> v.digit -n newmap
>
> Then go into the settings dialog and define the table columns.
> This will create in this moment to sqlite database file and the
> new table linked to 'newmap'. Then digitize...
> Markus
Thanks :)
More information about the grass-user
mailing list