com.vividsolutions.jts.geom.impl

Class CoordinateArraySequenceFactory

Implemented Interfaces:
CoordinateSequenceFactory, Serializable

public final class CoordinateArraySequenceFactory
extends java.lang.Object
implements CoordinateSequenceFactory, Serializable

Creates CoordinateSequences represented as an array of Coordinates.
Version:
1.7

Method Summary

CoordinateSequence
create(CoordinateSequence coordSeq)
CoordinateSequence
create(Coordinate[] coordinates)
Returns a CoordinateArraySequence based on the given array (the array is not copied).
CoordinateSequence
create(int size, int dimension)
static CoordinateArraySequenceFactory
instance()
Returns the singleton instance of CoordinateArraySequenceFactory

Method Details

create

public CoordinateSequence create(CoordinateSequence coordSeq)
Specified by:
create in interface CoordinateSequenceFactory

create

public CoordinateSequence create(Coordinate[] coordinates)
Returns a CoordinateArraySequence based on the given array (the array is not copied).
Specified by:
create in interface CoordinateSequenceFactory
Parameters:
coordinates - the coordinates, which may not be null nor contain null elements

create

public CoordinateSequence create(int size,
                                 int dimension)
Specified by:
create in interface CoordinateSequenceFactory

instance

public static CoordinateArraySequenceFactory instance()
Returns the singleton instance of CoordinateArraySequenceFactory