Class RawCoordinateSequence
- Namespace
- NetTopologySuite.Geometries.Implementation
- Assembly
- NetTopologySuite.dll
An implementation of CoordinateSequence that packs its contents in a way that can be customized by the creator.
public sealed class RawCoordinateSequence : CoordinateSequence, ISerializable
- Inheritance
-
RawCoordinateSequence
- Implements
- Inherited Members
- Extension Methods
Constructors
RawCoordinateSequence(Memory<double>[], (int RawDataIndex, int DimensionIndex)[], int)
Initializes a new instance of the RawCoordinateSequence class.
public RawCoordinateSequence(Memory<double>[] rawData, (int RawDataIndex, int DimensionIndex)[] dimensionMap, int measures)
Parameters
rawData
Memory<double>[]Contains the raw data for this sequence.
dimensionMap
(int RawDataIndex, int DimensionIndex)[]Contains a pair of indexes to tell us, for each dimension, where to find its data in
rawData
.measures
intThe value for Measures.
Methods
Copy()
public override CoordinateSequence Copy()
Returns
ExpandEnvelope(Envelope)
public override Envelope ExpandEnvelope(Envelope env)
Parameters
env
Envelope
Returns
GetOrdinate(int, int)
public override double GetOrdinate(int index, int ordinateIndex)
Parameters
Returns
GetRawCoordinatesAndStride(int)
Gets the underlying Memory<T> for the ordinates at the given index, along with a "stride" value that represents how many slots there are between elements.
public (Memory<double> Array, int Stride) GetRawCoordinatesAndStride(int ordinateIndex)
Parameters
ordinateIndex
intThe index of the ordinate whose values to get, from TryGetOrdinateIndex(Ordinate, out int).
Returns
Remarks
Assuming Count is nonzero, the first element of the returned array holds the first coordinate's value for the requested ordinate, and the last element of the returned array holds the last coordinate's value for the requested ordinate.
Reversed()
public override CoordinateSequence Reversed()
Returns
SetOrdinate(int, int, double)
public override void SetOrdinate(int index, int ordinateIndex, double value)
Parameters
ToCoordinateArray()
public override Coordinate[] ToCoordinateArray()