* @param z
* @return
*/
protected Map<String, String> wmsParams(WMSLayer layer, GridSubset gridSubset, int z,
int[] widthHeight) throws GeoWebCacheException {
BoundingBox bbox = gridSubset.getCoverageBounds(z);
Map<String, String> params = new HashMap<String, String>();
params.put("SERVICE", "WMS");
params.put("REQUEST", "GetMap");
params.put("VERSION", "1.1.1");
if (this.wmsLayers != null) {
params.put("LAYERS", this.wmsLayers);
} else {
params.put("LAYERS", layer.getName());
}
if (this.wmsStyles == null) {
params.put("STYLES", "");
} else {
params.put("STYLES", this.wmsStyles);
}
params.put("SRS", layer.backendSRSOverride(gridSubset.getSRS()));
params.put("BBOX", bbox.toString());
params.put("WIDTH", String.valueOf(widthHeight[0]));
params.put("HEIGHT", String.valueOf(widthHeight[1]));
params.put("FORMAT", ImageMime.tiff.getFormat());
params.put("FORMAT_OPTIONS", "antialias:none");
params.put("BGCOLOR", "0xFFFFFF");