|
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<VerticalCRS<?>>
org.jscience.geography.coordinates.Altitude
public final class Altitude
This class represents the Mean-Sea-Level vertical
altitude (MSL).
Note: The current implementation approximates the MSL altitude to the WGS-86 Ellipsoid Height. Future implementations will use lookup tables in order to correct for regional discrepencies.
| Field Summary | |
|---|---|
static VerticalCRS<Altitude> |
CRS
Holds the coordinate reference system for all instances of this class. |
| Method Summary | |
|---|---|
int |
compareTo(Measurable<Length> measure)
|
Altitude |
copy()
Returns a copy of these coordinates allocated
by the calling thread (possibly on the stack). |
double |
doubleValue(Unit<Length> unit)
Returns the value of this measurable stated in the specified unit as a double. |
VerticalCRS<?> |
getCoordinateReferenceSystem()
Returns the reference system for this coordinates. |
int |
getDimension()
OpenGIS® - The length of coordinate sequence (the number of entries). |
double |
getOrdinate(int dimension)
OpenGIS® - Returns the ordinate at the specified dimension. |
long |
longValue(Unit<Length> unit)
Returns the estimated integral value of this measurable stated in the specified unit as a long. |
static Altitude |
valueOf(double value,
Unit<Length> unit)
Returns the vertical position corresponding to 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 |
| Field Detail |
|---|
public static final VerticalCRS<Altitude> CRS
| Method Detail |
|---|
public static Altitude valueOf(double value,
Unit<Length> unit)
value - the mean sea level altitude stated in the specified unit.unit - the length unit in which the altitude is stated.
public VerticalCRS<?> getCoordinateReferenceSystem()
Coordinates
getCoordinateReferenceSystem in interface org.opengis.spatialschema.geometry.DirectPositiongetCoordinateReferenceSystem in class Coordinates<VerticalCRS<?>>public int getDimension()
Coordinates
getDimension in interface org.opengis.spatialschema.geometry.DirectPositiongetDimension in class Coordinates<VerticalCRS<?>>
public double getOrdinate(int dimension)
throws java.lang.IndexOutOfBoundsException
Coordinates
getOrdinate in interface org.opengis.spatialschema.geometry.DirectPositiongetOrdinate in class Coordinates<VerticalCRS<?>>dimension - The dimension in the range 0 to
dimension-1.
java.lang.IndexOutOfBoundsException - if the specified dimension is out
of bounds.public final double doubleValue(Unit<Length> unit)
Measurabledouble. If the measurable has too great a magnitude to
be represented as a double, it will be converted to
Double.NEGATIVE_INFINITY or
Double.POSITIVE_INFINITY as appropriate.
doubleValue in interface Measurable<Length>unit - the unit in which this measurable value is stated.
double.public final long longValue(Unit<Length> unit)
Measurablelong.
Note: This method differs from the Number.longValue()
in the sense that the closest integer value is returned
and an ArithmeticException is raised instead
of a bit truncation in case of overflow (safety critical).
longValue in interface Measurable<Length>unit - the unit in which the measurable value is stated.
long.public int compareTo(Measurable<Length> measure)
compareTo in interface java.lang.Comparable<Measurable<Length>>public Altitude copy()
Coordinatesallocated
by the calling thread (possibly on the stack).
copy in interface ValueTypecopy in class Coordinates<VerticalCRS<?>>
|
JScience v4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||