Table of Contents

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 int

The value for Measures.

Methods

Copy()

public override CoordinateSequence Copy()

Returns

CoordinateSequence

ExpandEnvelope(Envelope)

public override Envelope ExpandEnvelope(Envelope env)

Parameters

env Envelope

Returns

Envelope

GetOrdinate(int, int)

public override double GetOrdinate(int index, int ordinateIndex)

Parameters

index int
ordinateIndex int

Returns

double

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 int

The index of the ordinate whose values to get, from TryGetOrdinateIndex(Ordinate, out int).

Returns

(Memory<double> Array, int Stride)

The underlying Memory<T> and stride.

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

CoordinateSequence

SetOrdinate(int, int, double)

public override void SetOrdinate(int index, int ordinateIndex, double value)

Parameters

index int
ordinateIndex int
value double

ToCoordinateArray()

public override Coordinate[] ToCoordinateArray()

Returns

Coordinate[]