GridSubsetFactory.createGridSubSet(gridSetBroker.WORLD_EPSG3857, bounds3785, 0, 30));
if (additionalBounds != null && additionalBounds.size() > 0) {
Iterator<CRSEnvelope> iter = additionalBounds.values().iterator();
while (iter.hasNext()) {
CRSEnvelope env = iter.next();
SRS srs = null;
if (env.getEPSGCode() != null) {
srs = SRS.getSRS(env.getEPSGCode());
}
if (srs == null) {
log.error(env.toString() + " has no EPSG code");
} else if (srs.getNumber() == 4326 || srs.getNumber() == 900913
|| srs.getNumber() == 3857) {
log.debug("Skipping " + srs.toString() + " for " + name);
} else {
String gridSetName = name + ":" + srs.toString();
BoundingBox extent = new BoundingBox(env.getMinX(), env.getMinY(),
env.getMaxX(), env.getMaxY());
GridSet gridSet = GridSetFactory.createGridSet(gridSetName, srs, extent, false,
25, null, GridSetFactory.DEFAULT_PIXEL_SIZE_METER, 256, 256, false);
grids.put(gridSetName, GridSubsetFactory.createGridSubSet(gridSet));
}