@Immutable public final class Latitude extends Angle
Longitude
,
AngleFormat
,
Serialized FormDefined in the sis-utility module
Modifier and Type | Field and Description |
---|---|
static double |
MAX_VALUE
Maximum usual value for latitude (+90.0°).
|
static double |
MIN_VALUE
Minimum usual value for latitude (-90.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 Latitude(double φ)
φ
- Latitude value in decimal degrees.public Latitude(String string) throws NumberFormatException
Latitude
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 (N or S) is optional (default to North).
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 Latitude
.NumberFormatException
- if the string does not contain a parsable angle,
or represents a longitude angle.AngleFormat.parse(String)
Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.