- Timestamp:
- 09/05/08 02:30:42 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/geowebcache/src/main/java/org/geowebcache/layer/Grid.java
r386 r388 21 21 import org.geowebcache.GeoWebCacheException; 22 22 import org.geowebcache.util.wms.BBOX; 23 import org.mortbay.log.Log; 23 24 24 25 /** … … 37 38 private volatile transient GridCalculator gridCalculator; 38 39 39 private volatileint zoomStart = 0;40 private int zoomStart = 0; 40 41 41 private volatileint zoomStop = 30;42 private int zoomStop = 30; 42 43 43 44 public Grid(SRS srs, BBOX bounds, BBOX gridBounds, double[] resolutions) { … … 122 123 } 123 124 125 /** 126 * Use double locking to get the calculator to avoid performance hit. 127 * 128 * @return 129 * @throws GeoWebCacheException 130 */ 124 131 public GridCalculator getGridCalculator() throws GeoWebCacheException { 125 132 GridCalculator ret = gridCalculator; … … 136 143 137 144 private GridCalculator initGridCalculator() throws GeoWebCacheException { 145 if(zoomStart < 0 || zoomStop < zoomStart || zoomStop == 0) { 146 Log.debug("Missing values, setting zoomStart,zoomStop to 0,30"); 147 zoomStart = 0; 148 zoomStop = 30; 149 } 138 150 return new GridCalculator(this); 139 151 }
