Package org.geotools.geometry.jts
Class LiteCoordinateSequenceFactory
- Object
-
- LiteCoordinateSequenceFactory
-
- All Implemented Interfaces:
CoordinateSequenceFactory
public class LiteCoordinateSequenceFactory extends Object implements CoordinateSequenceFactory
- Since:
- 2.1.x
- Author:
- jeichar
- TODO:
- class description
-
-
Constructor Summary
Constructors Constructor Description LiteCoordinateSequenceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinateSequence
create(double[] points)
CoordinateSequence
create(double[] points, int dimension)
CoordinateSequence
create(int size, int dimension)
CoordinateSequence
create(int size, int dimension, int measures)
CoordinateSequence
create(Coordinate[] coordinates)
CoordinateSequence
create(CoordinateSequence coordSeq)
static LiteCoordinateSequence
lite(CoordinateSequence cs)
Cast to aLiteCoordinateSequence
-
-
-
Method Detail
-
create
public CoordinateSequence create(Coordinate[] coordinates)
- Specified by:
create
in interfaceCoordinateSequenceFactory
-
create
public CoordinateSequence create(CoordinateSequence coordSeq)
- Specified by:
create
in interfaceCoordinateSequenceFactory
-
create
public CoordinateSequence create(int size, int dimension)
- Specified by:
create
in interfaceCoordinateSequenceFactory
-
create
public CoordinateSequence create(double[] points)
- Parameters:
points
-
-
create
public CoordinateSequence create(double[] points, int dimension)
- Parameters:
points
-
-
create
public CoordinateSequence create(int size, int dimension, int measures)
- Specified by:
create
in interfaceCoordinateSequenceFactory
-
lite
public static LiteCoordinateSequence lite(CoordinateSequence cs)
Cast to aLiteCoordinateSequence
This method first checks if cs is an instanceof
LiteCoordinateSequence
, if it is, itself is returned. If not, cs is cloned into a newLiteCoordinateSequence
If cs is null, null is returned.
- Parameters:
cs
- The sourceCoordinateSequence
. Can be null.- Returns:
- A LiteCoordinateSequence, or null if cs was null.
-
-