Beispiel #1
0
        public override List <Dataset> GetChildren()
        {
            // Create Dataset List
            List <Dataset> datasets = new List <Dataset>();

            // Get Model
            EsriModel model = (EsriModel)base.Container;

            // Create Navigation
            Navigate navigate = model.Navigate;

            navigate.Start = this;
            Elements elements = navigate.Children();

            // Export Children
            foreach (Element element in elements.Values)
            {
                if (element is Dataset)
                {
                    Dataset dataset = (Dataset)element;
                    if (dataset.GetType() == typeof(FeatureClass) ||
                        dataset.GetType() == typeof(RelationshipClass) ||
                        dataset.GetType() == typeof(GeometricNetwork) ||
                        dataset.GetType() == typeof(Network) ||
                        dataset.GetType() == typeof(Topology) ||
                        dataset.GetType() == typeof(Terrain))
                    {
                    }
                    datasets.Add(dataset);
                }
            }

            // Return List
            return(datasets);
        }
Beispiel #2
0
        public override List <Dataset> GetChildren()
        {
            // Create Dataset List
            List <Dataset> datasets = new List <Dataset>();

            // Get Model
            EsriModel model = (EsriModel)base.Container;

            // Create Navigation
            Navigate navigate = model.Navigate;

            navigate.Start = this;
            Elements elements = navigate.Children();

            // Export Children
            foreach (Element element in elements.Values)
            {
                if (element is Dataset)
                {
                    Dataset dataset = (Dataset)element;
                    if (dataset.GetType() == typeof(RasterBand))
                    {
                        datasets.Add(dataset);
                    }
                }
            }

            // Return List
            return(datasets);
        }
        public List <Subtype> GetSubtypes()
        {
            // Create Subtype List
            List <Subtype> subtypes = new List <Subtype>();

            // Get Model
            if (base.Container == null)
            {
                return(subtypes);
            }
            EsriModel model = (EsriModel)base.Container;

            // Get Navigator
            Navigate navigate = model.Navigate;

            navigate.Start = this;

            // Get Child Subtypes
            Elements elements = navigate.Children(1);

            foreach (Element element in elements.Values)
            {
                if (element is Subtype)
                {
                    Subtype subtype = (Subtype)element;
                    subtypes.Add(subtype);
                }
            }

            // Return Subtypes
            return(subtypes);
        }