arcgis AE删除SDE featureClass数据

Posted 6小贤9

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了arcgis AE删除SDE featureClass数据相关的知识,希望对你有一定的参考价值。

//删除SDE图层
        public static bool DeleteSDELayer(ESRI.ArcGIS.Geodatabase.IWorkspace m_pWorkspace, string SDEDSname )
        {
            try
            {
                ESRI.ArcGIS.Geodatabase.IEnumDatasetName pEnumDsName = m_pWorkspace.get_DatasetNames(ESRI.ArcGIS.Geodatabase.esriDatasetType.esriDTFeatureClass);
                pEnumDsName.Reset();
                ESRI.ArcGIS.Geodatabase.IDatasetName pSDEDSname = pEnumDsName.Next();
                while (pSDEDSname != null)
                {
                    
                        if (pSDEDSname.Name.ToUpper().EndsWith(SDEDSname.ToUpper()))
                        {
                            break;
                        }
                    }
                    pSDEDSname = pEnumDsName.Next();
                }
                if (pSDEDSname != null)
                {
                    ESRI.ArcGIS.Geodatabase.IFeatureWorkspace pFWS = m_pWorkspace as ESRI.ArcGIS.Geodatabase.IFeatureWorkspace;
                    ESRI.ArcGIS.Geodatabase.IFeatureWorkspaceManage pFWSM;
                    pFWSM = (ESRI.ArcGIS.Geodatabase.IFeatureWorkspaceManage)pFWS;
                    pFWSM.DeleteByName(pSDEDSname);
                }
            }
            catch (Exception ex)
            {
                return false;
            }
            return true;
        }

以上是关于arcgis AE删除SDE featureClass数据的主要内容,如果未能解决你的问题,请参考以下文章

arcgis10.2 sde有post功能么

ArcGIS Engine连接ArcSDE SQL Server(获得所有SDE图层)

arcgis 10 版本连接SDE数据库报错:No ArcSDE server license found 最有效的解决方法

关于oracle创建ArcGIS空间数据库

ArcGIS ServerSDE许可更新

ArcGIS Server 标准化SQL查询、SQL注入问题的测试总结