コード例 #1
0
        }         // private EdgeRing FindEdgeRingContaining( EdgeRing testEr )

        private ArrayList ComputePolygons()
        {
            ArrayList resultPolyList = new ArrayList();

            // add Polygons for all shells
            foreach (object obj in _shellList)
            {
                EdgeRing er   = (EdgeRing)obj;
                Polygon  poly = er.ToPolygon(_geometryFactory);
                resultPolyList.Add(poly);
            }     // foreach ( object obj in _shellList )
            return(resultPolyList);
        }         // private ArrayList ComputePolygons()
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="shellList"></param>
        /// <returns></returns>
        private IList ComputePolygons(IList shellList)
        {
            IList resultPolyList = new ArrayList();

            // add Polygons for all shells
            for (IEnumerator it = shellList.GetEnumerator(); it.MoveNext();)
            {
                EdgeRing er   = (EdgeRing)it.Current;
                IPolygon poly = er.ToPolygon(geometryFactory);
                resultPolyList.Add(poly);
            }
            return(resultPolyList);
        }
コード例 #3
0
        private GeometryList ComputePolygons(EdgeRingCollection shellList)
        {
            GeometryList resultPolyList = new GeometryList();

            // Add Polygons for all shells
            for (IEdgeRingEnumerator it = shellList.GetEnumerator(); it.MoveNext();)
            {
                EdgeRing er   = it.Current;
                Polygon  poly = er.ToPolygon(geometryFactory);
                resultPolyList.Add(poly);
            }

            return(resultPolyList);
        }