public class ExtendedCoordinateSequenceFactory extends Object implements CoordinateSequenceFactory
ExtendedCoordinate
s.Modifier and Type | Method and Description |
---|---|
CoordinateSequence |
create(Coordinate[] coordinates)
Returns an ExtendedCoordinateSequence based on the given array -- the array is used
directly if it is an instance of ExtendedCoordinate[]; otherwise it is
copied.
|
CoordinateSequence |
create(CoordinateSequence coordSeq)
Creates a
CoordinateSequence which is a copy
of the given CoordinateSequence . |
CoordinateSequence |
create(int size,
int dimension)
Creates a
CoordinateSequence of the specified size and dimension. |
static ExtendedCoordinateSequenceFactory |
instance()
Returns the singleton instance of ExtendedCoordinateSequenceFactory
|
public static ExtendedCoordinateSequenceFactory instance()
public CoordinateSequence create(Coordinate[] coordinates)
create
in interface CoordinateSequenceFactory
coordinates
- the coordinatespublic CoordinateSequence create(CoordinateSequence coordSeq)
CoordinateSequenceFactory
CoordinateSequence
which is a copy
of the given CoordinateSequence
.
This method must handle null arguments by creating an empty sequence.create
in interface CoordinateSequenceFactory
coordSeq
- the coordinate sequence to copypublic CoordinateSequence create(int size, int dimension)
CoordinateSequenceFactory
CoordinateSequence
of the specified size and dimension.
For this to be useful, the CoordinateSequence
implementation must
be mutable.create
in interface CoordinateSequenceFactory
size
- the number of coordinates in the sequencedimension
- the dimension of the coordinates in the sequence (if user-specifiable,
otherwise ignored)CoordinateSequenceFactory.create(int, int)
Copyright © 2016. All rights reserved.