Re: [GRASS-dev] db.copy gives error

2020-03-14 Thread Markus Metz
On Sat, Mar 14, 2020 at 3:27 PM Paulo van Breugel 
wrote:
>
> Dear devs,
>
> I have a grassgis database with in the mapset 'Permanent' a table
> 'vegetation_lookup'. I want top copy this table to the current mapset.
> The following used to work I think, but now gives me some errors:
>
> db.copy from_driver=sqlite
> from_database=/media/grassdb/biodiv/PERMANENT/sqlite/sqlite.db
> from_table=vegetation_lookup to_driver=sqlite
> to_database=$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db
> to_table=vegetation_lookup

Looking at the code of db.copy, it is not possible that this ever worked,
you need to replace the variables with their actual values.

Markus M
>
> ERROR: Unable to create directory '///sqlite' for sqlite database
> dbmi: Protocol error
> WARNING: Unable to open database  by driver 
>
> Any idea what I am doing wrong here?
>
> With kind regards,
>
> Paulo
> ___
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] db.copy gives error

2020-03-14 Thread Paulo van Breugel
Dear devs,

I have a grassgis database with in the mapset 'Permanent' a table
'vegetation_lookup'. I want top copy this table to the current mapset.
The following used to work I think, but now gives me some errors:

db.copy from_driver=sqlite
from_database=/media/grassdb/biodiv/PERMANENT/sqlite/sqlite.db
from_table=vegetation_lookup to_driver=sqlite
to_database=$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db
to_table=vegetation_lookup

ERROR: Unable to create directory '///sqlite' for sqlite database
dbmi: Protocol error
WARNING: Unable to open database  by driver 

Any idea what I am doing wrong here?

With kind regards,

Paulo
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev