| |
|
| java.lang.Object org.geotools.measure.Angle org.geotools.measure.Latitude
Latitude | final public class Latitude extends Angle (Code) | | A latitude angle. Positive latitudes are North, while negative
latitudes are South. This class has no direct OpenGIS equivalent.
since: 2.0 version: $Id: Latitude.java 20874 2006-08-07 10:00:01Z jgarnett $ author: Martin Desruisseaux See Also: Longitude See Also: AngleFormat |
Field Summary | |
final public static double | MAX_VALUE Maximum legal value for latitude (+90°). | final public static double | MIN_VALUE Minimum legal value for latitude (-90°). |
Constructor Summary | |
public | Latitude(double theta) Contruct a new latitude with the specified value. | public | Latitude(String theta) Constructs a newly allocated
Latitude object that
represents the latitude value represented by the string. |
MAX_VALUE | final public static double MAX_VALUE(Code) | | Maximum legal value for latitude (+90°).
|
MIN_VALUE | final public static double MIN_VALUE(Code) | | Minimum legal value for latitude (-90°).
|
Latitude | public Latitude(double theta)(Code) | | Contruct a new latitude with the specified value.
Parameters: theta - Angle in degrees. |
Latitude | public Latitude(String theta) throws NumberFormatException(Code) | | 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. |
|
|
|