示例#1
0
        public IMultiPolygon CreateMultiPolygon()
        {
            MultiPolygon mp = new MultiPolygon();

            mp.Factory = this;
            return(mp);
        }
示例#2
0
        /// <summary>
        /// Creates a copy of this geometry.
        /// </summary>
        /// <returns>Copy of the MultiPolygon.</returns>
        public override Geometry Clone()
        {
            MultiPolygon multiPolygon = new MultiPolygon();

            foreach (Polygon poly in this)
            {
                multiPolygon.Add(poly.Clone() as Polygon);
            }

            return(multiPolygon);
        }
示例#3
0
        public IMultiPolygon CreateMultiPolygon(IEnumerable <IPolygon> polygons)
        {
            MultiPolygon mp = new MultiPolygon();

            mp.Factory = this;

            foreach (Polygon polygon in polygons)
            {
                mp.Add(polygon);
            }

            return(mp);
        }