Last change
on this file since 7402 was 7402, checked in by Don-vip, 10 years ago |
fix some Sonar issues
|
-
Property svn:eol-style
set to
native
|
File size:
936 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 | * 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 WGS84 datum.
|
---|
33 | */
|
---|
34 | LatLon toWGS84(LatLon ll);
|
---|
35 |
|
---|
36 | /**
|
---|
37 | * Convert lat/lon from WGS84 to this datum.
|
---|
38 | */
|
---|
39 | LatLon fromWGS84(LatLon ll);
|
---|
40 |
|
---|
41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.