您的位置:首页 > 其它

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: