本文整理汇总了C#中ICoordinateSequence.GetCoordinateCopy方法的典型用法代码示例。如果您正苦于以下问题:C# ICoordinateSequence.GetCoordinateCopy方法的具体用法?C# ICoordinateSequence.GetCoordinateCopy怎么用?C# ICoordinateSequence.GetCoordinateCopy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICoordinateSequence
的用法示例。
在下文中一共展示了ICoordinateSequence.GetCoordinateCopy方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CoordinateArraySequence
/// <summary>
/// Constructs a sequence based on the given array (the array is not copied).
/// </summary>
/// <param name="coordSeq">The coordinate array that will be referenced.</param>
public CoordinateArraySequence(ICoordinateSequence coordSeq)
{
if (coordSeq != null)
coordinates = new ICoordinate[coordSeq.Count];
else coordinates = new ICoordinate[0];
for (int i = 0; i < coordinates.Length; i++)
coordinates[i] = coordSeq.GetCoordinateCopy(i);
}
示例2: DefaultCoordinateSequence
/// <summary>
///
/// </summary>
/// <param name="coordSeq"></param>
public DefaultCoordinateSequence(ICoordinateSequence coordSeq)
{
coordinates = new ICoordinate[coordSeq.Count];
for (int i = 0; i < coordinates.Length; i++)
coordinates[i] = coordSeq.GetCoordinateCopy(i);
}
示例3: CoordinateArraySequence
/// <summary>
/// Creates a new sequence based on a deep copy of the given <see cref="ICoordinateSequence"/>.
/// </summary>
/// <param name="coordSeq">The coordinate sequence that will be copied</param>
public CoordinateArraySequence(ICoordinateSequence coordSeq)
{
if (coordSeq == null)
{
Coordinates = new Coordinate[0];
return;
}
_dimension = coordSeq.Dimension;
Coordinates = new Coordinate[coordSeq.Count];
for (var i = 0; i < Coordinates.Length; i++)
Coordinates[i] = coordSeq.GetCoordinateCopy(i);
}