Opened 9 years ago

Closed 5 years ago

#2693 closed defect (fixed)

Error with SQLite path update after moving grass data

Reported by: ffxi Owned by: grass-dev@…
Priority: normal Milestone: 7.6.0
Component: Default Version: 7.0.0
Keywords: sqlite update path move data Cc:
CPU: x86-64 Platform: Linux

Description

The Sqlite path is not completely updated after moving/renaming data :

Eg. /home/test/oldPath -> /home/test/newPath

At every grass init, I use "db.connect" to connect to the correct DB, using

"$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db"

When I type the command like :

v.info map="my_map"

The correct database path is returned : /home/test/newPath

When I type :

db.describe table="my_map"

I've got the right description.

But when I use a command like :

g.copy map=my_vector,tmp_vector

or

v.out.ogr input="my_map" output=/home/testShape format=ESRI_Shapefile

A SQLITE error mentioning the old path is returned: ERROR: Unable to open database < /home/test/oldPath >

$ grass70 --version GRASS GIS 7.0.0

OS : mac os 10.10.3 and Ubuntu 14.04

Grass installed using : Mac: [homebrew](https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/Formula/grass-70.rb) Ubuntu : compiled from source.

Thanks, and sorry if this is a duplicate, i did not found a similar ticket.

Change History (8)

comment:1 by neteler, 9 years ago

Milestone: 7.0.17.0.2

Ticket retargeted after 7.0.1 milestone closed

comment:2 by neteler, 8 years ago

Milestone: 7.0.27.0.3

Ticket retargeted after milestone closed

comment:3 by neteler, 8 years ago

Milestone: 7.0.3

Ticket retargeted after milestone closed

comment:4 by neteler, 8 years ago

Milestone: 7.0.4

Ticket retargeted after 7.0.3 milestone closed

comment:5 by martinl, 8 years ago

Milestone: 7.0.47.0.5

comment:6 by neteler, 8 years ago

Milestone: 7.0.57.0.6

comment:7 by neteler, 6 years ago

Milestone: 7.0.67.0.7

comment:8 by martinl, 5 years ago

Milestone: 7.0.77.6.0
Resolution: fixed
Status: newclosed

Unable to reproduce (with GRASS 7.6.0).

Note: See TracTickets for help on using tickets.