Пример #1
0
        /// <summary>
        /// 获取要素数据集中的所有拓扑
        /// </summary>
        /// <param name="featureDataset">要素数据集</param>
        /// <returns></returns>
        public static List <ITopology> GetAllTopology(this IFeatureDataset featureDataset)
        {
            List <ITopology>   result            = new List <ITopology>();
            ITopologyContainer topologyContainer = (ITopologyContainer)featureDataset;

            for (int i = 0; i < topologyContainer.TopologyCount; i++)
            {
                result.Add(topologyContainer.get_Topology(i));
            }
            return(result);
        }
Пример #2
0
        /// <summary>
        /// 从要素数据集中获得第一个拓扑
        /// </summary>
        /// <param name="topoFeatureDataset"></param>
        /// <returns></returns>
        public static ITopology GetFirstTopology(this IFeatureDataset topoFeatureDataset)
        {
            ITopologyContainer topologyContainer = (ITopologyContainer)topoFeatureDataset;

            return(topologyContainer.get_Topology(0));
        }