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, toTextpublic static <T1 extends Coordinates<?>,T2 extends Coordinates<?>> CompoundCoordinates<T1,T2> valueOf(T1 first, T2 next)
first - the first coordinates.next - the next coordinates.public C1 getFirst()
public C2 getNext()
public CompoundCRS<C1,C2> getCoordinateReferenceSystem()
CoordinatesgetCoordinateReferenceSystem in interface org.opengis.spatialschema.geometry.DirectPositiongetCoordinateReferenceSystem in class Coordinates<CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>public int getDimension()
CoordinatesgetDimension in interface org.opengis.spatialschema.geometry.DirectPositiongetDimension in class Coordinates<CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>public double getOrdinate(int dimension)
throws IndexOutOfBoundsException
CoordinatesgetOrdinate in interface org.opengis.spatialschema.geometry.DirectPositiongetOrdinate in class Coordinates<CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>dimension - The dimension in the range 0 to
dimension-1.IndexOutOfBoundsException - if the specified dimension is out
of bounds.public CompoundCoordinates<?,?> copy()
Coordinatesallocated
by the calling thread (possibly on the stack).copy in interface javolution.lang.ValueTypecopy in class Coordinates<CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>