org.geotoolkit.measure
Class Latitude
Object
Angle
Latitude
- All Implemented Interfaces:
- Serializable, Comparable<Angle>
@Immutable
public final class Latitude
- extends Angle
A latitude angle. Positive latitudes are North, while negative
latitudes are South. This class has no direct OpenGIS equivalent.
- Since:
- 1.0
- Version:
- 3.00
- Author:
- Martin Desruisseaux (MPO, IRD)
- See Also:
Longitude,
AngleFormat,
Serialized Form
- Module:
|
Field Summary |
static double |
MAX_VALUE
Maximum legal value for latitude (+90°). |
static double |
MIN_VALUE
Minimum legal value for latitude (-90°). |
|
Constructor Summary |
Latitude(double theta)
Contruct a new latitude with the specified value. |
Latitude(String theta)
Constructs a newly allocated Latitude object that
represents the latitude value represented by the string. |
MIN_VALUE
public static final double MIN_VALUE
- Minimum legal value for latitude (-90°).
- See Also:
- Constant Field Values
MAX_VALUE
public static final double MAX_VALUE
- Maximum legal value for latitude (+90°).
- See Also:
- Constant Field Values
Latitude
public Latitude(double theta)
- Contruct a new latitude with the specified value.
- Parameters:
theta - Angle in degrees.
Latitude
public Latitude(String theta)
throws NumberFormatException
- Constructs a newly allocated
Latitude object that
represents the latitude 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 (N or S) is optional (default to North).
- Parameters:
theta - A string to be converted to a Latitude.
- Throws:
NumberFormatException - if the string does not contain a parsable latitude.
Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.