|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.geom.impl.CoordinateArraySequenceFactory
Creates CoordinateSequences represented as an array of Coordinates.
| Method Summary | |
CoordinateSequence |
create(Coordinate[] coordinates)
Returns a CoordinateArraySequence based on the given array (the array is
not 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 CoordinateArraySequenceFactory |
instance()
Returns the singleton instance of CoordinateArraySequenceFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static CoordinateArraySequenceFactory instance()
CoordinateArraySequenceFactory
public CoordinateSequence create(Coordinate[] coordinates)
CoordinateArraySequence based on the given array (the array is
not copied).
create in interface CoordinateSequenceFactorycoordinates - the coordinates, which may not be null nor contain null
elementspublic CoordinateSequence create(CoordinateSequence coordSeq)
CoordinateSequenceFactoryCoordinateSequence which is a copy
of the given CoordinateSequence.
This method must handle null arguments by creating an empty sequence.
create in interface CoordinateSequenceFactorycoordSeq - the coordinate sequence to copyCoordinateSequenceFactory.create(com.vividsolutions.jts.geom.CoordinateSequence)
public CoordinateSequence create(int size,
int dimension)
CoordinateSequenceFactoryCoordinateSequence of the specified size and dimension.
For this to be useful, the CoordinateSequence implementation must
be mutable.
create in interface CoordinateSequenceFactorysize - the number of coordinates in the sequencedimension - the dimension of the coordinates in the sequence (if user-specifiable,
otherwise ignored)
java.lang.IllegalArgumentException - if the dimension is > 3CoordinateSequenceFactory.create(int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||