Changeset 9104 in josm for trunk


Ignore:
Timestamp:
2015-12-13T00:56:39+01:00 (9 years ago)
Author:
bastiK
Message:

add more datums and ellipsoids (see #12186)

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

Legend:

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

    r8846 r9104  
    3434     */
    3535    public static final Ellipsoid Bessel1841 = Ellipsoid.create_a_rf(6377397.155, 299.1528128);
     36   
     37    /**
     38     * Bessel 1841 (Namibia)
     39     */
     40    public static final Ellipsoid BesselNamibia = Ellipsoid.create_a_rf(6377483.865, 299.1528128);
    3641
    3742    /**
     
    4146
    4247    /**
     48     * Clarke 1880 (modified)
     49     */
     50    public static final Ellipsoid Clarke1880 = Ellipsoid.create_a_rf(6378249.145, 293.4663);
     51
     52    /**
    4353     * Clarke 1880 IGN (French national geographic institute)
    4454     */
    4555    public static final Ellipsoid ClarkeIGN = Ellipsoid.create_a_b(6378249.2, 6356515.0);
    4656
     57    /**
     58     * Everest (Sabah & Sarawak)
     59     */
     60    public static final Ellipsoid EverestSabahSarawak = Ellipsoid.create_a_rf(6377298.556, 300.8017);
     61   
    4762    /**
    4863     * GRS67 ellipsoid
     
    7186     */
    7287    public static final Ellipsoid Krassowsky = Ellipsoid.create_a_rf(6378245.0, 298.3);
     88
     89    /**
     90     * WGS66 ellipsoid
     91     */
     92    public static final Ellipsoid WGS66 = Ellipsoid.create_a_rf(6378145.0, 298.25);
    7393
    7494    /**
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r9100 r9104  
    2525import org.openstreetmap.josm.data.projection.datum.GRS80Datum;
    2626import org.openstreetmap.josm.data.projection.datum.NTV2GridShiftFileWrapper;
     27import org.openstreetmap.josm.data.projection.datum.SevenParameterDatum;
     28import org.openstreetmap.josm.data.projection.datum.ThreeParameterDatum;
    2729import org.openstreetmap.josm.data.projection.datum.WGS84Datum;
    2830import org.openstreetmap.josm.data.projection.proj.ClassProjFactory;
     
    8486        ellipsoids.put("aust_SA", Ellipsoid.AustSA);
    8587        ellipsoids.put("bessel", Ellipsoid.Bessel1841);
     88        ellipsoids.put("bess_nam", Ellipsoid.BesselNamibia);
    8689        ellipsoids.put("clrk66", Ellipsoid.Clarke1866);
     90        ellipsoids.put("clrk80", Ellipsoid.Clarke1880);
    8791        ellipsoids.put("clarkeIGN", Ellipsoid.ClarkeIGN);
     92        ellipsoids.put("evrstSS", Ellipsoid.EverestSabahSarawak);
    8893        ellipsoids.put("intl", Ellipsoid.Hayford);
    8994        ellipsoids.put("helmert", Ellipsoid.Helmert);
     
    9196        ellipsoids.put("GRS67", Ellipsoid.GRS67);
    9297        ellipsoids.put("GRS80", Ellipsoid.GRS80);
     98        ellipsoids.put("WGS66", Ellipsoid.WGS66);
    9399        ellipsoids.put("WGS72", Ellipsoid.WGS72);
    94100        ellipsoids.put("WGS84", Ellipsoid.WGS84);
     
    96102        datums.put("WGS84", WGS84Datum.INSTANCE);
    97103        datums.put("GRS80", GRS80Datum.INSTANCE);
     104        datums.put("NAD83", GRS80Datum.INSTANCE);
     105        datums.put("carthage", new ThreeParameterDatum(
     106                "Carthage 1934 Tunisia", "carthage",
     107                Ellipsoid.Clarke1880, -263.0, 6.0, 431.0));
     108        datums.put("GGRS87", new ThreeParameterDatum(
     109                "Greek Geodetic Reference System 1987", "GGRS87",
     110                Ellipsoid.GRS80, -199.87, 74.79, 246.62));
     111        datums.put("hermannskogel",new ThreeParameterDatum(
     112                "Hermannskogel", "hermannskogel",
     113                Ellipsoid.Bessel1841, 653.0, -212.0, 449.0));
     114        datums.put("ire65", new SevenParameterDatum(
     115                "Ireland 1965", "ire65",
     116                Ellipsoid.AiryMod, 482.530, -130.596, 564.557, -1.042, -0.214, -0.631, 8.15));
     117        datums.put("nzgd49", new SevenParameterDatum(
     118                "New Zealand Geodetic Datum 1949", "nzgd49",
     119                Ellipsoid.Hayford, 59.47, -5.04, 187.44, 0.47, -0.1, 1.024, -4.5993));
     120        datums.put("OSGB36", new SevenParameterDatum(
     121                "Airy 1830", "OSGB36",
     122                Ellipsoid.Airy, 446.448, -125.157, 542.060, 0.1502, 0.2470, 0.8421, -20.4894));
     123        datums.put("potsdam", new SevenParameterDatum(
     124                "Potsdam Rauenberg 1950 DHDN", "potsdam",
     125                Ellipsoid.Bessel1841, 598.1, 73.7, 418.2, 0.202, 0.045, -2.455, 6.7));
    98126
    99127        nadgrids.put("BETA2007.gsb", NTV2GridShiftFileWrapper.BETA2007);
Note: See TracChangeset for help on using the changeset viewer.