com.vividsolutions.jts.geom
Interface CoordinateSequenceFactory
- CoordinateArraySequenceFactory, DefaultCoordinateSequenceFactory, PackedCoordinateSequenceFactory
public interface CoordinateSequenceFactory
create
public CoordinateSequence create(Coordinate[] coordinates)
Returns a
CoordinateSequence
based on the given array.
Whether the array is copied or simply referenced
is implementation-dependent.
This method must handle null arguments by creating an empty sequence.
coordinates
- the coordinates
create
public CoordinateSequence create(int size,
int dimension)
size
- the number of coordinates in the sequencedimension
- the dimension of the coordinates in the sequence (if user-specifiable,
otherwise ignored)