BBOX fixed

This commit is contained in:
Francesco Mangiacrapa 2022-11-11 16:19:44 +01:00
parent ce9a5160ae
commit 657fded79c
1 changed files with 7 additions and 11 deletions

View File

@ -3,9 +3,6 @@ package org.gcube.application.geoportalcommon.shared.geoportal.materialization.i
import java.io.Serializable;
import java.util.HashMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class BBOXDV implements Serializable {
/**
@ -26,8 +23,6 @@ public class BBOXDV implements Serializable {
private HashMap<String, Double> bbox = new HashMap<String, Double>();
private static final Logger LOG = LoggerFactory.getLogger(BBOXDV.class);
public BBOXDV() {
}
@ -61,7 +56,8 @@ public class BBOXDV implements Serializable {
return new Double((double) toDouble);
} catch (Exception e) {
LOG.warn(toDouble + " is not castable to " + Double.class.getSimpleName());
// System.out.println(toDouble + " is not castable to " +
// Double.class.getSimpleName());
}
return null;
@ -118,7 +114,7 @@ public class BBOXDV implements Serializable {
public Double getMinY() {
try {
return Double.valueOf(this.bbox.get(MIN_Y));
return this.bbox.get(MIN_Y);
} catch (Exception e) {
}
@ -127,7 +123,7 @@ public class BBOXDV implements Serializable {
public Double getMaxY() {
try {
return Double.valueOf(this.bbox.get(MAX_Y));
return this.bbox.get(MAX_Y);
} catch (Exception e) {
}
@ -136,7 +132,7 @@ public class BBOXDV implements Serializable {
public Double getMinX() {
try {
return Double.valueOf(this.bbox.get(MIN_X));
return this.bbox.get(MIN_X);
} catch (Exception e) {
}
@ -145,7 +141,7 @@ public class BBOXDV implements Serializable {
public Double getMaxX() {
try {
return Double.valueOf(this.bbox.get(MAX_X));
return this.bbox.get(MAX_X);
} catch (Exception e) {
}