Class DotSpatialAffineCoordinateSequenceFactory
A coordinate sequence factory class that creates DotSpatial's Shape/ShapeRange like coordinate sequences.
Inherited Members
Namespace: NetTopologySuite.Geometries.Implementation
Assembly: NetTopologySuite.dll
Syntax
[Serializable]
public class DotSpatialAffineCoordinateSequenceFactory : CoordinateSequenceFactory
Constructors
| Improve this Doc View SourceDotSpatialAffineCoordinateSequenceFactory(Ordinates)
Declaration
public DotSpatialAffineCoordinateSequenceFactory(Ordinates ordinates)
Parameters
Type | Name | Description |
---|---|---|
Ordinates | ordinates |
Properties
| Improve this Doc View SourceInstance
Returns the singleton instance of DotSpatialAffineCoordinateSequenceFactory.
Declaration
public static DotSpatialAffineCoordinateSequenceFactory Instance { get; }
Property Value
Type | Description |
---|---|
DotSpatialAffineCoordinateSequenceFactory |
Methods
| Improve this Doc View SourceCreate(Coordinate[])
Returns a CoordinateArraySequence based on the given array (the array is not copied).
Declaration
public override CoordinateSequence Create(Coordinate[] coordinates)
Parameters
Type | Name | Description |
---|---|---|
Coordinate[] | coordinates | the coordinates, which may not be null nor contain null elements. |
Returns
Type | Description |
---|---|
CoordinateSequence |
Overrides
| Improve this Doc View SourceCreate(CoordinateSequence)
Creates a CoordinateSequence which is a copy of the given CoordinateSequence. This method must handle null arguments by creating an empty sequence.
Declaration
public override CoordinateSequence Create(CoordinateSequence coordSeq)
Parameters
Type | Name | Description |
---|---|---|
CoordinateSequence | coordSeq |
Returns
Type | Description |
---|---|
CoordinateSequence | A coordinate sequence |
Overrides
| Improve this Doc View SourceCreate(Double[])
Creates an instance of this class using the provided xy
array for x- and y ordinates
Declaration
public CoordinateSequence Create(double[] xy)
Parameters
Type | Name | Description |
---|---|---|
Double[] | xy | The x- and y-ordinates |
Returns
Type | Description |
---|---|
CoordinateSequence | A coordinate sequence |
Create(Double[], Double[], Boolean)
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
.
Declaration
public CoordinateSequence Create(double[] xy, double[] zm, bool isMeasure = false)
Parameters
Type | Name | Description |
---|---|---|
Double[] | xy | The x- and y-ordinates |
Double[] | zm | An array of z- or measure values |
Boolean | isMeasure | A value indicating if |
Returns
Type | Description |
---|---|
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.
Declaration
public CoordinateSequence Create(double[] xy, double[] z, double[] m)
Parameters
Type | Name | Description |
---|---|---|
Double[] | xy | The x- and y-ordinates |
Double[] | z | An array of z- or measure values |
Double[] | m | An array of measure values. |
Returns
Type | Description |
---|---|
CoordinateSequence | A coordinate sequence |
Create(Int32, Ordinates)
Creates a CoordinateSequence of the specified size and ordinates. For this to be useful, the CoordinateSequence implementation must be mutable.
Declaration
public override CoordinateSequence Create(int size, Ordinates ordinates)
Parameters
Type | Name | Description |
---|---|---|
Int32 | size | The number of coordinates. |
Ordinates | ordinates | The ordinates each coordinate has. XY is fix, Z and M can be set. |
Returns
Type | Description |
---|---|
CoordinateSequence | A coordinate sequence. |
Overrides
| Improve this Doc View SourceCreate(Int32, Int32, Int32)
Declaration
public override CoordinateSequence Create(int size, int dimension, int measures)
Parameters
Type | Name | Description |
---|---|---|
Int32 | size | |
Int32 | dimension | |
Int32 | measures |
Returns
Type | Description |
---|---|
CoordinateSequence |