B3Partners / datastorelinker.old

B3P GIS Suite ETL tooling
https://b3partners.github.io/datastorelinker/
1 stars 1 forks source link

close the featureIterator after sampling a feature #31

Closed mvdstruijk closed 6 years ago

mvdstruijk commented 6 years ago

otherwise the datastore for a shapefile is not correctly closed..

If the iterator is not closed geotools holds a lock on the file:

[Finalizer] ERROR org.geotools.data.shapefile - The following locker still has a lock: read on file:/home/martijn/apps/datastorelinker_upload/airportheli/airportheliport.shp by org.geotools.data.shapefile.shp.ShapefileReader