Ignore:
Timestamp:
2016-01-25T18:04:40+01:00 (8 years ago)
Author:
wiktorn
Message:

Document source of METER_PER_UNIT_DEGREE. See #12186

File:
1 edited

Legend:

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

    r9628 r9630  
    4141public class CustomProjection extends AbstractProjection {
    4242
     43    /*
     44     * Equation taken from:
     45     * https://github.com/openlayers/ol3/blob/master/src/ol/proj/proj.js#L48-#L49
     46     * Value for Radius taken form:
     47     * https://github.com/openlayers/ol3/blob/master/src/ol/sphere/normal.js#L11
     48     */
    4349    private static final double METER_PER_UNIT_DEGREE = 2 * Math.PI * 6370997 / 360;
    4450    private static final Map<String, Double> UNITS_TO_METERS = getUnitsToMeters();
Note: See TracChangeset for help on using the changeset viewer.