标题: geotools报错:The following locker still has a lock [打印本页] 作者: 饭宝 时间: 2022-8-9 14:41 标题: geotools报错:The following locker still has a lock 由于粗心在建立了shpdatastore创建之后,没有关闭,导致了上述的错误。
//shp文件的读取
ShapefileDataStore shpDataStore = null;
File shpfile = new File(shppath);
shpDataStore = new ShapefileDataStore(shpfile.toURI().toURL());