Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
        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;
            }
        }
Beispiel #3
0
        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();

            }
        }
Beispiel #4
0
        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;
            }
        }