id summary reporter owner description type status priority milestone component version severity resolution keywords cc 2259 OGRSFDriver.Open methods do not always call DataSource.SetDriver Ari Jolma warmerdam "For example Open() in ogrshapedriver.cpp does not call poDS-SetDriver nor it is done in OGR_Dr_Open in ogrsfdriver.cpp. This leaves the driver undefined for datasources opened in this way. Open in ogrsfdriverregistrar.cpp works ok as it sets poDS->m_poDriver = poDriver; I haven't checked all drivers, at least shapefile driver is buggy in this respect. Fixing this in OGR_Dr_Open would fix it only for the C API, but perhaps that would be enough? " defect closed normal 1.5.1 OGR_SF unspecified normal fixed driver