Re: [gdal-dev] Shape datafile locked

2018-03-13 Thread Stephan Braeuer
Calling datasource.ReleaseResultSet(layer) did the trick. Thanks! From: Even Rouault [mailto:even.roua...@spatialys.com] Sent: Tuesday, March 13, 2018 6:12 PM To: gdal-dev@lists.osgeo.org Cc: Stephan Braeuer Subject: Re: [gdal-dev] Shape datafile locked On mardi 13 mars 2018 10:01:48 CET

Re: [gdal-dev] Shape datafile locked

2018-03-13 Thread Even Rouault
On mardi 13 mars 2018 10:01:48 CET Stephan Braeuer wrote: > I am using GDAL with c# and run into a problem deleting datasource files > after running ExecuteSQL. > The key here is that a datasource is opened implicitly via the JOIN > statement. An implicitly opened shapefile (here node3109.shp) rema

[gdal-dev] Shape datafile locked

2018-03-13 Thread Stephan Braeuer
I am using GDAL with c# and run into a problem deleting datasource files after running ExecuteSQL. The key here is that a datasource is opened implicitly via the JOIN statement. An implicitly opened shapefile (here node3109.shp) remains locked after the datasource has been closed. Opening the file