source: josm/trunk/src/org/openstreetmap/josm/data/projection/datum/WGS84Datum.java@ 5073

Last change on this file since 5073 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.
2package org.openstreetmap.josm.data.projection.datum;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import org.openstreetmap.josm.data.coor.LatLon;
7import org.openstreetmap.josm.data.projection.Ellipsoid;
8
9/**
10 * WGS84 datum. Transformation from and to WGS84 datum is a no-op.
11 */
12public 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.