public class PackedCoordinateSequenceFactory extends Objectimplements CoordinateSequenceFactory
| Modifier and Type | Field and Description |
|---|---|
static int |
DOUBLE
|
static PackedCoordinateSequenceFactory |
DOUBLE_FACTORY
|
static int |
FLOAT
|
static PackedCoordinateSequenceFactory |
FLOAT_FACTORY
|
| Constructor and Description |
|---|
PackedCoordinateSequenceFactory()
Creates a new PackedCoordinateSequenceFactory of type DOUBLE.
|
PackedCoordinateSequenceFactory(int type)
Creates a new PackedCoordinateSequenceFactory of the given type.
|
PackedCoordinateSequenceFactory(int type, int dimension)
Creates a new PackedCoordinateSequenceFactory of the given type.
|
| Modifier and Type | Method and Description |
|---|---|
CoordinateSequence |
create(Coordinate
Returns a
CoordinateSequence based on the given array.
|
CoordinateSequence |
create(CoordinateSequence
Creates a
CoordinateSequence which is a copy of the given
CoordinateSequence.
|
CoordinateSequence |
create(double[] packedCoordinates, int dimension)
|
CoordinateSequence |
create(float[] packedCoordinates, int dimension)
|
CoordinateSequence |
create(int size, int dimension)
Creates a
CoordinateSequence of the specified size and dimension.
|
int |
getDimension()
|
int |
getType()
Returns the type of packed coordinate sequences this factory builds, either PackedCoordinateSequenceFactory#Float or PackedCoordinateSequenceFactory#Double
|
void |
setDimension(int dimension)
|
void |
setType(int type)
Sets the type of packed coordinate sequences this factory builds, acceptable values are PackedCoordinateSequenceFactory#Floator PackedCoordinateSequenceFactory#Double
|
public static final int DOUBLE
public static final int FLOAT
public static final PackedCoordinateSequenceFactoryDOUBLE_FACTORY
public static final PackedCoordinateSequenceFactoryFLOAT_FACTORY
public PackedCoordinateSequenceFactory()
public PackedCoordinateSequenceFactory(int type)
public PackedCoordinateSequenceFactory(int type,
int dimension)
public int getType()
public void setType(int type)
public int getDimension()
public void setDimension(int dimension)
public CoordinateSequencecreate(Coordinate [] coordinates)
CoordinateSequenceFactory
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.
create in interface
CoordinateSequenceFactory
coordinates - the coordinates
CoordinateSequenceFactory.create(com.vividsolutions.jts.geom.Coordinate[])
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(double[] packedCoordinates, int dimension)
com.vividsolutions.jts.geom.CoordinateSequenceFactory#create(double[], int)
public CoordinateSequencecreate(float[] packedCoordinates, int dimension)
com.vividsolutions.jts.geom.CoordinateSequenceFactory#create(float[], int)
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)