Ignore:
Timestamp:
2012-05-13T11:29:01+02:00 (8 years ago)
Author:
bastiK
Message:

projection: minor improvements

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  
    1111 * is necessary to get from or to the WGS84 datum.
    1212 */
    13 public class GRS80Datum extends AbstractDatum {
     13public class GRS80Datum extends NullDatum {
    1414
    1515    public final static GRS80Datum INSTANCE = new GRS80Datum();
    1616
    1717    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);
    2919    }
    3020}
  • trunk/src/org/openstreetmap/josm/data/projection/datum/WGS84Datum.java

    r4869 r5237  
    1010 * WGS84 datum. Transformation from and to WGS84 datum is a no-op.
    1111 */
    12 public class WGS84Datum extends AbstractDatum {
     12public class WGS84Datum extends NullDatum {
    1313
    1414    public static final WGS84Datum INSTANCE = new WGS84Datum();
    1515
    1616    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);
    2818    }
    2919}
Note: See TracChangeset for help on using the changeset viewer.