using System;
using GeoAPI.Geometries;
namespace GisSharpBlog.NetTopologySuite.Geometries{
#if !SILVERLIGHT
[Serializable]
#endif
public class CoordinateStructSequence : CoordinateArraySequence
{
public CoordinateStructSequence(ICoordinate[] coordinates) : base(coordinates) { }
public CoordinateStructSequence(int size) : base(size) { }
public CoordinateStructSequence(ICoordinateSequence coordSeq) : base(coordSeq) { }
public override ICoordinate GetCoordinateCopy(int i)
{
return new CoordinateStruct(coordinates[i]);
}
public override object Clone()
{
ICoordinate[] cloneCoordinates = GetClonedCoordinates();
return new CoordinateStructSequence(cloneCoordinates);
}
}
}
|