ArcEngine判断要素或者要素集在数据库中是否存在
使用IWorkspace2接口中的NameExists方法来进行判断
public void judgeExitsts(IWorkspace SDEWorkspace,string name)
{
IWorkspace2 workspace = SDEWorkspace as IWorkspace2
if(!workspace.NameExists[esriDatasetType.esriDTFeatureDataset, name])
{
//不存在需要进行的操作~~~~
}
原创
2021-08-11 15:19:38 ·
489 阅读 ·
0 评论