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
ordinatesOrdinates
Properties
Instance
Returns the singleton instance of DotSpatialAffineCoordinateSequenceFactory.
public static DotSpatialAffineCoordinateSequenceFactory Instance { get; }
Property Value
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
coordSeqCoordinateSequence
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
coordinatesCoordinate[]the coordinates, which may not be null nor contain null elements.
Returns
Create(double[])
Creates an instance of this class using the provided xy array for x- and y ordinates
public CoordinateSequence Create(double[] xy)
Parameters
xydouble[]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
xydouble[]The x- and y-ordinates
zmdouble[]An array of z- or measure values
isMeasureboolA value indicating if
zmcontains 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
xydouble[]The x- and y-ordinates
zdouble[]An array of z- or measure values
mdouble[]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
sizeintThe number of coordinates.
ordinatesOrdinatesThe 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)