Re: [gdal-dev] Attempt to delete layer fails - table locked

2017-09-18 Thread Even Rouault
Nik, You didn't mention which GDAL version you use, and the file format (from the error message, I presume it is GeoPackage) I didn't manage to reproduce with trunk, 2.2 or 2.1 or even 2.0 and the following actions: $ ogr2ogr -f gpkg poly.gpkg poly.shp $ python from osgeo import ogr ds = ogr.

[gdal-dev] Attempt to delete layer fails - table locked

2017-09-17 Thread Nik Sands
Hi Dev list, I’m attempting to delete a layer using OGR_DS_DeleteLayer(), however, it results in errors like: ERROR 1: sqlite3_exec(DROP TABLE "rtree_Track_2017_09_18_12_41_03_Line_geom") failed: database table is locked ERROR 1: sqlite3_exec(DROP TABLE 'Track_2017_09_18_12_41_03_Line') failed: