public class DefaultCoordinateSequenceFactory extends Objectimplements CoordinateSequenceFactory , Serializable
Coordinates.
| Constructor and Description |
|---|
DefaultCoordinateSequenceFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
CoordinateSequence |
create(Coordinate
Deprecated.
Returns a DefaultCoordinateSequence based on the given array (the array is not copied).
|
CoordinateSequence |
create(CoordinateSequence
Deprecated.
Creates a
CoordinateSequence which is a copy of the given
CoordinateSequence.
|
CoordinateSequence |
create(int size, int dimension)
Deprecated.
Creates a
CoordinateSequence of the specified size and dimension.
|
static DefaultCoordinateSequenceFactory |
instance()
Deprecated.
Returns the singleton instance of DefaultCoordinateSequenceFactory
|
public DefaultCoordinateSequenceFactory()
public static DefaultCoordinateSequenceFactoryinstance()
public CoordinateSequencecreate(Coordinate [] coordinates)
create in interface
CoordinateSequenceFactory
coordinates - the coordinates, which may not be null nor contain null elements
public CoordinateSequencecreate(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 copy
CoordinateSequenceFactory.create(com.vividsolutions.jts.geom.CoordinateSequence)
public CoordinateSequencecreate(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 sequence
dimension - the dimension of the coordinates in the sequence (if user-specifiable, otherwise ignored)
CoordinateSequenceFactory.create(int, int)