public class MCoordinateSequence
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
MCoordinateSequence(Coordinate[] copyCoords)
Constructor that makes a copy of an array of Coordinates.
|
MCoordinateSequence(CoordinateSequence coordSeq)
Constructor that makes a copy of a CoordinateSequence.
|
MCoordinateSequence(MCoordinate[] coordinates)
Copy constructor -- simply aliases the input array, for better
performance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
static MCoordinate[] |
copy(Coordinate[] coordinates) |
static MCoordinate[] |
copy(CoordinateSequence coordSeq) |
Envelope |
expandEnvelope(Envelope env) |
Coordinate |
getCoordinate(int i) |
void |
getCoordinate(int index,
Coordinate coord) |
Coordinate |
getCoordinateCopy(int index) |
int |
getDimension() |
double |
getM(int index) |
double |
getOrdinate(int index,
int ordinateIndex) |
double |
getX(int index) |
double |
getY(int index) |
void |
setOrdinate(int index,
int ordinateIndex,
double value) |
int |
size() |
Coordinate[] |
toCoordinateArray() |
java.lang.String |
toString() |
public MCoordinateSequence(MCoordinate[] coordinates)
coordinates
- public MCoordinateSequence(Coordinate[] copyCoords)
copyCoords
- public MCoordinateSequence(CoordinateSequence coordSeq)
coordSeq
- public static MCoordinate[] copy(Coordinate[] coordinates)
public static MCoordinate[] copy(CoordinateSequence coordSeq)
public int getDimension()
com.vividsolutions.jts.geom.CoordinateSequence#getDimension()
public Coordinate getCoordinate(int i)
public Coordinate getCoordinateCopy(int index)
com.vividsolutions.jts.geom.CoordinateSequence#getCoordinateCopy(int)
public void getCoordinate(int index, Coordinate coord)
com.vividsolutions.jts.geom.CoordinateSequence#getCoordinate(int,
com.vividsolutions.jts.geom.Coordinate)
public double getX(int index)
com.vividsolutions.jts.geom.CoordinateSequence#getX(int)
public double getY(int index)
com.vividsolutions.jts.geom.CoordinateSequence#getY(int)
public double getM(int index)
public double getOrdinate(int index, int ordinateIndex)
com.vividsolutions.jts.geom.CoordinateSequence#getOrdinate(int, int)
public void setOrdinate(int index, int ordinateIndex, double value)
com.vividsolutions.jts.geom.CoordinateSequence#setOrdinate(int, int, double)
public java.lang.Object clone()
clone
in class java.lang.Object
public int size()
public Coordinate[] toCoordinateArray()
public Envelope expandEnvelope(Envelope env)
public java.lang.String toString()
toString
in class java.lang.Object