CoordinateArraySequenceFactory
, DefaultCoordinateSequenceFactory
, PackedCoordinateSequenceFactory
public interface CoordinateSequenceFactory
CoordinateSequence
s.
Used to configure GeometryFactory
s
to provide specific kinds of CoordinateSequences.Modifier and Type | Method | Description |
---|---|---|
CoordinateSequence |
create(int size,
int dimension) |
Creates a
CoordinateSequence of the specified size and dimension. |
CoordinateSequence |
create(Coordinate[] coordinates) |
Returns a
CoordinateSequence based on the given array. |
CoordinateSequence |
create(CoordinateSequence coordSeq) |
Creates a
CoordinateSequence which is a copy
of the given CoordinateSequence . |
CoordinateSequence create(Coordinate[] coordinates)
CoordinateSequence
based on the given array.
Whether the array is copied or simply referenced
is implementation-dependent.
This method must handle null arguments by creating an empty sequence.coordinates
- the coordinatesCoordinateSequence create(CoordinateSequence coordSeq)
CoordinateSequence
which is a copy
of the given CoordinateSequence
.
This method must handle null arguments by creating an empty sequence.coordSeq
- the coordinate sequence to copyCoordinateSequence create(int size, int dimension)
CoordinateSequence
of the specified size and dimension.
For this to be useful, the CoordinateSequence
implementation must
be mutable.
If the requested dimension is larger than the CoordinateSequence implementation can provide, then a sequence of maximum possible dimension should be created. An error should not be thrown.
size
- the number of coordinates in the sequencedimension
- the dimension of the coordinates in the sequence (if user-specifiable,
otherwise ignored)Copyright © 2018. All rights reserved.