public IGpEnumList listDatasetsFGDB(IGeoProcessor iGeoProcessor) { try { // List all TIFF files in the workspace and build pyramids. iGeoProcessor.SetEnvironmentValue("workspace", @"E:\gisdata\FM\GIS\mewasco\datasource\MERU.gdb"); IGpEnumList datasets = iGeoProcessor.ListDatasets("*", "All"); return datasets; } catch (Exception) { throw; } }
public IGpEnumList listDatasets(IGeoProcessor iGeoProcessor) { try { // List all TIFF files in the workspace and build pyramids. iGeoProcessor.SetEnvironmentValue("workspace", getSetIWorkspace.ToString()); IGpEnumList datasets = iGeoProcessor.ListDatasets("*", "Feature"); return datasets; } catch (Exception ex) { throw ex; } }