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

Last change on this file since 14159 was 13627, checked in by Don-vip, 6 years ago

see #16129 - datum javadoc

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