org.hibernate.spatial.jts.mgeom
Class MCoordinateSequenceFactory

java.lang.Object
  extended by org.hibernate.spatial.jts.mgeom.MCoordinateSequenceFactory
All Implemented Interfaces:
com.vividsolutions.jts.geom.CoordinateSequenceFactory, java.io.Serializable

public class MCoordinateSequenceFactory
extends java.lang.Object
implements com.vividsolutions.jts.geom.CoordinateSequenceFactory, java.io.Serializable

Creates MCoordinateSequenceFactory internally represented as an array of MCoordinates.

See Also:
Serialized Form

Method Summary
 com.vividsolutions.jts.geom.CoordinateSequence create(com.vividsolutions.jts.geom.Coordinate[] coordinates)
          Returns an MCoordinateSequence based on the given array -- the array is used directly if it is an instance of MCoordinate[]; otherwise it is copied.
 com.vividsolutions.jts.geom.CoordinateSequence create(com.vividsolutions.jts.geom.CoordinateSequence coordSeq)
           
 com.vividsolutions.jts.geom.CoordinateSequence create(int size, int dimension)
          Creates a MCoordinateSequence instance initialized to the size parameter.
static MCoordinateSequenceFactory instance()
          Returns the singleton instance of MCoordinateSequenceFactory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

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


create

public com.vividsolutions.jts.geom.CoordinateSequence create(com.vividsolutions.jts.geom.Coordinate[] coordinates)
Returns an MCoordinateSequence based on the given array -- the array is used directly if it is an instance of MCoordinate[]; otherwise it is copied.

Specified by:
create in interface com.vividsolutions.jts.geom.CoordinateSequenceFactory

create

public com.vividsolutions.jts.geom.CoordinateSequence create(com.vividsolutions.jts.geom.CoordinateSequence coordSeq)
Specified by:
create in interface com.vividsolutions.jts.geom.CoordinateSequenceFactory

create

public com.vividsolutions.jts.geom.CoordinateSequence create(int size,
                                                             int dimension)
Creates a MCoordinateSequence instance initialized to the size parameter. Note that the dimension argument is ignored.

Specified by:
create in interface com.vividsolutions.jts.geom.CoordinateSequenceFactory
See Also:
CoordinateSequenceFactory.create(int, int)