Class LinearCoordinateSequence
java.lang.Object
org.mapfish.print.map.geotools.grid.LinearCoordinateSequence
- All Implemented Interfaces:
Cloneable,org.locationtech.jts.geom.CoordinateSequence
public final class LinearCoordinateSequence
extends Object
implements org.locationtech.jts.geom.CoordinateSequence, Cloneable
The LinearCoordinateSequence class.
-
Field Summary
Fields inherited from interface org.locationtech.jts.geom.CoordinateSequence
M, X, Y, Z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated.org.locationtech.jts.geom.CoordinateSequencecopy()org.locationtech.jts.geom.EnvelopeexpandEnvelope(org.locationtech.jts.geom.Envelope env) org.locationtech.jts.geom.CoordinategetCoordinate(int i) voidgetCoordinate(int index, org.locationtech.jts.geom.Coordinate coord) org.locationtech.jts.geom.CoordinategetCoordinateCopy(int i) intdoublegetOrdinate(int index, int ordinateIndex) doublegetX(int index) doublegetY(int index) setDimension(int dimension) Set the number of dimensions.setNumPoints(int numPoints) Set the number of points in the sequence.voidsetOrdinate(int index, int ordinateIndex, double value) setOrdinate0AxisDirection(org.geotools.api.referencing.cs.AxisDirection ordinate0AxisDirection) Set the axisDirection of the first ordinate.setOrigin(double axis1Origin, double axis2Origin) Set the origin point of the sequence.setSpacing(double spacing) Set the space between points.setVariableAxis(int variableAxis) Set the axis which will be variable.intsize()org.locationtech.jts.geom.Coordinate[]Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.locationtech.jts.geom.CoordinateSequence
createCoordinate, getM, getMeasures, getZ, hasM, hasZ
-
Constructor Details
-
LinearCoordinateSequence
public LinearCoordinateSequence()
-
-
Method Details
-
setOrigin
Set the origin point of the sequence.- Parameters:
axis1Origin- origin of axis 1axis2Origin- origin of axis 2
-
setVariableAxis
Set the axis which will be variable.- Parameters:
variableAxis- the axis which will be variable.
-
setNumPoints
Set the number of points in the sequence.- Parameters:
numPoints- the number of points in the sequence.
-
setSpacing
Set the space between points.- Parameters:
spacing- space between points.
-
setOrdinate0AxisDirection
public LinearCoordinateSequence setOrdinate0AxisDirection(org.geotools.api.referencing.cs.AxisDirection ordinate0AxisDirection) Set the axisDirection of the first ordinate.- Parameters:
ordinate0AxisDirection- the axisDirection of the first ordinate.
-
getDimension
public int getDimension()- Specified by:
getDimensionin interfaceorg.locationtech.jts.geom.CoordinateSequence
-
setDimension
Set the number of dimensions.- Parameters:
dimension- the number of dimensions for each point.
-
getCoordinate
public org.locationtech.jts.geom.Coordinate getCoordinate(int i) - Specified by:
getCoordinatein interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getCoordinateCopy
public org.locationtech.jts.geom.Coordinate getCoordinateCopy(int i) - Specified by:
getCoordinateCopyin interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getCoordinate
public void getCoordinate(int index, org.locationtech.jts.geom.Coordinate coord) - Specified by:
getCoordinatein interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getX
public double getX(int index) - Specified by:
getXin interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getY
public double getY(int index) - Specified by:
getYin interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getOrdinate
public double getOrdinate(int index, int ordinateIndex) - Specified by:
getOrdinatein interfaceorg.locationtech.jts.geom.CoordinateSequence
-
size
public int size()- Specified by:
sizein interfaceorg.locationtech.jts.geom.CoordinateSequence
-
setOrdinate
public void setOrdinate(int index, int ordinateIndex, double value) - Specified by:
setOrdinatein interfaceorg.locationtech.jts.geom.CoordinateSequence
-
toCoordinateArray
public org.locationtech.jts.geom.Coordinate[] toCoordinateArray()- Specified by:
toCoordinateArrayin interfaceorg.locationtech.jts.geom.CoordinateSequence
-
expandEnvelope
public org.locationtech.jts.geom.Envelope expandEnvelope(org.locationtech.jts.geom.Envelope env) - Specified by:
expandEnvelopein interfaceorg.locationtech.jts.geom.CoordinateSequence
-
clone
Deprecated.Recommendcopy()This is only here because we need to override the interface. -
copy
public org.locationtech.jts.geom.CoordinateSequence copy()- Specified by:
copyin interfaceorg.locationtech.jts.geom.CoordinateSequence
-
copy()