[GRASS-dev] [GRASS GIS] #2693: Error with SQLite path update after moving grass data

GRASS GIS trac at osgeo.org
Thu Jun 11 07:10:25 PDT 2015


#2693: Error with SQLite path update after moving grass data
------------------------------------------+-------------------------
 Reporter:  ffxi                          |      Owner:  grass-dev@…
     Type:  defect                        |     Status:  new
 Priority:  normal                        |  Milestone:  7.0.1
Component:  Default                       |    Version:  7.0.0
 Keywords:  sqlite update path move data  |        CPU:  x86-64
 Platform:  Linux                         |
------------------------------------------+-------------------------
 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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2693>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list