Last change
on this file since 15456 was 13627, checked in by Don-vip, 6 years ago |
see #16129 - datum javadoc
|
-
Property svn:eol-style
set to
native
|
File size:
765 bytes
|
Line | |
---|
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" the coordinates.
|
---|
9 | * @since 4285
|
---|
10 | */
|
---|
11 | public class NullDatum extends AbstractDatum {
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Constructs a new {@code NullDatum}.
|
---|
15 | * @param name name of the datum
|
---|
16 | * @param ellps the ellipsoid used
|
---|
17 | */
|
---|
18 | public NullDatum(String name, Ellipsoid ellps) {
|
---|
19 | super(name, null, ellps);
|
---|
20 | }
|
---|
21 |
|
---|
22 | @Override
|
---|
23 | public LatLon toWGS84(LatLon ll) {
|
---|
24 | return ll;
|
---|
25 | }
|
---|
26 |
|
---|
27 | @Override
|
---|
28 | public LatLon fromWGS84(LatLon ll) {
|
---|
29 | return ll;
|
---|
30 | }
|
---|
31 |
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.