Ignore:
Timestamp:
2012-03-04T18:57:12+01:00 (8 years ago)
Author:
Don-vip
Message:

Allow plugins to retrieve known projection parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/AbstractProjection.java

    r5022 r5039  
    3333    protected double k_0 = 1.0;     /* general scale factor */
    3434    protected NTV2GridShiftFile nadgrids = null;
     35   
     36    public final Ellipsoid getEllipsoid() {
     37        return ellps;
     38    }
     39
     40    public final Datum getDatum() {
     41        return datum;
     42    }
     43
     44    public final double getFalseEasting() {
     45        return x_0;
     46    }
     47
     48    public final double getFalseNorthing() {
     49        return y_0;
     50    }
     51
     52    public final double getCentralMeridian() {
     53        return lon_0;
     54    }
     55
     56    public final double getScaleFactor() {
     57        return k_0;
     58    }
    3559
    3660    @Override
Note: See TracChangeset for help on using the changeset viewer.