double maxX = renderingEnvelope.getMaxX();
double maxY = renderingEnvelope.getMaxY();
ReferencedEnvelope re1 = new ReferencedEnvelope(minX, datelineX - EPS, minY,
maxY, renderingCRS);
ReferencedEnvelope tx1 = transformEnvelope(re1, WGS84);
tx1.expandToInclude(180, tx1.getMinY());
ReferencedEnvelope re2 = new ReferencedEnvelope(datelineX + EPS, maxX, minY,
maxY, renderingCRS);
ReferencedEnvelope tx2 = transformEnvelope(re2, WGS84);
if (tx2.getMinX() > 180) {
tx2.translate(-360, 0);