Class Height
- java.lang.Object
 - 
- org.jscience.geography.coordinates.Coordinates<VerticalCRS<?>>
 - 
- org.jscience.geography.coordinates.Height
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<javax.measure.Measurable<javax.measure.quantity.Length>>,javax.measure.Measurable<javax.measure.quantity.Length>,javolution.lang.Immutable,javolution.lang.Realtime,javolution.lang.ValueType,javolution.xml.XMLSerializable,org.opengis.spatialschema.geometry.DirectPosition,org.opengis.spatialschema.geometry.geometry.Position,org.opengis.util.Cloneable
public final class Height extends Coordinates<VerticalCRS<?>> implements javax.measure.Measurable<javax.measure.quantity.Length>
This class represents theverticalheight above the WGS84 ellipsoid.- Version:
 - 3.0, February 6, 2006
 - Author:
 - Jean-Marie Dautelle
 - See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static VerticalCRS<Height>CRSHolds the coordinate reference system for all instances of this class. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(javax.measure.Measurable<javax.measure.quantity.Length> arg0)Heightcopy()Returns a copy of these coordinatesallocatedby the calling thread (possibly on the stack).doubledoubleValue(javax.measure.unit.Unit<javax.measure.quantity.Length> unit)Returns the value of this measurable stated in the specified unit as adouble.VerticalCRS<?>getCoordinateReferenceSystem()Returns the reference system for this coordinates.intgetDimension()OpenGIS® - The length of coordinate sequence (the number of entries).doublegetOrdinate(int dimension)OpenGIS® - Returns the ordinate at the specified dimension.longlongValue(javax.measure.unit.Unit<javax.measure.quantity.Length> unit)Returns the estimated integral value of this measurable stated in the specified unit as along.static HeightvalueOf(double value, javax.measure.unit.Unit<javax.measure.quantity.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 
 - 
 
 - 
 
- 
- 
Field Detail
- 
CRS
public static final VerticalCRS<Height> CRS
Holds the coordinate reference system for all instances of this class. 
 - 
 
- 
Method Detail
- 
valueOf
public static Height valueOf(double value, javax.measure.unit.Unit<javax.measure.quantity.Length> unit)
Returns the vertical position corresponding to the specified coordinates.- Parameters:
 value- the height above the WGS84 ellipsoid stated in the specified unit.unit- the length unit in which the height is stated.- Returns:
 - the corresponding vertical position.
 
 
- 
getCoordinateReferenceSystem
public VerticalCRS<?> getCoordinateReferenceSystem()
Description copied from class:CoordinatesReturns the reference system for this coordinates.- Specified by:
 getCoordinateReferenceSystemin interfaceorg.opengis.spatialschema.geometry.DirectPosition- Specified by:
 getCoordinateReferenceSystemin classCoordinates<VerticalCRS<?>>- Returns:
 - the associated coordinate reference system.
 
 
- 
getDimension
public int getDimension()
Description copied from class:CoordinatesOpenGIS® - The length of coordinate sequence (the number of entries). This is determined by the coordinate reference system.- Specified by:
 getDimensionin interfaceorg.opengis.spatialschema.geometry.DirectPosition- Specified by:
 getDimensionin classCoordinates<VerticalCRS<?>>- Returns:
 - the dimensionality of this position.
 
 
- 
getOrdinate
public double getOrdinate(int dimension) throws java.lang.IndexOutOfBoundsException
Description copied from class:CoordinatesOpenGIS® - Returns the ordinate at the specified dimension.- Specified by:
 getOrdinatein interfaceorg.opengis.spatialschema.geometry.DirectPosition- Specified by:
 getOrdinatein classCoordinates<VerticalCRS<?>>- Parameters:
 dimension- The dimension in the range 0 to dimension-1.- Returns:
 - The coordinate at the specified dimension.
 - Throws:
 java.lang.IndexOutOfBoundsException- if the specified dimension is out of bounds.
 
- 
doubleValue
public final double doubleValue(javax.measure.unit.Unit<javax.measure.quantity.Length> unit)
Description copied from interface:javax.measure.MeasurableReturns the value of this measurable stated in the specified unit as adouble. If the measurable has too great a magnitude to be represented as adouble, it will be converted toDouble.NEGATIVE_INFINITYorDouble.POSITIVE_INFINITYas appropriate.- Specified by:
 doubleValuein interfacejavax.measure.Measurable<javax.measure.quantity.Length>- Parameters:
 unit- the unit in which this measurable value is stated.- Returns:
 - the numeric value after conversion to type 
double. 
 
- 
longValue
public final long longValue(javax.measure.unit.Unit<javax.measure.quantity.Length> unit)
Description copied from interface:javax.measure.MeasurableReturns the estimated integral value of this measurable stated in the specified unit as along.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).- Specified by:
 longValuein interfacejavax.measure.Measurable<javax.measure.quantity.Length>- Parameters:
 unit- the unit in which the measurable value is stated.- Returns:
 - the numeric value after conversion to type 
long. 
 
- 
compareTo
public int compareTo(javax.measure.Measurable<javax.measure.quantity.Length> arg0)
- Specified by:
 compareToin interfacejava.lang.Comparable<javax.measure.Measurable<javax.measure.quantity.Length>>
 
- 
copy
public Height copy()
Description copied from class:CoordinatesReturns a copy of these coordinatesallocatedby the calling thread (possibly on the stack).- Specified by:
 copyin interfacejavolution.lang.ValueType- Specified by:
 copyin classCoordinates<VerticalCRS<?>>- Returns:
 - an identical and independant copy of these coordinates .
 
 
 - 
 
 -