Class LinearCoordinateSequence
- java.lang.Object
-
- org.mapfish.print.map.geotools.grid.LinearCoordinateSequence
-
- All Implemented Interfaces:
java.lang.Cloneable
,org.locationtech.jts.geom.CoordinateSequence
public final class LinearCoordinateSequence extends java.lang.Object implements org.locationtech.jts.geom.CoordinateSequence, java.lang.Cloneable
The LinearCoordinateSequence class.
-
-
Constructor Summary
Constructors Constructor Description LinearCoordinateSequence()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object
clone()
Deprecated.Recommendcopy()
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.geotools.api.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()
-
-
-
Method Detail
-
setOrigin
public LinearCoordinateSequence setOrigin(double axis1Origin, double axis2Origin)
Set the origin point of the sequence.- Parameters:
axis1Origin
- origin of axis 1axis2Origin
- origin of axis 2
-
setVariableAxis
public LinearCoordinateSequence setVariableAxis(int variableAxis)
Set the axis which will be variable.- Parameters:
variableAxis
- the axis which will be variable.
-
setNumPoints
public LinearCoordinateSequence setNumPoints(int numPoints)
Set the number of points in the sequence.- Parameters:
numPoints
- the number of points in the sequence.
-
setSpacing
public LinearCoordinateSequence setSpacing(double spacing)
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
public LinearCoordinateSequence setDimension(int dimension)
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
public java.lang.Object clone()
Deprecated.Recommendcopy()
This is only here because we need to override the interface.- Specified by:
clone
in interfaceorg.locationtech.jts.geom.CoordinateSequence
- Overrides:
clone
in classjava.lang.Object
-
copy
public org.locationtech.jts.geom.CoordinateSequence copy()
- Specified by:
copy
in interfaceorg.locationtech.jts.geom.CoordinateSequence
-
-