Changeset 9950 in josm for trunk/src


Ignore:
Timestamp:
2016-03-07T23:29:14+01:00 (9 years ago)
Author:
simon04
Message:

see #11516 - Add Sinusoidal projection

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r9862 r9950  
    6363
    6464    private static DecimalFormat cDmsMinuteFormatter = new DecimalFormat("00");
    65     private static DecimalFormat cDmsSecondFormatter = new DecimalFormat(Main.pref.get("latlon.dms.decimal-format", "00.0"));
    66     private static DecimalFormat cDmMinuteFormatter = new DecimalFormat(Main.pref.get("latlon.dm.decimal-format", "00.000"));
     65    private static DecimalFormat cDmsSecondFormatter = new DecimalFormat(
     66            Main.pref == null ? "00.0" : Main.pref.get("latlon.dms.decimal-format", "00.0"));
     67    private static DecimalFormat cDmMinuteFormatter = new DecimalFormat(
     68            Main.pref == null ? "00.000" : Main.pref.get("latlon.dm.decimal-format", "00.000"));
    6769    public static final DecimalFormat cDdFormatter;
    6870    public static final DecimalFormat cDdHighPecisionFormatter;
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r9799 r9950  
    4141import org.openstreetmap.josm.data.projection.proj.Proj;
    4242import org.openstreetmap.josm.data.projection.proj.ProjFactory;
     43import org.openstreetmap.josm.data.projection.proj.Sinusoidal;
    4344import org.openstreetmap.josm.data.projection.proj.SwissObliqueMercator;
    4445import org.openstreetmap.josm.data.projection.proj.TransverseMercator;
     
    9596        registerBaseProjection("omerc", ObliqueMercator.class, "core");
    9697        registerBaseProjection("somerc", SwissObliqueMercator.class, "core");
     98        registerBaseProjection("sinu", Sinusoidal.class, "core");
    9799        registerBaseProjection("stere", PolarStereographic.class, "core");
    98100        registerBaseProjection("sterea", DoubleStereographic.class, "core");
Note: See TracChangeset for help on using the changeset viewer.