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
| Edit this page View SourceDotSpatialAffineCoordinateSequenceFactory(Ordinates)
Declaration
public DotSpatialAffineCoordinateSequenceFactory(Ordinates ordinates)
Parameters
| Type | Name | Description |
|---|---|---|
| Ordinates | ordinates |
Properties
| Edit this page View SourceInstance
Returns the singleton instance of DotSpatialAffineCoordinateSequenceFactory.
Declaration
public static DotSpatialAffineCoordinateSequenceFactory Instance { get; }
Property Value
| Type | Description |
|---|---|
| DotSpatialAffineCoordinateSequenceFactory |
Methods
| Edit this page 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
| Edit this page 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
| Edit this page 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[], 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.
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 |
| bool | 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(int, 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 |
|---|---|---|
| int | 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
| Edit this page View SourceCreate(int, int, int)
Creates a CoordinateSequence of the specified size and dimension with measure support. For this to be useful, the CoordinateSequence implementation must be mutable.
Declaration
public override CoordinateSequence Create(int size, int dimension, int measures)
Parameters
| Type | Name | Description |
|---|---|---|
| int | size | The number of coordinates in the sequence |
| int | dimension | The dimension of the coordinates in the sequence (if user-specifiable, otherwise ignored) |
| int | measures | The number of measures of the coordinates in the sequence (if user-specifiable, otherwise ignored) |
Returns
| Type | Description |
|---|---|
| CoordinateSequence |
Overrides
Remarks
If the requested dimension or measures are larger than the CoordinateSequence implementation can provide, then a sequence of maximum possible dimension should be created. An error should not be thrown.