- Timestamp:
- 08/21/08 15:25:34 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/geowebcache/src/main/java/org/geowebcache/layer/GridCalculator.java
r337 r338 26 26 27 27 // We may want to change this later 28 p rivatestatic final int TILEPIXELS = 256;28 public static final int TILEPIXELS = 256; 29 29 30 30 //private BBOX gridBounds = null; 31 31 private Grid grid; 32 32 33 public final static double[] RESOLUTIONS4326 = 33 // The following are created to save memory. 34 // Note that they can be modified by external code -> not 100% safe! 35 protected final static double[] RESOLUTIONS4326 = 34 36 GridCalculator.getResolutionArray(180.0, TILEPIXELS, 26); 35 37 36 p ublicfinal static double[] RESOLUTIONS900913 =38 protected final static double[] RESOLUTIONS900913 = 37 39 GridCalculator.getResolutionArray(20037508.34*2,TILEPIXELS, 26); 38 40 … … 248 250 249 251 // Get the bounds 250 BBOX layerBounds = grid.bounds;252 //BBOX layerBounds = grid.bounds; 251 253 BBOX gridBounds = grid.gridBounds; 252 254 … … 499 501 500 502 while (low <= high) { 501 int mid = (low + high) / 2;503 int mid = (low + high) >>> 1; 502 504 503 505 if(resolutions[mid] > reqUpper) { … … 528 530 } 529 531 532 public static double[] get900913Resolutions() { 533 return GridCalculator.RESOLUTIONS900913; 534 } 535 536 public static double[] get4326Resolutions() { 537 return GridCalculator.RESOLUTIONS4326; 538 } 539 530 540 }
