PackedCoordinateSequenceFactory class

Builds packed array coordinate sequences. The array data type can be either double or float, and defaults to double.

Inheritance

Constructors

PackedCoordinateSequenceFactory()
Creates a new PackedCoordinateSequenceFactory of type DOUBLE.
PackedCoordinateSequenceFactory.withType(int type)
Creates a new PackedCoordinateSequenceFactory of the given type. Acceptable type values are {@linkplain PackedCoordinateSequenceFactory#FLOAT}or {@linkplain PackedCoordinateSequenceFactory#DOUBLE}

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
getter/setter pair

Methods

create(List<Coordinate> coordinates) CoordinateSequence
@see CoordinateSequenceFactory#create(List
override
createFromDoublesDim(List<double> packedCoordinates, int dimension) CoordinateSequence
Creates a packed coordinate sequence of type {@link #DOUBLE} from the provided array using the given coordinate dimension and a measure count of 0.
createFromDoublesDimMeas(List<double> packedCoordinates, int dimension, int measures) CoordinateSequence
Creates a packed coordinate sequence of type {@link #DOUBLE} from the provided array using the given coordinate dimension and measure count.
createFromSequence(CoordinateSequence coordSeq) CoordinateSequence
@see CoordinateSequenceFactory#create(CoordinateSequence)
override
createFromSizeDimMeas(int size, int dimension, int measures) CoordinateSequence
@see org.locationtech.jts.geom.CoordinateSequenceFactory#create(int, int, int)
createSizeDim(int size, int dimension) CoordinateSequence
@see org.locationtech.jts.geom.CoordinateSequenceFactory#create(int, int)
override
createSizeDimMeas(int size, int dimension, int measures) CoordinateSequence
Creates a {@link CoordinateSequence} of the specified size and dimension with measure support. For this to be useful, the {@link CoordinateSequence} implementation must be mutable.
inherited
getType() int
Gets the type of packed coordinate sequence this factory builds, either {@linkplain PackedCoordinateSequenceFactory#FLOAT} or {@linkplain PackedCoordinateSequenceFactory#DOUBLE}
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

DEFAULT_DIMENSION int
final
DEFAULT_MEASURES int
final
DOUBLE int
Type code for arrays of type double.
final
DOUBLE_FACTORY PackedCoordinateSequenceFactory
A factory using array type {@link #DOUBLE}
final