double minX = latLonEnv.getMinX();
double minY = latLonEnv.getMinY();
double maxX = latLonEnv.getMaxX();
double maxY = latLonEnv.getMaxY();
BoundingBox bounds4326 = new BoundingBox(minX,minY,maxX,maxY);
BoundingBox bounds900913 = new BoundingBox(
longToSphericalMercatorX(minX),
latToSphericalMercatorY(minY),
longToSphericalMercatorX(maxX),
latToSphericalMercatorY(maxY));
Hashtable<String,GridSubset> grids = new Hashtable<String,GridSubset>(3);
GridSubset gridSubset4326 = GridSubsetFactory.createGridSubSet(
gridSetBroker.WORLD_EPSG4326,
bounds4326, 0, 25 );
grids.put(gridSetBroker.WORLD_EPSG4326.getName(), gridSubset4326);
GridSubset gridSubset900913 = GridSubsetFactory.createGridSubSet(
gridSetBroker.WORLD_EPSG3857,
bounds900913, 0, 25 );
grids.put(gridSetBroker.WORLD_EPSG3857.getName(), gridSubset900913);
// Native stuff
if(nativeSRSName != null && ! nativeSRSName.equalsIgnoreCase("EPSG:4326")) {
minX = nativeEnv.getMinX();
minY = nativeEnv.getMinY();
maxX = nativeEnv.getMaxX();
maxY = nativeEnv.getMaxY();
BoundingBox nativeBounds = new BoundingBox(minX,minY,maxX,maxY);
SRS srs = null;
try {
srs = SRS.getSRS(nativeSRSName);
} catch (GeoWebCacheException e) {