[GRASS-dev] Re: [GRASS GIS] #1358: WinGRASS 6.4.1: SQLite driver errors: `Unable to open database'

GRASS GIS trac at osgeo.org
Thu Dec 1 01:36:16 EST 2011

#1358: WinGRASS 6.4.1: SQLite driver errors: `Unable to open database'
 Reporter:  rvanderweide             |       Owner:  grass-dev@…              
     Type:  defect                   |      Status:  new                      
 Priority:  critical                 |   Milestone:  6.4.2                    
Component:  Database                 |     Version:  6.4.1 RCs                
 Keywords:  wingrass, SQLite driver  |    Platform:  MSWindows 7              
      Cpu:  x86-64                   |  

Comment(by hamish):

 Replying to [comment:3 mmetz]:
 > This is most probably a SQLite problem because the database is
 > in the same folder like the shapefile to be imported. Files in
 > this folder are opened by OGR, after that sqlite tries to create
 > a new database in that folder but does not have exclusive rights
 > on that folder because other files in that folder are opened.

 so does OGR hold open ''all'' files in the dir, even unrelated filenames
 to the shapefile layer? how about same layer name but .sqlite or .db
 extension? (ie unknown to the shapefile format)
 I would not think that you could fopen() a dir in Windows, holding the
 rest of the dir hostage.

 can anyone reproduce this?


Ticket URL: <https://trac.osgeo.org/grass/ticket/1358#comment:5>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list