[GRASS-user] Database question

Achim Kisseler ak7 at jupiter.uni-freiburg.de
Mon Oct 25 14:30:13 EDT 2010


Hi,

try "v.db.reconnect.all" or "v.db.connect" for single vector layers.

Achim

Am 25.10.2010 18:54, schrieb Adam Dershowitz, Ph.D., P.E.:
> This seems like it must be really easy and I am just missing something....
> I have a project but I accidentally created the sqlite database file in the wrong location.
> So, all of my project files are in one directory, but, in my home directory I have a file sqlite.db.
>
> I just moving that file to where I want it.  Then I did:
> db.connect driver=sqlite database=/NewLocation/test.db
>
> Now if I do db.connect -p I see the correct path, but if I try to access a vector that uses that database I get an error "No such table".
> If I move the file back to the old location then the error goes away, even if I don't use db.connect to point to the other location.  So, I am just missing something about how to have grass know the correct location of a database.
> If I just move the file, how can I get the vector map to "know" the correct file to use, since db.connect is not doing the job?
>
> Thanks.
>
> --Adam
>
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list