BBOX fixed
This commit is contained in:
parent
ce9a5160ae
commit
657fded79c
|
@ -3,9 +3,6 @@ package org.gcube.application.geoportalcommon.shared.geoportal.materialization.i
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
public class BBOXDV implements Serializable {
|
public class BBOXDV implements Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,8 +23,6 @@ public class BBOXDV implements Serializable {
|
||||||
|
|
||||||
private HashMap<String, Double> bbox = new HashMap<String, Double>();
|
private HashMap<String, Double> bbox = new HashMap<String, Double>();
|
||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(BBOXDV.class);
|
|
||||||
|
|
||||||
public BBOXDV() {
|
public BBOXDV() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -61,7 +56,8 @@ public class BBOXDV implements Serializable {
|
||||||
return new Double((double) toDouble);
|
return new Double((double) toDouble);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} 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;
|
return null;
|
||||||
|
@ -118,7 +114,7 @@ public class BBOXDV implements Serializable {
|
||||||
|
|
||||||
public Double getMinY() {
|
public Double getMinY() {
|
||||||
try {
|
try {
|
||||||
return Double.valueOf(this.bbox.get(MIN_Y));
|
return this.bbox.get(MIN_Y);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -127,7 +123,7 @@ public class BBOXDV implements Serializable {
|
||||||
|
|
||||||
public Double getMaxY() {
|
public Double getMaxY() {
|
||||||
try {
|
try {
|
||||||
return Double.valueOf(this.bbox.get(MAX_Y));
|
return this.bbox.get(MAX_Y);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -136,7 +132,7 @@ public class BBOXDV implements Serializable {
|
||||||
|
|
||||||
public Double getMinX() {
|
public Double getMinX() {
|
||||||
try {
|
try {
|
||||||
return Double.valueOf(this.bbox.get(MIN_X));
|
return this.bbox.get(MIN_X);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -145,7 +141,7 @@ public class BBOXDV implements Serializable {
|
||||||
|
|
||||||
public Double getMaxX() {
|
public Double getMaxX() {
|
||||||
try {
|
try {
|
||||||
return Double.valueOf(this.bbox.get(MAX_X));
|
return this.bbox.get(MAX_X);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue