Changeset 324

Show
Ignore:
Timestamp:
08/14/08 23:14:12 (3 months ago)
Author:
arneke
Message:

Parse metatiling param from getCapabilitiesConfiguration

Location:
trunk/geowebcache/src/main/java/org/geowebcache
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/geowebcache/src/main/java/org/geowebcache/layer/wms/WMSLayer.java

    r321 r324  
    140140    public WMSLayer(String layerName, CacheFactory cacheFactory, 
    141141            String wmsURL, List<String> mimeFormats, 
    142             List<Grid> grids, int[] metaWidthHeight) { 
     142            List<Grid> grids, int[] metaWidthHeight, 
     143            String vendorParams) { 
    143144      
    144145        name = layerName; 
    145146        initCacheFactory = cacheFactory; 
    146147        this.WMSurl = wmsURL; 
    147         super.mimeFormats = mimeFormats; 
    148         super.grids = grids; 
     148        this.mimeFormats = mimeFormats; 
     149        this.grids = grids; 
    149150        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; 
    152154    } 
    153155     
  • trunk/geowebcache/src/main/java/org/geowebcache/util/GetCapabilitiesConfiguration.java

    r320 r324  
    207207        mimeFormats.add("image/jpeg"); 
    208208         
    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         
    210213        // TODO We're dropping the styles now... 
    211214        return new WMSLayer(name, this.cacheFactory, 
    212                 wmsurl, mimeFormats, grids, metaWidthHeight); 
     215                wmsurl, mimeFormats, grids, metaWidthHeight, this.vendorParameters); 
    213216    } 
    214217