Class CoordinateArraySequenceFactory
Creates CoordinateSequences represented as an array of Coordinates.
Inherited Members
Namespace: NetTopologySuite.Geometries.Implementation
Assembly: NetTopologySuite.dll
Syntax
[Serializable]
public sealed class CoordinateArraySequenceFactory : CoordinateSequenceFactory
Properties
| Edit this page View SourceInstance
Returns the singleton instance of CoordinateArraySequenceFactory.
Declaration
public static CoordinateArraySequenceFactory Instance { get; }
Property Value
Type | Description |
---|---|
CoordinateArraySequenceFactory |
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(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.