mapx 删除所有图元
2007-12-22 15:38
316 查看
void CAMHiliteLayer::RemoveAll()
{
BeginAccess(miAccessReadWrite);
CMapXFeatures fs = AllFeatures();
for (long nItem=1; nItem<=fs.GetCount(); nItem++)
DeleteFeature(fs.Item(nItem).GetFeatureKey());
EndAccess();
}
如果觉得这样很慢,那么
Maybe you make an empty copy of the layer using the feature Rowset structure and than exchange the old layer by the new created one.
{
BeginAccess(miAccessReadWrite);
CMapXFeatures fs = AllFeatures();
for (long nItem=1; nItem<=fs.GetCount(); nItem++)
DeleteFeature(fs.Item(nItem).GetFeatureKey());
EndAccess();
}
如果觉得这样很慢,那么
Maybe you make an empty copy of the layer using the feature Rowset structure and than exchange the old layer by the new created one.
相关文章推荐
- VC环境中MapX一次删除图层所有图元
- VC环境中MapX一次删除图层所有图元
- C#中应用Mapx删除图元并紧缩表
- 华为机试-删除字符串中所有给定的子串
- 删除所有.svn目录
- 用java删除文件夹里的所有文件
- mac 删除文件夹里所有的.svn文件
- 关于删除文件夹下所有文件的部分文件无法删除的情况
- ThinkPHP清除缓存/删除文件夹下所有文件
- java 删除文件夹中的所有内容而不删除文件夹本身的实例
- Javascript 5种方法实现过滤删除前后所有空格
- Lua文件夹及文件操作(清空文件夹下所有文件、创建多级文件夹、删除文件夹所有文件等)
- 如何删除文件及文件夹下的所有文件 vb
- java单个文件复制,递归删除、复制目录下所有内容,递归创建文件夹,.7z文件解压等
- 删除文件夹内所有文件
- 删除制定目录下的所有文件(.txt)
- mac 系统下删除目录的所有.svn文件
- Shell中删除某些文件外所有文件的3个方法
- Oracle删除当前用户的所有对象(表、视图、触发器、存储过程、函数)
- jquery实现删除一个元素后面的所有元素功能