当前位置: 首页>>代码示例>>C#>>正文


C# ICoordinateSequence.GetCoordinateCopy方法代码示例

本文整理汇总了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);
 }
开发者ID:DIVEROVIEDO,项目名称:DotSpatial,代码行数:12,代码来源:CoordinateArraySequence.cs

示例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);
 }
开发者ID:lishxi,项目名称:_SharpMap,代码行数:10,代码来源:DefaultCoordinateSequence.cs

示例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);
        }
开发者ID:sridhar19091986,项目名称:sharpmapx,代码行数:18,代码来源:CoordinateArraySequence.cs


注:本文中的ICoordinateSequence.GetCoordinateCopy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。