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.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
double
getOrdinate
(int index, int ordinateIndex) double
getX
(int index) double
getY
(int index) setDimension
(int dimension) Set the number of dimensions.setNumPoints
(int numPoints) Set the number of points in the sequence.void
setOrdinate
(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.int
size()
org.locationtech.jts.geom.Coordinate[]
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getDimension
in 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:
getCoordinate
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getCoordinateCopy
public org.locationtech.jts.geom.Coordinate getCoordinateCopy(int i) - Specified by:
getCoordinateCopy
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getCoordinate
public void getCoordinate(int index, org.locationtech.jts.geom.Coordinate coord) - Specified by:
getCoordinate
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getX
public double getX(int index) - Specified by:
getX
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getY
public double getY(int index) - Specified by:
getY
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
getOrdinate
public double getOrdinate(int index, int ordinateIndex) - Specified by:
getOrdinate
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
size
public int size()- Specified by:
size
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
setOrdinate
public void setOrdinate(int index, int ordinateIndex, double value) - Specified by:
setOrdinate
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
toCoordinateArray
public org.locationtech.jts.geom.Coordinate[] toCoordinateArray()- Specified by:
toCoordinateArray
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
expandEnvelope
public org.locationtech.jts.geom.Envelope expandEnvelope(org.locationtech.jts.geom.Envelope env) - Specified by:
expandEnvelope
in 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:
copy
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
copy()