Last change
on this file since 8840 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
|
Rev | Line | |
---|
[5237] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.data.projection.datum;
|
---|
| 3 |
|
---|
| 4 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
| 5 | import 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 | */
|
---|
| 11 | public 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.