source: josm/trunk/src/org/openstreetmap/josm/data/projection/datum/Datum.java@ 6268

Last change on this file since 6268 was 6069, checked in by stoecker, 11 years ago

see #8853 remove tabs, trailing spaces, windows line ends, strange characters

  • Property svn:eol-style set to native
File size: 905 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 * Represents a geodetic datum.
9 *
10 * Basically it provides conversion functions from and to the WGS84 datum.
11 */
12public interface Datum {
13
14 /**
15 * @return a human readable name of this projection
16 */
17 String getName();
18
19 /**
20 * @return the Proj.4 identifier
21 * (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.