fixed log

This commit is contained in:
Francesco Mangiacrapa 2024-04-19 12:18:47 +02:00
parent 2cf7d64c2d
commit 53928f751c
1 changed files with 3 additions and 5 deletions

View File

@ -7,8 +7,6 @@ import org.gcube.spatial.data.geoutility.shared.BBOX;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.allen_sauer.gwt.log.client.Log;
/**
* The Class BBOXConverter.
*
@ -21,7 +19,7 @@ public class BBOXConverter {
Integer[] size = new Integer[2];
Double[] bbox = new Double[4];
public static final double EQUATOR = 40075016.68557849;
private Logger LOG = LoggerFactory.getLogger(BBOXConverter.class);
private static Logger LOG = LoggerFactory.getLogger(BBOXConverter.class);
/**
* The Class BBOXPixel.
@ -220,13 +218,13 @@ public class BBOXConverter {
Double offsetWidth = bboxOffset(xMin, xMax);
//System.out.println("offsetWidth: " + offsetWidth);
Log.debug("offset width: "+offsetWidth);
LOG.debug("offset width: "+offsetWidth);
String yMin = new Double(theBBOX.getLowerLeftY()).toString();
String yMax = new Double(theBBOX.getUpperRightY()).toString();
Double offsetHeight = bboxOffset(yMax, yMin);
//System.out.println("offsetHeight: " + offsetHeight);
Log.debug("offset width: "+offsetHeight);
LOG.debug("offset width: "+offsetHeight);
return offsetWidth < offsetHeight ? offsetWidth : offsetHeight;
}