Ignore:
Timestamp:
2009-07-26T10:58:59+02:00 (10 years ago)
Author:
stoecker
Message:

fix #3084 - patch by Pieren

File:
1 edited

Legend:

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

    r1823 r1849  
    1313import org.openstreetmap.josm.data.coor.LatLon;
    1414import org.openstreetmap.josm.data.Bounds;
    15 import org.openstreetmap.josm.data.ProjectionBounds;
    1615
    1716public class Lambert implements Projection {
     
    6968
    7069    private static int currentZone = 0;
    71 
    72     private static boolean dontDisplayErrors = false;
    7370
    7471    /**
     
    110107            if (layoutZone == -1) {
    111108                layoutZone = currentZone;
    112                 dontDisplayErrors = false;
    113109            } else if (layoutZone != currentZone) {
    114110                if ((currentZone < layoutZone && Math.abs(zoneLimits[currentZone] - lt) > cMaxOverlappingZones)
     
    121117                    + "and start a new layer on the new zone."));
    122118                    layoutZone = -1;
    123                     dontDisplayErrors = true;
    124119                } else {
    125120                    System.out.println("temporarily extend Lambert zone " + layoutZone + " projection at lat,lon:"
     
    128123            }
    129124        }
    130         if (layoutZone == -1) {
     125        if (layoutZone == -1)
    131126            return ConicProjection(lt, lg, Xs[currentZone], Ys[currentZone], c[currentZone], n[currentZone]);
    132         } // else
    133127        return ConicProjection(lt, lg, Xs[layoutZone], Ys[layoutZone], c[layoutZone], n[layoutZone]);
    134128    }
     
    280274    {
    281275        return new Bounds(
    282         new LatLon(-90.0, -180.0),
    283         new LatLon(90.0, 180.0));
     276                new LatLon(45.0, -4.9074074074074059),
     277                new LatLon(57.0, 10.2));
    284278    }
    285279}
Note: See TracChangeset for help on using the changeset viewer.