|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAngle
Latitude
public final class Latitude
A latitude angle. Positive latitudes are North, while negative latitudes are South. This class has no direct OpenGIS equivalent.
Longitude,
AngleFormat,
Serialized Form
modules/library/referencing (gt2-referencing.jar) (Maven report) (SVN head)| Field Summary | |
|---|---|
static double |
MAX_VALUE
Maximum legal value for latitude (+90°). |
static double |
MIN_VALUE
Minimum legal value for latitude (-90°). |
| Constructor Summary | |
|---|---|
Latitude(double theta)
Contruct a new latitude with the specified value. |
|
Latitude(String theta)
Constructs a newly allocated Latitude object that
represents the latitude value represented by the string. |
|
| Method Summary |
|---|
| Methods inherited from class Angle |
|---|
compareTo, degrees, equals, hashCode, radians, toString |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final double MIN_VALUE
public static final double MAX_VALUE
| Constructor Detail |
|---|
public Latitude(double theta)
theta - Angle in degrees.
public Latitude(String theta)
throws NumberFormatException
Latitude object that
represents the latitude 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 (N or S) is optional (default to North).
theta - A string to be converted to a Latitude.
NumberFormatException - if the string does not contain a parsable latitude.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||