ymax = env.getMaximum(1);
}
} else if (ext instanceof GeographicBoundingBox) {
GeographicBoundingBox gbb = (GeographicBoundingBox) ext;
ReferencedEnvelope env = new ReferencedEnvelope(DefaultGeographicCRS.WGS84);
env.expandToInclude(gbb.getWestBoundLongitude(), gbb.getNorthBoundLatitude());
env.expandToInclude(gbb.getEastBoundLongitude(), gbb.getSouthBoundLatitude());
env = env.transform(crs, true);
if (env.getMinX() < xmin)
xmin = env.getMinX();
if (env.getMaxX() > xmax)