@Immutable public final class Longitude extends Angle
Latitude
,
AngleFormat
,
Serialized FormDefined in the sis-utility module
Modifier and Type | Field and Description |
---|---|
static double |
MAX_VALUE
Maximum usual value for longitude (+180.0°).
|
static double |
MIN_VALUE
Minimum usual value for longitude (-180.0°).
|
public static final double MIN_VALUE
org.apache.sis.referencing.cs.DefaultCoordinateSystemAxis#getMinimumValue()
,
Constant Field Valuespublic static final double MAX_VALUE
org.apache.sis.referencing.cs.DefaultCoordinateSystemAxis#getMaximumValue()
,
Constant Field Valuespublic Longitude(double λ)
λ
- Longitude value in decimal degrees.public Longitude(String string) throws NumberFormatException
Longitude
object that contain the angular value
represented by the string. The string should represent 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).
This is a convenience constructor mostly for testing purpose, since it uses a fixed
locale. Developers should consider using AngleFormat
for end-user applications
instead than this constructor.
string
- A string to be converted to a Longitude
.NumberFormatException
- if the string does not contain a parsable angle,
or represents a latitude angle.AngleFormat.parse(String)
Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.