public final class LinearCoordinateSequence
extends java.lang.Object
implements org.locationtech.jts.geom.CoordinateSequence, java.lang.Cloneable
| Constructor and Description |
|---|
LinearCoordinateSequence() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
org.locationtech.jts.geom.CoordinateSequence |
copy() |
org.locationtech.jts.geom.Envelope |
expandEnvelope(org.locationtech.jts.geom.Envelope env) |
org.locationtech.jts.geom.Coordinate |
getCoordinate(int i) |
void |
getCoordinate(int index,
org.locationtech.jts.geom.Coordinate coord) |
org.locationtech.jts.geom.Coordinate |
getCoordinateCopy(int i) |
int |
getDimension() |
double |
getOrdinate(int index,
int ordinateIndex) |
double |
getX(int index) |
double |
getY(int index) |
LinearCoordinateSequence |
setDimension(int dimension)
Set the number of dimensions.
|
LinearCoordinateSequence |
setNumPoints(int numPoints)
Set the number of points in the sequence.
|
void |
setOrdinate(int index,
int ordinateIndex,
double value) |
LinearCoordinateSequence |
setOrdinate0AxisDirection(org.opengis.referencing.cs.AxisDirection ordinate0AxisDirection)
Set the axisDirection of the first ordinate.
|
LinearCoordinateSequence |
setOrigin(double axis1Origin,
double axis2Origin)
Set the origin point of the sequence.
|
LinearCoordinateSequence |
setSpacing(double spacing)
Set the space between points.
|
LinearCoordinateSequence |
setVariableAxis(int variableAxis)
Set the axis which will be variable.
|
int |
size() |
org.locationtech.jts.geom.Coordinate[] |
toCoordinateArray() |
public LinearCoordinateSequence setOrigin(double axis1Origin, double axis2Origin)
axis1Origin - origin of axis 1axis2Origin - origin of axis 2public LinearCoordinateSequence setVariableAxis(int variableAxis)
variableAxis - the axis which will be variable.public LinearCoordinateSequence setNumPoints(int numPoints)
numPoints - the number of points in the sequence.public LinearCoordinateSequence setSpacing(double spacing)
spacing - space between points.public LinearCoordinateSequence setOrdinate0AxisDirection(org.opengis.referencing.cs.AxisDirection ordinate0AxisDirection)
ordinate0AxisDirection - the axisDirection of the first ordinate.public int getDimension()
getDimension in interface org.locationtech.jts.geom.CoordinateSequencepublic LinearCoordinateSequence setDimension(int dimension)
dimension - the number of dimensions for each point.public org.locationtech.jts.geom.Coordinate getCoordinate(int i)
getCoordinate in interface org.locationtech.jts.geom.CoordinateSequencepublic org.locationtech.jts.geom.Coordinate getCoordinateCopy(int i)
getCoordinateCopy in interface org.locationtech.jts.geom.CoordinateSequencepublic void getCoordinate(int index,
org.locationtech.jts.geom.Coordinate coord)
getCoordinate in interface org.locationtech.jts.geom.CoordinateSequencepublic double getX(int index)
getX in interface org.locationtech.jts.geom.CoordinateSequencepublic double getY(int index)
getY in interface org.locationtech.jts.geom.CoordinateSequencepublic double getOrdinate(int index,
int ordinateIndex)
getOrdinate in interface org.locationtech.jts.geom.CoordinateSequencepublic int size()
size in interface org.locationtech.jts.geom.CoordinateSequencepublic void setOrdinate(int index,
int ordinateIndex,
double value)
setOrdinate in interface org.locationtech.jts.geom.CoordinateSequencepublic org.locationtech.jts.geom.Coordinate[] toCoordinateArray()
toCoordinateArray in interface org.locationtech.jts.geom.CoordinateSequencepublic org.locationtech.jts.geom.Envelope expandEnvelope(org.locationtech.jts.geom.Envelope env)
expandEnvelope in interface org.locationtech.jts.geom.CoordinateSequencepublic java.lang.Object clone()
clone in interface org.locationtech.jts.geom.CoordinateSequenceclone in class java.lang.Objectpublic org.locationtech.jts.geom.CoordinateSequence copy()
copy in interface org.locationtech.jts.geom.CoordinateSequence