deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.model.csct.pt
Class Longitude

java.lang.Object
  extended by org.deegree.model.csct.pt.Angle
      extended by org.deegree.model.csct.pt.Longitude
All Implemented Interfaces:
Serializable, Comparable

public final class Longitude
extends Angle

A longitude angle. Positive longitudes are East, while negative longitudes are West. This class has no direct OpenGIS equivalent.

Version:
1.0
Author:
Martin Desruisseaux
See Also:
Latitude, AngleFormat, Serialized Form

Field Summary
static double MAX_VALUE
          Maximum legal value for longitude (+180�).
static double MIN_VALUE
          Minimum legal value for longitude (-180�).
 
Constructor Summary
Longitude(double theta)
          Contruct a new longitude with the specified value.
Longitude(String source)
          Constructs a newly allocated Longitude object that represents the longitude value represented by the string.
 
Method Summary
 
Methods inherited from class org.deegree.model.csct.pt.Angle
compareTo, degrees, equals, hashCode, radians, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MIN_VALUE

public static final double MIN_VALUE
Minimum legal value for longitude (-180�).

See Also:
Constant Field Values

MAX_VALUE

public static final double MAX_VALUE
Maximum legal value for longitude (+180�).

See Also:
Constant Field Values
Constructor Detail

Longitude

public Longitude(double theta)
Contruct a new longitude with the specified value.

Parameters:
theta - Angle in degrees.

Longitude

public Longitude(String source)
          throws NumberFormatException
Constructs a newly allocated Longitude object that represents the longitude value represented by the string. The string should represents an angle in either fractional degrees (e.g. 45.5�) or degrees with minutes and seconds (e.g. 45�30'). The hemisphere (E or W) is optional (default to East).

Parameters:
source - A string to be converted to a Longitude.
Throws:
NumberFormatException - if the string does not contain a parsable longitude.

deegree 2.1 (2007/11/08 09:57 build-328-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net