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

Nik Sands nik at nixanz.com
Sun Sep 17 19:50:42 PDT 2017


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: database table is locked

I presume that this is because recently new features were added to the layer and it is still considered open/locked.

What is the correct way to release locks so that I can then delete the layer?

Cheers,
Nik.

========================================================
NIK SANDS
Line Tamer | Time Traveller | Space Cadet



More information about the gdal-dev mailing list