|
JScience v4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.geography.coordinates.Coordinates<CompoundCRS<C1,C2>>
org.jscience.geography.coordinates.CompoundCoordinates<C1,C2>
public final class CompoundCoordinates<C1 extends Coordinates<?>,C2 extends Coordinates<?>>
This class represents a coordinates made up by combining two coordinates objects together.
| Method Summary | ||
|---|---|---|
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
|
valueOf(T1 first,
T2 next)
Returns a compound coordinates made up of the specified coordinates. |
|
| Methods inherited from class org.jscience.geography.coordinates.Coordinates |
|---|
clone, getCoordinates, getPosition, setOrdinate, toString, toText |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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 C1 getFirst()
public C2 getNext()
public CompoundCRS<C1,C2> getCoordinateReferenceSystem()
Coordinates
getCoordinateReferenceSystem in interface org.opengis.spatialschema.geometry.DirectPositiongetCoordinateReferenceSystem in class Coordinates<CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>public int getDimension()
Coordinates
getDimension in interface org.opengis.spatialschema.geometry.DirectPositiongetDimension in class Coordinates<CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>
public double getOrdinate(int dimension)
throws java.lang.IndexOutOfBoundsException
Coordinates
getOrdinate 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.
java.lang.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<?>>>
|
JScience v4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||