private void DeleteFeature(IFeatureClassProxy PFeatureclass,String sql)
{
try {
IQueryFilter pQueryFilter = new QueryFilter();
pQueryFilter.setWhereClause(sql);// = "objectID<=" + DeleteNum;
ITable pTable = (ITable)PFeatureclass;
pTable.deleteSearchedRows(pQueryFilter);
com.esri.arcgis.interop.Cleaner.release(pQueryFilter);
} catch (UnknownHostException e) {
// TODO 自动生成的 catch 块
e.printStackTrace();
} catch (IOException e) {
// TODO 自动生成的 catch 块
e.printStackTrace();
}
}
AE for java批量删除数据,并且释放游标
最新推荐文章于 2021-03-11 10:16:02 发布