laptop and a wrench

漏洞

"IWorkspace::get_DatasetNames(esriDatasetType.esriDTAny)" fails to list FeatureClasses that are inside FeatureDatasets.

上次发布: October 6, 2017 ArcGIS for Desktop
漏洞 ID 编号 NIM060535
已提交August 25, 2010
上次修改时间June 5, 2024
适用范围ArcGIS for Desktop
找到的版本10.0
编程语言C#
操作系统Windows OS
操作系统版本XP
状态Will Not Be Addressed

附加信息

This defect was submitted for a release of ArcGIS that is no longer supported. If this is still an issue in a supported release, please contact Technical Support.

解决办法

Use one of the below two procedures to access FeatureClasses which are inside FeatureDatasets. Procedure 1: Use "IFeatureWorkspace::OpenFeatureClass("<Name of FeatureClass>")" Procedure 2: Use the "GeoProcessor" class. Sample Code: ESRI.ArcGIS.Geoprocessor.Geoprocessor GP = new ESRI.ArcGIS.Geoprocessor.Geoprocessor(); // Set the input workspace environment and list all FeatureClasses And FeatureDatasets. GP.SetEnvironmentValue("workspace", "….\Connection to csslsystem-146.sde"); string strDSetName = ""; string strFCName = ""; ESRI.ArcGIS.Geoprocessing.IGpEnumList FDSets = GP.ListDatasets("*", ""); if ((FDSets != null)) { FDSets.Reset(); strDSetName = FDSets.Next(); while (!string.IsNullOrEmpty(strDSetName)) { MessageBox.Show("Dataset : " + strDSetName); ESRI.ArcGIS.Geoprocessing.IGpEnumList shapefiles = GP.ListFeatureClasses("*", "", strDSetName); if ((shapefiles != null)) { shapefiles.Reset(); strFCName = shapefiles.Next; while (!string.IsNullOrEmpty(strFCName)) { MessageBox.Show("Dataset : " + strDSetName + " - FeatureClass : " + strFCName); strFCName = shapefiles.Next; } } } } ESRI.ArcGIS.Geoprocessing.IGpEnumList shapefiles2 = GP.ListFeatureClasses("*", "", strDSetName); if ((shapefiles2 != null)) { shapefiles2.Reset(); strFCName = shapefiles2.Next; while (!string.IsNullOrEmpty(strFCName)) { MessageBox.Show("Standalone FeatureClass : " + strFCName); strFCName = shapefiles2.Next; } }

重现步骤

漏洞 ID: NIM060535

软件:

  • ArcGIS for Desktop

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项