Package org.geotools.measure
Class Latitude
- All Implemented Interfaces:
Serializable
,Comparable<Angle>
A latitude angle. Positive latitudes are North, while negative latitudes are South. This class has no direct OpenGIS
equivalent.
- Since:
- 2.0
- Author:
- Martin Desruisseaux (PMO, IRD)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MIN_VALUE
public static final double MIN_VALUEMinimum legal value for latitude (-90°).- See Also:
-
MAX_VALUE
public static final double MAX_VALUEMaximum legal value for latitude (+90°).- See Also:
-
-
Constructor Details
-
Latitude
public Latitude(double theta) Contruct a new latitude with the specified value.- Parameters:
theta
- Angle in degrees.
-
Latitude
Constructs a newly allocatedLatitude
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 aLatitude
.- Throws:
NumberFormatException
- if the string does not contain a parsable latitude.
-