Changeset 13423 in josm


Ignore:
Timestamp:
2018-02-13T22:49:24+01:00 (11 days ago)
Author:
bastiK
Message:

see #15880 - add Fischer ellipsoid

Location:
trunk/src/org/openstreetmap/josm/data/projection
Files:
2 edited

Legend:

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

    r12171 r13423  
    6060     */
    6161    public static final Ellipsoid EverestSabahSarawak = Ellipsoid.createArf(6377298.556, 300.8017);
     62
     63    /**
     64     * Fischer (Mercury Datum) 1960
     65     */
     66    public static final Ellipsoid Fischer = Ellipsoid.createArf(6378166., 298.3);
     67
     68    /**
     69     * Modified Fischer 1960
     70     */
     71    public static final Ellipsoid FischerMod = Ellipsoid.createArf(6378155., 298.3);
    6272
    6373    /**
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r13421 r13423  
    110110        ellipsoids.put("clrk80ign", Ellipsoid.ClarkeIGN);
    111111        ellipsoids.put("evrstSS", Ellipsoid.EverestSabahSarawak);
     112        ellipsoids.put("fschr60", Ellipsoid.Fischer);
     113        ellipsoids.put("fschr60m", Ellipsoid.FischerMod);
    112114        ellipsoids.put("intl", Ellipsoid.Hayford);
    113115        ellipsoids.put("helmert", Ellipsoid.Helmert);
     
    318320                cproj.update(pd.definition);
    319321            } catch (ProjectionConfigurationException ex) {
    320                 throw new RuntimeException(ex);
     322                throw new RuntimeException("Error loading " + code, ex);
    321323            }
    322324            proj = cproj;
Note: See TracChangeset for help on using the changeset viewer.