Table of Contents

Class DotSpatialAffineCoordinateSequenceFactory

Namespace
NetTopologySuite.Geometries.Implementation
Assembly
NetTopologySuite.dll

A coordinate sequence factory class that creates DotSpatial's Shape/ShapeRange like coordinate sequences.

public class DotSpatialAffineCoordinateSequenceFactory : CoordinateSequenceFactory
Inheritance
DotSpatialAffineCoordinateSequenceFactory
Inherited Members

Constructors

DotSpatialAffineCoordinateSequenceFactory(Ordinates)

public DotSpatialAffineCoordinateSequenceFactory(Ordinates ordinates)

Parameters

ordinates Ordinates

Properties

Instance

Returns the singleton instance of DotSpatialAffineCoordinateSequenceFactory.

public static DotSpatialAffineCoordinateSequenceFactory Instance { get; }

Property Value

DotSpatialAffineCoordinateSequenceFactory

Methods

Create(CoordinateSequence)

Creates a CoordinateSequence which is a copy of the given CoordinateSequence. This method must handle null arguments by creating an empty sequence.

public override CoordinateSequence Create(CoordinateSequence coordSeq)

Parameters

coordSeq CoordinateSequence

Returns

CoordinateSequence

A coordinate sequence

Create(Coordinate[])

Returns a CoordinateArraySequence based on the given array (the array is not copied).

public override CoordinateSequence Create(Coordinate[] coordinates)

Parameters

coordinates Coordinate[]

the coordinates, which may not be null nor contain null elements.

Returns

CoordinateSequence

Create(double[])

Creates an instance of this class using the provided xy array for x- and y ordinates

public CoordinateSequence Create(double[] xy)

Parameters

xy double[]

The x- and y-ordinates

Returns

CoordinateSequence

A coordinate sequence

Create(double[], double[], bool)

Creates an instance of this class using the provided xy array for x- and y ordinates, the zm array for either z-ordinates or measure values. This is indicated by isMeasure.

public CoordinateSequence Create(double[] xy, double[] zm, bool isMeasure = false)

Parameters

xy double[]

The x- and y-ordinates

zm double[]

An array of z- or measure values

isMeasure bool

A value indicating if zm contains z-ordinates or measure values.

Returns

CoordinateSequence

A coordinate sequence

Create(double[], double[], double[])

Creates an instance of this class using the provided xy array for x- and y ordinates, the z array for z ordinates and m for measure values.

public CoordinateSequence Create(double[] xy, double[] z, double[] m)

Parameters

xy double[]

The x- and y-ordinates

z double[]

An array of z- or measure values

m double[]

An array of measure values.

Returns

CoordinateSequence

A coordinate sequence

Create(int, Ordinates)

Creates a CoordinateSequence of the specified size and ordinates. For this to be useful, the CoordinateSequence implementation must be mutable.

public override CoordinateSequence Create(int size, Ordinates ordinates)

Parameters

size int

The number of coordinates.

ordinates Ordinates

The ordinates each coordinate has. XY is fix, Z and M can be set.

Returns

CoordinateSequence

A coordinate sequence.

Create(int, int, int)

public override CoordinateSequence Create(int size, int dimension, int measures)

Parameters

size int
dimension int
measures int

Returns

CoordinateSequence