1 | /*
|
---|
2 | * GeoTools - The Open Source Java GIS Toolkit
|
---|
3 | * http://geotools.org
|
---|
4 | *
|
---|
5 | * (C) 1999-2008, Open Source Geospatial Foundation (OSGeo)
|
---|
6 | *
|
---|
7 | * This library is free software; you can redistribute it and/or
|
---|
8 | * modify it under the terms of the GNU Lesser General Public
|
---|
9 | * License as published by the Free Software Foundation;
|
---|
10 | * version 2.1 of the License.
|
---|
11 | *
|
---|
12 | * This library is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
15 | * Lesser General Public License for more details.
|
---|
16 | */
|
---|
17 | package org.geotools.measure;
|
---|
18 |
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * A latitude angle. Positive latitudes are North, while negative
|
---|
22 | * latitudes are South. This class has no direct OpenGIS equivalent.
|
---|
23 | *
|
---|
24 | * @since 2.0
|
---|
25 | *
|
---|
26 | * @source $URL: http://svn.osgeo.org/geotools/branches/2.7.x/modules/library/referencing/src/main/java/org/geotools/measure/Latitude.java $
|
---|
27 | * @version $Id: Latitude.java 37299 2011-05-25 05:21:24Z mbedward $
|
---|
28 | * @author Martin Desruisseaux (PMO, IRD)
|
---|
29 | *
|
---|
30 | * @see Longitude
|
---|
31 | * @see AngleFormat
|
---|
32 | */
|
---|
33 | public final class Latitude extends Angle {
|
---|
34 | /**
|
---|
35 | * Serial number for interoperability with different versions.
|
---|
36 | */
|
---|
37 | private static final long serialVersionUID = -4496748683919618976L;
|
---|
38 |
|
---|
39 | /**
|
---|
40 | * Minimum legal value for latitude (-90°).
|
---|
41 | */
|
---|
42 | public static final double MIN_VALUE = -90;
|
---|
43 |
|
---|
44 | /**
|
---|
45 | * Maximum legal value for latitude (+90°).
|
---|
46 | */
|
---|
47 | public static final double MAX_VALUE = +90;
|
---|
48 |
|
---|
49 | /**
|
---|
50 | * Contruct a new latitude with the specified value.
|
---|
51 | *
|
---|
52 | * @param theta Angle in degrees.
|
---|
53 | */
|
---|
54 | public Latitude(final double theta) {
|
---|
55 | super(theta);
|
---|
56 | }
|
---|
57 | }
|
---|