[Gdal-dev] OGRShapeDriver::CreateDataSource

Radim Blazek radim.blazek at gmail.com
Wed Mar 22 07:08:43 EST 2006


OGRShapeDriver::CreateDataSource tests first if the
given datasource exists and if it is a directory and then
if it has shp/dbf extension.
It fails if a datasource name has shp extension (file)
and the file already exists.
I think that the test order should be reverted,
first check extension and then according to result test file or dir.

Does a solution exist to overwrite existing file specified as DSN
with current version of OGR?

Radim




More information about the Gdal-dev mailing list