示例#1
0
 /// <summary>
 /// Creates an instance of this class with an initial <paramref name="capacity"/>
 /// </summary>
 /// <param name="capacity">The initial capacity of the buffer.</param>
 /// <param name="nullValue">The value that should be treated as null.</param>
 /// <param name="lessThan">This optional parameter controls whether a value has to be less than <paramref name="nullValue"/> to be considered <c>null</c></param>
 public CoordinateBuffer(int capacity, double nullValue, bool lessThan = false)
 {
     _coordinates         = new List <XYZM>(capacity);
     _doubleNoDataChecker = new DoubleNoDataChecker(nullValue, lessThan);
 }
示例#2
0
 /// <summary>
 /// Creates an instance of this class
 /// </summary>
 public CoordinateBuffer()
 {
     _coordinates         = new List <XYZM>();
     _doubleNoDataChecker = new DoubleNoDataChecker(Coordinate.NullOrdinate);
 }
示例#3
0
 /// <summary>
 /// Creates an instance of this class with an initial <paramref name="capacity"/>
 /// </summary>
 /// <param name="capacity">The initial capacity of the buffer.</param>
 public CoordinateBuffer(int capacity)
 {
     _coordinates         = new List <XYZM>(capacity);
     _doubleNoDataChecker = new DoubleNoDataChecker(double.NaN);
 }
示例#4
0
 /// <summary>
 /// Creates an instance of this class with <paramref name="nullValue"/> defining the values that should be treated as null.
 /// </summary>
 /// <param name="nullValue">The value that should be treated as null.</param>
 /// <param name="lessThan">This optional parameter controls whether a value has to be less than <see cref="nullValue"/> to be considered <c>null</c></param>
 public CoordinateBuffer(double nullValue, bool lessThan = false)
 {
     _coordinates         = new List <double[]>();
     _doubleNoDataChecker = new DoubleNoDataChecker(nullValue, lessThan);
 }