Ignore:
Timestamp:
2010-08-29T14:57:39+02:00 (16 years ago)
Author:
bastiK
Message:

fixed some issues with world bounds; add basic projection tests

File:
1 edited

Legend:

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

    r3083 r3480  
    166166        double medLatZone = cMinLatZonesDegree + (layoutZone+1);
    167167        return new Bounds(
    168                 new LatLon(medLatZone - 1.0 - cMaxOverlappingZones, -4.9),
    169                 new LatLon(medLatZone + 1.0 + cMaxOverlappingZones, 10.2));
     168                new LatLon(Math.max(medLatZone - 1.0 - cMaxOverlappingZones, cMinLatZonesDegree), -4.9),
     169                new LatLon(Math.min(medLatZone + 1.0 + cMaxOverlappingZones, Math.toDegrees(cMaxLatZonesRadian)), 10.2));
    170170    }
    171171
Note: See TracChangeset for help on using the changeset viewer.