Package org.locationtech.jts.geom.impl
Class CoordinateArraySequenceFactory
java.lang.Object
org.locationtech.jts.geom.impl.CoordinateArraySequenceFactory
- All Implemented Interfaces:
Serializable
,CoordinateSequenceFactory
public final class CoordinateArraySequenceFactory
extends Object
implements CoordinateSequenceFactory, Serializable
Creates
CoordinateSequence
s represented as an array of Coordinate
s.- Version:
- 1.7
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final CoordinateArraySequenceFactory
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(int size, int dimension) The created sequence dimension is clamped to be <= 3.create
(Coordinate[] coordinates) Returns aCoordinateArraySequence
based on the given array (the array is not copied).create
(CoordinateSequence coordSeq) Creates aCoordinateSequence
which is a copy of the givenCoordinateSequence
.instance()
Returns the singleton instance ofCoordinateArraySequenceFactory
private Object
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
instanceObject
-
-
Constructor Details
-
CoordinateArraySequenceFactory
private CoordinateArraySequenceFactory()
-
-
Method Details
-
readResolve
-
instance
Returns the singleton instance ofCoordinateArraySequenceFactory
-
create
Returns aCoordinateArraySequence
based on the given array (the array is not copied).- Specified by:
create
in interfaceCoordinateSequenceFactory
- Parameters:
coordinates
- the coordinates, which may not be null nor contain null elements
-
create
Description copied from interface:CoordinateSequenceFactory
Creates aCoordinateSequence
which is a copy of the givenCoordinateSequence
. This method must handle null arguments by creating an empty sequence.- Specified by:
create
in interfaceCoordinateSequenceFactory
- Parameters:
coordSeq
- the coordinate sequence to copy- See Also:
-
create
The created sequence dimension is clamped to be <= 3.- Specified by:
create
in interfaceCoordinateSequenceFactory
- Parameters:
size
- the number of coordinates in the sequencedimension
- the dimension of the coordinates in the sequence (if user-specifiable, otherwise ignored)- See Also:
-