|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.geom.DefaultCoordinateSequenceFactory
public class DefaultCoordinateSequenceFactory
Creates CoordinateSequences represented as an array of Coordinate
s.
Constructor Summary | |
---|---|
DefaultCoordinateSequenceFactory()
Deprecated. |
Method Summary | |
---|---|
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 . |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCoordinateSequenceFactory()
Method Detail |
---|
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(com.vividsolutions.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.
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)
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |