Changeset 687 in josm


Ignore:
Timestamp:
2008-07-08T10:31:39+02:00 (16 years ago)
Author:
framm
Message:
  • patch for Lambert projection (increase margin before switching to another zone) by Pieren <pieren3@…>
File:
1 edited

Legend:

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

    r657 r687  
    6262     *  Because josm cannot work correctly if two zones are displayed, we allow some overlapping
    6363     */
    64     public static final double cMaxOverlappingZones = Math.toRadians(0.5 * 0.9);
     64    public static final double cMaxOverlappingZones = Math.toRadians(1.5 * 0.9);
    6565
    6666    public static int layoutZone = -1;
    6767
    6868    /**
    69      * @param p
    70      *            a WGS84 lat/lon (ellipsoid GRS80) (in degree)
     69     * @param p  WGS84 lat/lon (ellipsoid GRS80) (in degree)
    7170     * @return eastnorth projection in Lambert Zone (ellipsoid Clark)
    7271     */
     
    108107                    || (currentZone > layoutZone && Math.abs(zoneLimits[layoutZone] - lt) > cMaxOverlappingZones)) {
    109108                JOptionPane.showMessageDialog(Main.parent,
    110                         tr("Some data are positionned far away from current Lambert zone limits.\n"
    111                                 +"Split long ways to avoid distortions."));
     109                        tr("IMPORTANT : data positionned far away from\n"
     110                                +"the current Lambert zone limits.\n"
     111                                +"Undo your last action, Save your work \n"
     112                                +"and Start a new layer on the new zone."));
    112113                layoutZone = -1;
    113114            } else {
    114115                System.out.println("temporarily extends Lambert zone " + layoutZone
    115                                 + " projection at lat,lon:" + lt + "," + lg);
     116                        + " projection at lat,lon:" + lt + "," + lg);
    116117            }
    117118        }
Note: See TracChangeset for help on using the changeset viewer.