Index: src/Common/NetTopologySuite/Geometries/LineString.cs =================================================================== diff -u -r5fc71a385897af92ccb092f2f969b5709afab85a -r44d491f0772d64c9f11182ebf9d6793782a2fd7b --- src/Common/NetTopologySuite/Geometries/LineString.cs (.../LineString.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) +++ src/Common/NetTopologySuite/Geometries/LineString.cs (.../LineString.cs) (revision 44d491f0772d64c9f11182ebf9d6793782a2fd7b) @@ -11,12 +11,6 @@ [Serializable] public class LineString : Geometry, ILineString { - /// - /// Represents an empty LineString. - /// - public static readonly ILineString Empty = new GeometryFactory().CreateLineString(new ICoordinate[] - {}); - /// /// The points of this LineString. /// @@ -61,51 +55,6 @@ /// /// /// - /// - /// - public ICoordinate this[int n] - { - get - { - return points.GetCoordinate(n); - } - set - { - points.SetOrdinate(n, Ordinates.X, value.X); - points.SetOrdinate(n, Ordinates.Y, value.Y); - points.SetOrdinate(n, Ordinates.Z, value.Z); - GeometryChangedAction(); - } - } - - /// - /// - /// - /// - public int Count - { - get - { - return points.Count; - } - } - - /// - /// Returns the value of the angle (degrees (0-360) between the - /// and the . - /// - public double Angle - { - get - { - double angleRAD = Math.Atan((EndPoint.X - StartPoint.X)/(EndPoint.Y - StartPoint.Y)); - return (angleRAD*180)/Math.PI; - } - } - - /// - /// - /// public override ICoordinate[] Coordinates { get @@ -293,7 +242,7 @@ { return Factory.CreateMultiPoint((ICoordinate[]) null); } - return Factory.CreateMultiPoint(new IPoint[] + return Factory.CreateMultiPoint(new[] { StartPoint, EndPoint @@ -302,23 +251,6 @@ } /// - /// Returns true if the given point is a vertex of this LineString. - /// - /// The Coordinate to check. - /// true if pt is one of this LineString's vertices. - public bool IsCoordinate(ICoordinate pt) - { - for (int i = 0; i < points.Count; i++) - { - if (points.GetCoordinate(i).Equals(pt)) - { - return true; - } - } - return false; - } - - /// /// /// ///