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