ReferencedEnvelope bbox_e = new ReferencedEnvelope(minx, maxx, miny,
maxy, crs);
Envelope crsEnvelope = CRS.getEnvelope(crs);
if (crsEnvelope != null) {
ReferencedEnvelope crs_e = new ReferencedEnvelope(CRS.getEnvelope(crs));
if (!crs_e.covers(bbox_e)) {
// The specification says: If the Bounding Box values are
// not defined for the given CRS (e.g., latitudes greater than 90
// degrees in CRS:84), the
// server should return empty content for areas outside the valid
// range of the CRS.