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; } }
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 void listFeatureClasses(IGeoProcessor iGeoProcessor) { // List all feature classes in the workspace starting with d. iGeoProcessor.SetEnvironmentValue("workspace", @"C:\Uc2003\Portland_OR.gdb"); IGpEnumList fcs = iGeoProcessor.ListFeatureClasses("d*", "", ""); string fc = fcs.Next(); while (fc != "") { Console.WriteLine(fc); fc = fcs.Next(); } }
public IGpEnumList listFeatureClassesFGDB(IGeoProcessor iGeoProcessor,string dataset) { try { // List all feature classes in the workspace starting with d. iGeoProcessor.SetEnvironmentValue("workspace", @"E:\gisdata\FM\GIS\mewasco\datasource\MERU.gdb"); IGpEnumList fcs = iGeoProcessor.ListFeatureClasses("*", "", dataset); return fcs; } catch (Exception) { throw; } }