Last change
on this file since 4869 was 4869, checked in by jttt, 12 years ago |
Use final were appropriate
|
-
Property svn:eol-style
set to
native
|
File size:
700 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.projection.datum;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
7 | import org.openstreetmap.josm.data.projection.Ellipsoid;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * WGS84 datum. Transformation from and to WGS84 datum is a no-op.
|
---|
11 | */
|
---|
12 | public class WGS84Datum extends AbstractDatum {
|
---|
13 |
|
---|
14 | public static final WGS84Datum INSTANCE = new WGS84Datum();
|
---|
15 |
|
---|
16 | private WGS84Datum() {
|
---|
17 | super(tr("WGS84"), "WGS84", Ellipsoid.WGS84);
|
---|
18 | }
|
---|
19 |
|
---|
20 | @Override
|
---|
21 | public LatLon fromWGS84(LatLon ll) {
|
---|
22 | return ll;
|
---|
23 | }
|
---|
24 |
|
---|
25 | @Override
|
---|
26 | public LatLon toWGS84(LatLon ll) {
|
---|
27 | return ll;
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.