<div dir="ltr"><br><br>On Mon, Jul 2, 2018 at 2:00 PM, Paul Shapley <<a href="mailto:p.shapley@gmail.com">p.shapley@gmail.com</a>> wrote:<br>><br>> Hi Users,<br>><br><div>> I want to use 'r.to.vect' but it seems to default to a 'Postgis' table that has no geometry column just a table with a 'cat' id. I would like to export to 'sqlite'. I have both postgres an sqlite login details stored in 'db.login'. How do i switch between the two or at least make sqlite the default? If I change settings with 'db.connect' to 'sqlite' <br></div><div><br></div><div>what is the exact command you used to set the default connection to sqlite?</div><div><br></div><div>You can also try db.connect -d, otherwise you might need to specify the default database to be used.</div><div><br></div><div>In any case, please verify first with db.connect -p to see the connection details used when creating a new vector.</div><div><br></div><div>Markus M<br></div><div><br></div><div>> it fails (error below) but still keeps holding onto the 'grass_gis' schema form the Postgis connection!</div>><br>> r.to.vect input=APGB_aerial_2_i_segment_drained_peat_with_exposed_haggs@PERMANENT output=test1 type=area<br>> DBMI-SQLite driver error:<br>> Error in sqlite3_prepare():<br>> unknown database grass_gis<br>> DBMI-SQLite driver error:<br>> Error in sqlite3_prepare():<br>> unknown database grass_gis<br>> ERROR: Unable to create table: create table grass_gis.test1 ( cat integer, value integer, label varchar(10))<br>> WARNING: Table <grass_gis.test1> linked to vector map <test1> does not exist<br>><br>> Is there a preferred option to change databases more cleanly.<br>><br>> Many thanks,<br>><br>><br>> --<br>> Paul J. Shapley MSc CGeog (GIS) FRGS<br>><br>><br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br><br></div>