Ticket #3120: Lambert.patch
File Lambert.patch, 1.7 KB (added by , 16 years ago) |
---|
-
Lambert.java
106 106 if (layoutZone == -1) { 107 107 layoutZone = currentZone; 108 108 } else if (layoutZone != currentZone) { 109 if ((currentZone < layoutZone && Math.abs(zoneLimits[currentZone] - lt) > cMaxOverlappingZones) 110 || (currentZone > layoutZone && Math.abs(zoneLimits[layoutZone] - lt) > cMaxOverlappingZones)) { 109 if (farawayFromLambertZoneFrance(lt,lg)) { 111 110 OptionPaneUtil.showMessageDialog(Main.parent, 112 111 tr("IMPORTANT : data positioned far away from\n" 113 112 + "the current Lambert zone limits.\n" … … 272 271 return new LatLon(lt, lg); 273 272 } 274 273 274 private boolean farawayFromLambertZoneFrance(double lat, double lon) { 275 if (lat < (zoneLimits[3] - cMaxOverlappingZones) || (lat > (cMaxLatZone1 + cMaxOverlappingZones)) 276 || (lon < (cMinLonZones - cMaxOverlappingZones)) || (lon > (cMaxLonZones + cMaxOverlappingZones))) 277 return true; 278 return false; 279 } 280 275 281 public Bounds getWorldBoundsLatLon() 276 282 { 283 // These are not the Lambert Zone boundaries but we keep these values until coordinates outside the 284 // projection boundaries are handled correctly. 277 285 return new Bounds( 286 new LatLon(-85.05112877980659, -180.0), 287 new LatLon(85.05112877980659, 180.0)); 288 /*return new Bounds( 278 289 new LatLon(45.0, -4.9074074074074059), 279 new LatLon(57.0, 10.2)); 290 new LatLon(57.0, 10.2));*/ 280 291 } 281 292 }