public IMultiPolygon CreateMultiPolygon() { MultiPolygon mp = new MultiPolygon(); mp.Factory = this; return(mp); }
/// <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); }
public IMultiPolygon CreateMultiPolygon(IEnumerable <IPolygon> polygons) { MultiPolygon mp = new MultiPolygon(); mp.Factory = this; foreach (Polygon polygon in polygons) { mp.Add(polygon); } return(mp); }