source: josm/trunk/src/org/openstreetmap/josm/data/projection/datum/NullDatum.java@ 9600

Last change on this file since 9600 was 7937, checked in by bastiK, 9 years ago

add subversion property svn:eol=native

  • Property svn:eol-style set to native
File size: 618 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.projection.datum;
3
4import org.openstreetmap.josm.data.coor.LatLon;
5import org.openstreetmap.josm.data.projection.Ellipsoid;
6
7/**
8 * Null Datum does not convert from / to WGS84 ellipsoid, but simply "casts"
9 * the coordinates.
10 */
11public class NullDatum extends AbstractDatum {
12
13 public NullDatum(String name, Ellipsoid ellps) {
14 super(name, null, ellps);
15 }
16
17 @Override
18 public LatLon toWGS84(LatLon ll) {
19 return ll;
20 }
21
22 @Override
23 public LatLon fromWGS84(LatLon ll) {
24 return ll;
25 }
26
27}
Note: See TracBrowser for help on using the repository browser.