public final class Longitude extends Angle
Latitude
,
AngleFormat
,
Serialized FormModifier and Type | Field and Description |
---|---|
static double |
MAX_VALUE
Maximum legal value for longitude (+180°).
|
static double |
MIN_VALUE
Minimum legal value for longitude (-180°).
|
public static final double MIN_VALUE
public static final double MAX_VALUE
public Longitude(double theta)
theta
- Angle in degrees.public Longitude(String theta) throws NumberFormatException
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).theta
- A string to be converted to a Longitude
.NumberFormatException
- if the string does not contain a parsable longitude.Copyright © 1996–2023 Geotools. All rights reserved.