Changeset 5237 in josm for trunk/src/org/openstreetmap/josm/data/projection/datum
- Timestamp:
- 2012-05-13T11:29:01+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/projection/datum
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/datum/GRS80Datum.java
r4869 r5237 11 11 * is necessary to get from or to the WGS84 datum. 12 12 */ 13 public class GRS80Datum extends AbstractDatum {13 public class GRS80Datum extends NullDatum { 14 14 15 15 public final static GRS80Datum INSTANCE = new GRS80Datum(); 16 16 17 17 private GRS80Datum() { 18 super(tr("GRS80"), null, Ellipsoid.GRS80); 19 } 20 21 @Override 22 public LatLon fromWGS84(LatLon ll) { 23 return ll; 24 } 25 26 @Override 27 public LatLon toWGS84(LatLon ll) { 28 return ll; 18 super(tr("GRS80"), Ellipsoid.GRS80); 29 19 } 30 20 } -
trunk/src/org/openstreetmap/josm/data/projection/datum/WGS84Datum.java
r4869 r5237 10 10 * WGS84 datum. Transformation from and to WGS84 datum is a no-op. 11 11 */ 12 public class WGS84Datum extends AbstractDatum {12 public class WGS84Datum extends NullDatum { 13 13 14 14 public static final WGS84Datum INSTANCE = new WGS84Datum(); 15 15 16 16 private WGS84Datum() { 17 super(tr("WGS84"), "WGS84", Ellipsoid.WGS84); 18 } 19 20 @Override 21 public LatLon fromWGS84(LatLon ll) { 22 return ll; 23 } 24 25 @Override 26 public LatLon toWGS84(LatLon ll) { 27 return ll; 17 super(tr("WGS84"), Ellipsoid.WGS84); 28 18 } 29 19 }
Note:
See TracChangeset
for help on using the changeset viewer.