Changeset 403
- Timestamp:
- 09/29/08 20:49:00 (3 months ago)
- Location:
- trunk/geowebcache/src/main/java/org/geowebcache
- Files:
-
- 2 modified
-
layer/GridCalculator.java (modified) (3 diffs)
-
mime/MimeType.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/geowebcache/src/main/java/org/geowebcache/layer/GridCalculator.java
r399 r403 16 16 */ 17 17 package org.geowebcache.layer; 18 19 import java.util.Arrays; 18 20 19 21 import org.apache.commons.logging.Log; … … 467 469 //low = 0; 468 470 //high = resolutions.length - 1; 469 470 while (low <= high) { 471 472 // Lets be generous and not calculate log 473 int maxCount = resolutions.length / 2; 474 475 while (low <= high && maxCount > 0) { 476 maxCount--; 471 477 int mid = (low + high) >>> 1; 472 478 … … 484 490 } 485 491 } 486 throw new BadTileException("Oops. Should never get here."); 492 throw new BadTileException("The bounds resulted in a resolution of " 493 + reqResolution + " which does not match any of the available ones " 494 + Arrays.toString(resolutions)); 487 495 } 488 496 -
trunk/geowebcache/src/main/java/org/geowebcache/mime/MimeType.java
r248 r403 114 114 } 115 115 116 log.debug("Unsupported format request: " + formatStr + ", returning null"); 117 return null; 116 throw new MimeException("Unsupported format request: " + formatStr); 118 117 } 119 118
