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
| Improve this Doc View SourcePackedCoordinateSequenceFactory()
Initializes a new instance of the PackedCoordinateSequenceFactory class, using double values.
Declaration
public PackedCoordinateSequenceFactory()
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
| Improve this Doc 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
| Improve this Doc View SourceType
Declaration
public PackedCoordinateSequenceFactory.PackedType Type { get; set; }
Property Value
Type | Description |
---|---|
PackedCoordinateSequenceFactory.PackedType | The type of packed array built. |
Methods
| Improve this Doc 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
| Improve this Doc 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
| Improve this Doc View SourceCreate(Double[], Int32)
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 |
Int32 | dimension | The coordinate dimension |
Returns
Type | Description |
---|---|
CoordinateSequence | A packed coordinate sequence of Type |
Create(Double[], Int32, Int32)
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 |
Int32 | dimension | The coordinate dimension |
Int32 | measures | The coordinate measure count |
Returns
Type | Description |
---|---|
CoordinateSequence | A packed coordinate sequence of Type |
Create(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 |
Overrides
| Improve this Doc View SourceCreate(Single[], Int32)
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 |
---|---|---|
Single[] | packedCoordinates | The array containing coordinate values |
Int32 | dimension | The coordinate dimension |
Returns
Type | Description |
---|---|
CoordinateSequence | A packed coordinate sequence of Type |
Create(Single[], Int32, Int32)
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 |
---|---|---|
Single[] | packedCoordinates | The array containing coordinate values |
Int32 | dimension | The coordinate dimension |
Int32 | measures | The coordinate measure count |
Returns
Type | Description |
---|---|
CoordinateSequence | A packed coordinate sequence of Type |