Package org.geotools.measure
Class Longitude
- All Implemented Interfaces:
- Serializable,- Comparable<Angle>
A longitude angle. Positive longitudes are East, while negative longitudes are West.
- Since:
- 2.0
- Author:
- Martin Desruisseaux (PMO, IRD)
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
MIN_VALUEpublic static final double MIN_VALUEMinimum legal value for longitude (-180°).- See Also:
 
- 
MAX_VALUEpublic static final double MAX_VALUEMaximum legal value for longitude (+180°).- See Also:
 
 
- 
- 
Constructor Details- 
Longitudepublic Longitude(double theta) Contruct a new longitude with the specified value.- Parameters:
- theta- Angle in degrees.
 
- 
LongitudeConstructs a newly allocatedLongitudeobject 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.
 
 
-