[GRASS-dev] Re: [GDAL] #2537: gdal.Open() and ogr.Open() GRASS data does not close projection files properly.

GDAL trac at osgeo.org
Mon Aug 25 17:34:05 EDT 2008


#2537: gdal.Open()  and ogr.Open() GRASS data does not close projection files
properly.
-------------------------+--------------------------------------------------
 Reporter:  cgsbob       |        Owner:  warmerdam
     Type:  defect       |       Status:  new      
 Priority:  normal       |    Milestone:           
Component:  GDAL_Raster  |      Version:  svn-trunk
 Severity:  critical     |   Resolution:           
 Keywords:  grass        |  
-------------------------+--------------------------------------------------
Comment (by glynn):

 Replying to [comment:11 cgsbob]:
 > Trying to find out why Tyler Mitchell's gdalogr_catalog (you can find it
 at http://code.google.com/p/spatialguru/wiki/SpatialDataCataloguingScript)
 was crashing when it was processing Grass data led me to finding this bug.
 With the latest patches, I've noticed that the projection files do not
 stay open, but the Grass vector files themselves seem to stay open (each
 vector has a coor and hist file opened multiple times).

 The OGR driver never calls Vect_close() on poMap.

 Although it's not clear from the documentation, I would guess that this
 should be done within the destructor for OGRGRASSDataSource.

-- 
Ticket URL: <http://trac.osgeo.org/gdal/ticket/2537#comment:13>
GDAL <http://trac.osgeo.org/gdal/>
Geospatial Data Abstraction Library is a translator library for raster and vector geospatial data formats.


More information about the grass-dev mailing list