Changeset 324
- Timestamp:
- 08/14/08 23:14:12 (3 months ago)
- Location:
- trunk/geowebcache/src/main/java/org/geowebcache
- Files:
-
- 2 modified
-
layer/wms/WMSLayer.java (modified) (1 diff)
-
util/GetCapabilitiesConfiguration.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/geowebcache/src/main/java/org/geowebcache/layer/wms/WMSLayer.java
r321 r324 140 140 public WMSLayer(String layerName, CacheFactory cacheFactory, 141 141 String wmsURL, List<String> mimeFormats, 142 List<Grid> grids, int[] metaWidthHeight) { 142 List<Grid> grids, int[] metaWidthHeight, 143 String vendorParams) { 143 144 144 145 name = layerName; 145 146 initCacheFactory = cacheFactory; 146 147 this.WMSurl = wmsURL; 147 super.mimeFormats = mimeFormats;148 super.grids = grids;148 this.mimeFormats = mimeFormats; 149 this.grids = grids; 149 150 this.metaWidthHeight = metaWidthHeight; 150 expireClients = GWCVars.CACHE_USE_WMS_BACKEND_VALUE; 151 expireCache = GWCVars.CACHE_NEVER_EXPIRE; 151 this.expireClients = GWCVars.CACHE_USE_WMS_BACKEND_VALUE; 152 this.expireCache = GWCVars.CACHE_NEVER_EXPIRE; 153 this.vendorParameters = vendorParams; 152 154 } 153 155 -
trunk/geowebcache/src/main/java/org/geowebcache/util/GetCapabilitiesConfiguration.java
r320 r324 207 207 mimeFormats.add("image/jpeg"); 208 208 209 int[] metaWidthHeight = {4,4}; 209 String[] metaStrings = this.metaTiling.split("x"); 210 211 int[] metaWidthHeight = { Integer.parseInt(metaStrings[0]), Integer.parseInt(metaStrings[1])}; 212 210 213 // TODO We're dropping the styles now... 211 214 return new WMSLayer(name, this.cacheFactory, 212 wmsurl, mimeFormats, grids, metaWidthHeight );215 wmsurl, mimeFormats, grids, metaWidthHeight, this.vendorParameters); 213 216 } 214 217
