java.io.Serializable
, CoordinateSequenceFactory
public class DefaultCoordinateSequenceFactory extends java.lang.Object implements CoordinateSequenceFactory, java.io.Serializable
Coordinate
s.Constructor | Description |
---|---|
DefaultCoordinateSequenceFactory() |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
CoordinateSequence |
create(int size,
int dimension) |
Deprecated.
Creates a
CoordinateSequence of the specified size and dimension. |
CoordinateSequence |
create(Coordinate[] coordinates) |
Deprecated.
Returns a DefaultCoordinateSequence based on the given array (the array is
not copied).
|
CoordinateSequence |
create(CoordinateSequence coordSeq) |
Deprecated.
Creates a
CoordinateSequence which is a copy
of the given CoordinateSequence . |
static DefaultCoordinateSequenceFactory |
instance() |
Deprecated.
Returns the singleton instance of DefaultCoordinateSequenceFactory
|
public DefaultCoordinateSequenceFactory()
public static DefaultCoordinateSequenceFactory instance()
public CoordinateSequence create(Coordinate[] coordinates)
create
in interface CoordinateSequenceFactory
coordinates
- the coordinates, which may not be null nor contain null
elementspublic 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 copyCoordinateSequenceFactory.create(org.locationtech.jts.geom.CoordinateSequence)
public 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.
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.
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 © 2018. All rights reserved.