ReferencedEnvelope mercatorREnv = renderREnv.transform(mercatorCrs, true);
ReferencedEnvelope latlongREnv = renderREnv.transform(latLongCrs, true);
Point upperLeft = currentContext.worldToPixel(new Coordinate(renderREnv.getMinX(), renderREnv.getMinY()));
Point bottomRight = currentContext.worldToPixel(new Coordinate(renderREnv.getMaxX(), renderREnv.getMaxY()));
Rectangle screenSize = new Rectangle(upperLeft);
screenSize.add(bottomRight);
final IGeoResource resource = getContext().getGeoResource();
if (resource == null || !resource.canResolve(JGTtmsGeoResource.class)) {