Class PackedCoordinateSequenceFactory
Builds packed array coordinate sequences.
The array data type can be either
double
or float
,
and defaults to double
.
Inherited Members
Namespace: NetTopologySuite.Geometries.Implementation
Assembly: NetTopologySuite.dll
Syntax
[Serializable]
public class PackedCoordinateSequenceFactory : CoordinateSequenceFactory
Constructors
| Edit this page View SourcePackedCoordinateSequenceFactory()
Initializes a new instance of the PackedCoordinateSequenceFactory class, using double values.
Declaration
public PackedCoordinateSequenceFactory()
PackedCoordinateSequenceFactory(PackedType)
Initializes a new instance of the PackedCoordinateSequenceFactory class.
Declaration
public PackedCoordinateSequenceFactory(PackedCoordinateSequenceFactory.PackedType type)
Parameters
Type | Name | Description |
---|---|---|
PackedCoordinateSequenceFactory.PackedType | type | The type. |
Fields
| Edit this page View SourceDoubleFactory
A factory creating Double coordinate sequences
Declaration
public static readonly PackedCoordinateSequenceFactory DoubleFactory
Field Value
Type | Description |
---|---|
PackedCoordinateSequenceFactory |
FloatFactory
A factory creating Float coordinate sequences
Declaration
public static readonly PackedCoordinateSequenceFactory FloatFactory
Field Value
Type | Description |
---|---|
PackedCoordinateSequenceFactory |
Properties
| Edit this page View SourceType
Declaration
public PackedCoordinateSequenceFactory.PackedType Type { get; set; }
Property Value
Type | Description |
---|---|
PackedCoordinateSequenceFactory.PackedType | The type of packed array built. |
Methods
| Edit this page View SourceCreate(CoordinateSequence)
Returns a CoordinateSequence based on the given coordinate sequence; whether or not the array is copied is implementation-dependent.
Declaration
public override CoordinateSequence Create(CoordinateSequence coordSeq)
Parameters
Type | Name | Description |
---|---|---|
CoordinateSequence | coordSeq |
Returns
Type | Description |
---|---|
CoordinateSequence |
Overrides
| Edit this page View SourceCreate(Coordinate[])
Returns a CoordinateSequence based on the given array; whether or not the array is copied is implementation-dependent.
Declaration
public override CoordinateSequence Create(Coordinate[] coordinates)
Parameters
Type | Name | Description |
---|---|---|
Coordinate[] | coordinates | Coordinates array, which may not be null nor contain null elements |
Returns
Type | Description |
---|---|
CoordinateSequence |
Overrides
| Edit this page View SourceCreate(double[], int)
Creates a packed coordinate sequence of type Type from the provided double
array
using the provided dimension and a measure of 0
.
Declaration
[Obsolete("Use an overload that accepts measures. This overload will be removed in a future release.")]
public CoordinateSequence Create(double[] packedCoordinates, int dimension)
Parameters
Type | Name | Description |
---|---|---|
double[] | packedCoordinates | The array containing coordinate values |
int | dimension | The coordinate dimension |
Returns
Type | Description |
---|---|
CoordinateSequence | A packed coordinate sequence of Type |
Create(double[], int, int)
Creates a packed coordinate sequence of type Type from the provided double
array
using the provided dimension and a measure of 0
.
Declaration
public CoordinateSequence Create(double[] packedCoordinates, int dimension, int measures)
Parameters
Type | Name | Description |
---|---|---|
double[] | packedCoordinates | The array containing coordinate values |
int | dimension | The coordinate dimension |
int | measures | The coordinate measure count |
Returns
Type | Description |
---|---|
CoordinateSequence | A packed coordinate sequence of Type |
Create(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.
Create(float[], int)
Creates a packed coordinate sequence of type Type from the provided float
array
using the provided dimension and a measure of 0
.
Declaration
[Obsolete("Use an overload that accepts measures. This overload will be removed in a future release.")]
public CoordinateSequence Create(float[] packedCoordinates, int dimension)
Parameters
Type | Name | Description |
---|---|---|
float[] | packedCoordinates | The array containing coordinate values |
int | dimension | The coordinate dimension |
Returns
Type | Description |
---|---|
CoordinateSequence | A packed coordinate sequence of Type |
Create(float[], int, int)
Creates a packed coordinate sequence of type Type from the provided float
array
using the provided dimension and a measure of 0
.
Declaration
public CoordinateSequence Create(float[] packedCoordinates, int dimension, int measures)
Parameters
Type | Name | Description |
---|---|---|
float[] | packedCoordinates | The array containing coordinate values |
int | dimension | The coordinate dimension |
int | measures | The coordinate measure count |
Returns
Type | Description |
---|---|
CoordinateSequence | A packed coordinate sequence of Type |