Table of Contents

Class DotSpatialAffineCoordinateSequence

Namespace
NetTopologySuite.Geometries.Implementation
Assembly
NetTopologySuite.dll

A coordinate sequence that follows the dotspatial shape range

public class DotSpatialAffineCoordinateSequence : CoordinateSequence
Inheritance
DotSpatialAffineCoordinateSequence
Inherited Members
Extension Methods

Constructors

DotSpatialAffineCoordinateSequence(CoordinateSequence, Ordinates)

Creates a sequence based on the given coordinate sequence.

public DotSpatialAffineCoordinateSequence(CoordinateSequence coordSeq, Ordinates ordinates)

Parameters

coordSeq CoordinateSequence

The coordinate sequence.

ordinates Ordinates

The ordinates to copy

DotSpatialAffineCoordinateSequence(IReadOnlyCollection<Coordinate>, Ordinates)

Creates an instance of this class

public DotSpatialAffineCoordinateSequence(IReadOnlyCollection<Coordinate> coordinates, Ordinates ordinates)

Parameters

coordinates IReadOnlyCollection<Coordinate>

The coordinates

ordinates Ordinates

DotSpatialAffineCoordinateSequence(double[], double[], double[])

public DotSpatialAffineCoordinateSequence(double[] xy, double[] z, double[] m)

Parameters

xy double[]
z double[]
m double[]

DotSpatialAffineCoordinateSequence(int, Ordinates)

Constructs a sequence of a given size, populated with new Coordinates.

public DotSpatialAffineCoordinateSequence(int size, Ordinates ordinates)

Parameters

size int

The size of the sequence to create.

ordinates Ordinates

The kind of ordinates.

DotSpatialAffineCoordinateSequence(int, int, int)

Constructs a sequence of a given size, populated with new Coordinates.

public DotSpatialAffineCoordinateSequence(int size, int dimension, int measures)

Parameters

size int

The size of the sequence to create.

dimension int

The number of dimensions.

measures int

The number of measures.

Properties

M

Gets the vector with measure values

public double[] M { get; }

Property Value

double[]

Remarks

If you modify the values of this vector externally, you need to call ReleaseCoordinateArray()!

XY

Gets the vector with x- and y-ordinate values;

public double[] XY { get; }

Property Value

double[]

Remarks

If you modify the values of this vector externally, you need to call ReleaseCoordinateArray()!

Z

Gets the vector with z-ordinate values

public double[] Z { get; }

Property Value

double[]

Remarks

If you modify the values of this vector externally, you need to call ReleaseCoordinateArray()!

Methods

Copy()

public override CoordinateSequence Copy()

Returns

CoordinateSequence

ExpandEnvelope(Envelope)

public override Envelope ExpandEnvelope(Envelope env)

Parameters

env Envelope

Returns

Envelope

GetCoordinate(int, Coordinate)

public override void GetCoordinate(int index, Coordinate coord)

Parameters

index int
coord Coordinate

GetCoordinateCopy(int)

public override Coordinate GetCoordinateCopy(int i)

Parameters

i int

Returns

Coordinate

GetM(int)

public override double GetM(int index)

Parameters

index int

Returns

double

GetOrdinate(int, int)

public override double GetOrdinate(int index, int ordinateIndex)

Parameters

index int
ordinateIndex int

Returns

double

GetX(int)

public override double GetX(int index)

Parameters

index int

Returns

double

GetY(int)

public override double GetY(int index)

Parameters

index int

Returns

double

GetZ(int)

public override double GetZ(int index)

Parameters

index int

Returns

double

ReleaseCoordinateArray()

Releases the weak reference to the weak referenced coordinate array

public void ReleaseCoordinateArray()

Remarks

This is necessary if you modify the values of the XY, Z, M arrays externally.

Reversed()

Creates a reversed version of this coordinate sequence with cloned Coordinates

public override CoordinateSequence Reversed()

Returns

CoordinateSequence

A reversed version of this sequence

SetM(int, double)

public override void SetM(int index, double value)

Parameters

index int
value double

SetOrdinate(int, int, double)

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

Parameters

index int
ordinateIndex int
value double

SetX(int, double)

public override void SetX(int index, double value)

Parameters

index int
value double

SetY(int, double)

public override void SetY(int index, double value)

Parameters

index int
value double

SetZ(int, double)

public override void SetZ(int index, double value)

Parameters

index int
value double

ToCoordinateArray()

public override Coordinate[] ToCoordinateArray()

Returns

Coordinate[]