Last change
on this file since 12788 was 9243, checked in by Don-vip, 8 years ago |
javadoc update
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
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 | * Represents a geodetic datum.
|
---|
9 | *
|
---|
10 | * Basically it provides conversion functions from and to the WGS84 datum.
|
---|
11 | */
|
---|
12 | public interface Datum {
|
---|
13 |
|
---|
14 | /**
|
---|
15 | * @return a human readable name of this projection
|
---|
16 | */
|
---|
17 | String getName();
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * Replies the Proj.4 identifier.
|
---|
21 | * @return the Proj.4 identifier (as reported by cs2cs -ld)
|
---|
22 | * If no id exists, return null.
|
---|
23 | */
|
---|
24 | String getProj4Id();
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * @return the ellipsoid associated with this datum
|
---|
28 | */
|
---|
29 | Ellipsoid getEllipsoid();
|
---|
30 |
|
---|
31 | /**
|
---|
32 | * Convert lat/lon from this datum to {@link Ellipsoid#WGS84} datum.
|
---|
33 | * @param ll original lat/lon in this datum
|
---|
34 | * @return lat/lon converted to WGS84
|
---|
35 | */
|
---|
36 | LatLon toWGS84(LatLon ll);
|
---|
37 |
|
---|
38 | /**
|
---|
39 | * Convert lat/lon from {@link Ellipsoid#WGS84} to this datum.
|
---|
40 | * @param ll original lat/lon in WGS84
|
---|
41 | * @return converted lat/lon in this datum
|
---|
42 | */
|
---|
43 | LatLon fromWGS84(LatLon ll);
|
---|
44 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.