Class AxisPlaneCoordinateSequence

Hierarchy: Object , AxisPlaneCoordinateSequence
All Implemented Interfaces: Cloneable , CoordinateSequence
public class AxisPlaneCoordinateSequence
implements CoordinateSequence
A CoordinateSequence wrapper which projects 3D coordinates into one of the three Cartesian axis planes, using the standard orthonormal projection (i.e. simply selecting the appropriate ordinates into the XY ordinates). The projected data is represented as 2D coordinates.
Authors:
mdavis
public static CoordinateSequence projectToXY(CoordinateSequence seq)
Creates a wrapper projecting to the XY plane.
Parameters:
seq - seq the sequence to be projected
Returns:
a sequence which projects coordinates
public static CoordinateSequence projectToXZ(CoordinateSequence seq)
Creates a wrapper projecting to the XZ plane.
Parameters:
seq - seq the sequence to be projected
Returns:
a sequence which projects coordinates
public static CoordinateSequence projectToYZ(CoordinateSequence seq)
Creates a wrapper projecting to the YZ plane.
Parameters:
seq - seq the sequence to be projected
Returns:
a sequence which projects coordinates
public int getDimension()
public Coordinate getCoordinate(int i)
public Coordinate getCoordinateCopy(int i)
public void getCoordinate(int index, Coordinate coord)
public double getX(int index)
public double getY(int index)
public double getZ(int index)
public double getOrdinate(int index, int ordinateIndex)
public int size()
public void setOrdinate(int index, int ordinateIndex, double value)
public Coordinate[] toCoordinateArray()
public Envelope expandEnvelope(Envelope env)
public Object clone()