public void MultiLinestring() { IMultiLineString mls = _geoFactory.CreateMultiLineString(); Assert.IsTrue(mls.IsEmpty); mls.Add(_geoFactory.CreateLineString()); Assert.IsTrue(mls.IsEmpty); mls[0].Coordinates.Add(_geoFactory.CreatePoint2D(45, 68)); mls[0].Coordinates.Add(_geoFactory.CreatePoint2D(82, 44)); mls.Add(createLineString()); foreach (ILineString ls in (IEnumerable <ILineString>)mls) { Assert.IsFalse(ls.IsEmpty); } Assert.IsFalse(mls.IsEmpty); foreach (ILineString ls in (IEnumerable <ILineString>)mls) { Assert.IsFalse(ls.IsClosed); } Assert.IsFalse(mls.IsClosed); //Close linestrings foreach (ILineString ls in (IEnumerable <ILineString>)mls) { ls.Coordinates.Add((ls.StartPoint.Clone() as IPoint).Coordinate); } foreach (ILineString ls in (IEnumerable <ILineString>)mls) { Assert.IsTrue(ls.IsClosed); } Assert.IsTrue(mls.IsClosed); Assert.AreEqual(_geoFactory.CreateExtents2D(1, 2, 930, 123), mls.Extents); }