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

Last change on this file since 16553 was 16553, checked in by Don-vip, 4 years ago

see #19334 - javadoc fixes + protected constructors for abstract classes

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