MapXtreme删除图层中某个对象
2013-06-20 16:57
239 查看
private void DelFenceInTable(Table table,String tableAlias,int id) { try { SearchInfo si = MapInfo.Data.SearchInfoFactory.SearchWhere(""); IResultSetFeatureCollection ifs; if (table != null) //Table exists close it { si = MapInfo.Data.SearchInfoFactory.SearchWhere(""); ifs = MapInfo.Engine.Session.Current.Catalog.Search(tableAlias, si); foreach (Feature ft in ifs) { string ID = ft["ID"].ToString(); if (ID == id.ToString()) { table.DeleteFeature(ft); break; } } table.Refresh(); } } catch (Exception ex) { ExceptionLog.Log("DelFenceInTable " + ex.ToString()); } }
相关文章推荐
- AUTOCAD二次开发-----删除一个图层里面的所有对象
- AUTOCAD二次开发-----删除一个图层里面的所有对象
- MapXtreme+ASP在图层上删除图元
- AutoCAD VBA 通过选择集 删除图层上所有对象和图层
- 在Javascript操作JSON对象,增加 删除 修改
- 使用Javascript动态增加,删除表格(使用DHTML对象模型)
- C#文件监控对象FileSystemWatcher实例,文件创建,修改,删除,重命名等
- 10-常用对象API(StringBuffer类-插入&删除&查找&修改)1 2 12-常用对象API(StringBuilder类) 1 2 13-常用对象API(StringBuilde
- RevitAPI: 如何获得链接CAD里面对象的图层信息?
- UITableView的实现过程,滑动,alter弹窗删除对象
- Mapxtreme 添加和删除图元并且添加一些自定义的属性
- JS中对象的循环删除问题
- 百度地图API入门——(7)添加或删除图层
- JPA无法删除对象【实际项目解决办法】
- JS动态添加与删除select中的Option对象
- List在执行remove方法不能删除指定的对象
- oracle 导入导出数据库、删除用户以及该用户所有的对象
- 保存数据库中其他对象不变,删除数据库中所有数据的实现方法
- VC环境中MapX一次删除图层所有图元
- 删除js对象的空字段