From 079bf3984397b2a2ef9b61fb59b20360a3656c5b Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 13 Oct 2022 17:20:36 +0200 Subject: [PATCH] removed package --- .../cl/document/materialization/BBOXDV.java | 109 ------------------ .../materialization/GCubeSDILayerDV.java | 77 ------------- .../GeoServerPlatformInfoDV.java | 85 -------------- 3 files changed, 271 deletions(-) delete mode 100644 src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/BBOXDV.java delete mode 100644 src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/GCubeSDILayerDV.java delete mode 100644 src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/GeoServerPlatformInfoDV.java diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/BBOXDV.java b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/BBOXDV.java deleted file mode 100644 index b5f10c9..0000000 --- a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/BBOXDV.java +++ /dev/null @@ -1,109 +0,0 @@ -//package org.gcube.portlets.user.geoportaldataviewer.shared.cl.document.materialization; -// -//import java.util.HashMap; -// -//public class BBOXDV extends HashMap{ -// -// /** -// * -// */ -// private static final long serialVersionUID = -160255589938251081L; -// -// public BBOXDV() { -// -// } -// -// -// public final String asGeoJSONBBox(){ -// StringBuilder builder = new StringBuilder("["); -// builder.append(getMaxX()+","); // W -// builder.append(getMinY()+","); // S -// if(is3d()) builder.append(getMinZ()+","); // Z -// -// builder.append(getMinX()+","); // E -// builder.append(getMaxY()+","); // N -// if(is3d()) builder.append(getMaxZ()+","); // Z -// -// -// builder.deleteCharAt(builder.length()); -// builder.append("]"); -// return builder.toString(); -// } -// public double[] asGeoJSONArray(){ -// if(is3d()){ -// return new double[]{getMaxX(),getMinY(),getMinZ(),getMinX(),getMaxY(),getMaxZ()}; -// }else return new double[]{getMaxX(),getMinY(),getMinX(),getMaxY()}; -// } -// -// public static final BBOXDV fromGeoJSON(double[] coords){ -// BBOXDV toReturn = new BBOXDV(); -// toReturn.setMaxX(coords[0]); -// toReturn.setMinY(coords[1]); -// -// if(coords.length == 6){ -// // 3D -// toReturn.setMinZ(coords[2]); -// toReturn.setMinX(coords[3]); -// toReturn.setMaxY(coords[4]); -// toReturn.setMaxZ(coords[5]); -// }else { -// toReturn.setMinX(coords[2]); -// toReturn.setMaxY(coords[3]); -// } -// return toReturn; -// } -// -// public static final BBOXDV WORLD=new BBOXDV(180d,-180d,90d,-90d); -// -// public static final BBOXDV WORLD_3D=new BBOXDV(180d,-180d,90d,-90d); -// -// public static final String MAX_X="_maxX"; -// public static final String MAX_Y="_maxY"; -// public static final String MAX_Z="_maxZ"; -// public static final String MIN_X="_minX"; -// public static final String MIN_Y="_minY"; -// public static final String MIN_Z="_minZ"; -// -// -// public BBOXDV(Double maxX,Double minX,Double maxY,Double minY,Double maxZ,Double minZ){ -// this(maxX,minX,maxY,minY); -// setMaxZ(maxZ); -// setMinZ(minZ); -// } -// public BBOXDV(Double maxX,Double minX,Double maxY,Double minY){ -// setMaxX(maxX); -// setMinX(minX); -// setMaxY(maxY); -// setMinY(minY); -// } -// -// -// public BBOXDV setMaxX(Double d){this.put(MAX_X,d);return this;} -// -// public BBOXDV setMaxY(Double d){this.put(MAX_Y,d);return this;} -// -// public BBOXDV setMaxZ(Double d){this.put(MAX_Z,d);return this;} -// -// public BBOXDV setMinX(Double d){this.put(MIN_X,d);return this;} -// -// public BBOXDV setMinY(Double d){this.put(MIN_Y,d);return this;} -// -// public BBOXDV setMinZ(Double d){this.put(MIN_Z,d);return this;} -// -// public Double getMinY(){return (Double) this.getOrDefault(MIN_Y,-90d);} -// -// public Double getMaxY(){return (Double) this.getOrDefault(MAX_Y,90d);} -// -// public Double getMinX(){return (Double) this.getOrDefault(MIN_X,-180d);} -// -// public Double getMaxX(){return (Double) this.getOrDefault(MAX_X,180d);} -// -// public Double getMinZ(){return (Double) this.getOrDefault(MIN_Z,null);} -// -// public Double getMaxZ(){return (Double) this.getOrDefault(MAX_Z,null);} -// -// -// public Boolean is3d(){ -// return getMinZ()!=null && getMaxZ() !=null; -// } -//} \ No newline at end of file diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/GCubeSDILayerDV.java b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/GCubeSDILayerDV.java deleted file mode 100644 index baddf08..0000000 --- a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/GCubeSDILayerDV.java +++ /dev/null @@ -1,77 +0,0 @@ -//package org.gcube.portlets.user.geoportaldataviewer.shared.cl.document.materialization; -// -//import java.io.Serializable; -//import java.util.HashMap; -//import java.util.List; -// -//import com.fasterxml.jackson.annotation.JsonProperty; -// -//public class GCubeSDILayerDV implements Serializable { -// -// // TODO manage heterogeneus collection -// -// /** -// * -// */ -// private static final long serialVersionUID = 5317964084778336268L; -// @JsonProperty(value = "_type") -// private String type; -// @JsonProperty(value = "_platformInfo") -// private List platformInfos; -// @JsonProperty(value = "_bbox") -// private BBOXDV bbox; -// @JsonProperty(value = "_ogcLinks") -// private HashMap ogcLinks; -// -// public GCubeSDILayerDV() { -// -// } -// -// public String getType() { -// return type; -// } -// -// public List getPlatformInfos() { -// return platformInfos; -// } -// -// public BBOXDV getBbox() { -// return bbox; -// } -// -// public HashMap getOgcLinks() { -// return ogcLinks; -// } -// -// public void setType(String type) { -// this.type = type; -// } -// -// public void setPlatformInfos(List platformInfos) { -// this.platformInfos = platformInfos; -// } -// -// public void setBbox(BBOXDV bbox) { -// this.bbox = bbox; -// } -// -// public void setOgcLinks(HashMap ogcLinks) { -// this.ogcLinks = ogcLinks; -// } -// -// @Override -// public String toString() { -// StringBuilder builder = new StringBuilder(); -// builder.append("GCubeSDILayerDV [type="); -// builder.append(type); -// builder.append(", platformInfos="); -// builder.append(platformInfos); -// builder.append(", bbox="); -// builder.append(bbox); -// builder.append(", ogcLinks="); -// builder.append(ogcLinks); -// builder.append("]"); -// return builder.toString(); -// } -// -//} diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/GeoServerPlatformInfoDV.java b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/GeoServerPlatformInfoDV.java deleted file mode 100644 index f8585c3..0000000 --- a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/shared/cl/document/materialization/GeoServerPlatformInfoDV.java +++ /dev/null @@ -1,85 +0,0 @@ -//package org.gcube.portlets.user.geoportaldataviewer.shared.cl.document.materialization; -// -//import java.io.Serializable; -//import java.util.Map; -// -//import com.fasterxml.jackson.annotation.JsonProperty; -// -//public class GeoServerPlatformInfoDV implements Serializable { -// -// /** -// * -// */ -// private static final long serialVersionUID = -2630467451758269625L; -// -// @JsonProperty(value = "_type") -// private String type; -// private String workspace; -// private String storeName; -// -// public GeoServerPlatformInfoDV() { -// } -// -// @JsonProperty(value = "_host") -// private String host; -// -// private Map ogcLinks; -// -// public String getType() { -// return type; -// } -// -// public void setType(String type) { -// this.type = type; -// } -// -// public String getWorkspace() { -// return workspace; -// } -// -// public void setWorkspace(String workspace) { -// this.workspace = workspace; -// } -// -// public String getStoreName() { -// return storeName; -// } -// -// public void setStoreName(String storeName) { -// this.storeName = storeName; -// } -// -// public String getHost() { -// return host; -// } -// -// public void setHost(String host) { -// this.host = host; -// } -// -// public Map getOgcLinks() { -// return ogcLinks; -// } -// -// public void setOgcLinks(Map ogcLinks) { -// this.ogcLinks = ogcLinks; -// } -// -// @Override -// public String toString() { -// StringBuilder builder = new StringBuilder(); -// builder.append("GeoServerPlatformInfoDV [type="); -// builder.append(type); -// builder.append(", workspace="); -// builder.append(workspace); -// builder.append(", storeName="); -// builder.append(storeName); -// builder.append(", host="); -// builder.append(host); -// builder.append(", ogcLinks="); -// builder.append(ogcLinks); -// builder.append("]"); -// return builder.toString(); -// } -// -//}