From 657fded79cd4447aa360009fc9d2c93185c62cd7 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Fri, 11 Nov 2022 16:19:44 +0100 Subject: [PATCH] BBOX fixed --- .../materialization/innerobject/BBOXDV.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/materialization/innerobject/BBOXDV.java b/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/materialization/innerobject/BBOXDV.java index 0898abb..af9ae84 100644 --- a/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/materialization/innerobject/BBOXDV.java +++ b/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/materialization/innerobject/BBOXDV.java @@ -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 bbox = new HashMap(); - private static final Logger LOG = LoggerFactory.getLogger(BBOXDV.class); - public BBOXDV() { } @@ -59,9 +54,10 @@ public class BBOXDV implements Serializable { try { 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) { }