| |
|
| java.lang.Object org.geotools.measure.Angle org.geotools.measure.Longitude
Longitude | final public class Longitude extends Angle (Code) | | A longitude angle. Positive longitudes are East, while negative longitudes are West.
since: 2.0 version: $Id: Longitude.java 20874 2006-08-07 10:00:01Z jgarnett $ author: Martin Desruisseaux See Also: Latitude See Also: AngleFormat |
Field Summary | |
final public static double | MAX_VALUE Maximum legal value for longitude (+180°). | final public static double | MIN_VALUE Minimum legal value for longitude (-180°). |
Constructor Summary | |
public | Longitude(double theta) Contruct a new longitude with the specified value. | public | Longitude(String theta) Constructs a newly allocated
Longitude object that
represents the longitude value represented by the string. |
MAX_VALUE | final public static double MAX_VALUE(Code) | | Maximum legal value for longitude (+180°).
|
MIN_VALUE | final public static double MIN_VALUE(Code) | | Minimum legal value for longitude (-180°).
|
Longitude | public Longitude(double theta)(Code) | | Contruct a new longitude with the specified value.
Parameters: theta - Angle in degrees. |
Longitude | public Longitude(String theta) throws NumberFormatException(Code) | | 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: theta - A string to be converted to a Longitude . throws: NumberFormatException - if the string does not contain a parsable longitude. |
|
|
|