public final class CompoundCoordinates<C1 extends Coordinates<?>,C2 extends Coordinates<?>> extends Coordinates<CompoundCRS<C1,C2>>
Modifier and Type | Method and Description |
---|---|
CompoundCoordinates<?,?> |
copy()
Returns a copy of these coordinates
allocated
by the calling thread (possibly on the stack). |
CompoundCRS<C1,C2> |
getCoordinateReferenceSystem()
Returns the reference system for this coordinates.
|
int |
getDimension()
OpenGIS® - The length of coordinate sequence (the number of entries).
|
C1 |
getFirst()
Returns the first coordinates.
|
C2 |
getNext()
Returns the next coordinates.
|
double |
getOrdinate(int dimension)
OpenGIS® - Returns the ordinate at the specified dimension.
|
static <T1 extends Coordinates<?>,T2 extends Coordinates<?>> |
valueOf(T1 first,
T2 next)
Returns a compound coordinates made up of the specified coordinates.
|
clone, getCoordinates, getPosition, setOrdinate, toString, toText
public static <T1 extends Coordinates<?>,T2 extends Coordinates<?>> CompoundCoordinates<T1,T2> valueOf(T1 first, T2 next)
first
- the first coordinates.next
- the next coordinates.public CompoundCRS<C1,C2> getCoordinateReferenceSystem()
Coordinates
getCoordinateReferenceSystem
in class Coordinates<CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>
public int getDimension()
Coordinates
getDimension
in class Coordinates<CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>
public double getOrdinate(int dimension) throws java.lang.IndexOutOfBoundsException
Coordinates
getOrdinate
in class Coordinates<CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>
dimension
- The dimension in the range 0 to
dimension-1.java.lang.IndexOutOfBoundsException
- if the specified dimension is out
of bounds.public CompoundCoordinates<?,?> copy()
Coordinates
allocated
by the calling thread (possibly on the stack).copy
in interface javolution.lang.ValueType
copy
in class Coordinates<CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>