Added downscale C-Square
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@113499 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ee960a8f3a
commit
5947f9cae0
|
@ -0,0 +1,64 @@
|
|||
package org.gcube.portlets.user.td.widgetcommonevent.shared.geospatial;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public enum CSquareDownscaleResolution {
|
||||
TEN("10"),
|
||||
FIVE("5"),
|
||||
ONE("1"),
|
||||
HALF_DEGREE("0.5"),
|
||||
TENTH_DEGREE("0.1"),
|
||||
HALF_TENTH("0.05"),
|
||||
CENTH_DEGREE("0.01"),
|
||||
HALF_CENTH("0.005"),
|
||||
MILLI_DEGREE("0.001"),
|
||||
HALF_MILLI("0.0005");
|
||||
|
||||
/**
|
||||
* @param text
|
||||
*/
|
||||
private CSquareDownscaleResolution(final String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
private final String id;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public static List<CSquareDownscaleResolution> getList(){
|
||||
return Arrays.asList(values());
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static CSquareDownscaleResolution getGeospatialCoordinatesTypeFromId(
|
||||
String id) {
|
||||
for(CSquareDownscaleResolution v:values()){
|
||||
if (id.compareTo(v.id) == 0) {
|
||||
return v;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getLabel(){
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -39,16 +39,12 @@ public enum GeospatialCoordinatesType {
|
|||
|
||||
public static GeospatialCoordinatesType getGeospatialCoordinatesTypeFromId(
|
||||
String id) {
|
||||
if (id.compareTo(C_SQUARE.id) == 0) {
|
||||
return C_SQUARE;
|
||||
} else {
|
||||
if (id.compareTo(OCEAN_AREA.id) == 0) {
|
||||
return OCEAN_AREA;
|
||||
} else {
|
||||
return null;
|
||||
|
||||
for(GeospatialCoordinatesType coordType:values()){
|
||||
if (id.compareTo(coordType.id) == 0) {
|
||||
return coordType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getLabel(){
|
||||
|
|
|
@ -39,6 +39,9 @@ package org.gcube.portlets.user.td.widgetcommonevent.shared.operations;
|
|||
* <tr><td>Denormalize</td><td>3005</td></tr>
|
||||
* <tr><td>GroupBy</td><td>3006</td></tr>
|
||||
* <tr><td>RemoveDuplicateTuples</td><td>3007</td></tr>
|
||||
* <tr><td>Normalize</td><td>3008</td></tr>
|
||||
* <tr><td>TimeAggregation</td><td>3009</td></tr>
|
||||
* <tr><td>DownscaleCSquare/td><td>3010</td></tr>
|
||||
* <tr><td>ReplaceColumnByExpression</td><td>3101</td></tr>
|
||||
* <tr><td>ReplaceById</td><td>3102</td></tr>
|
||||
* <tr><td>FilterByExpression</td><td>3201</td></tr>
|
||||
|
@ -103,6 +106,7 @@ public enum OperationsId {
|
|||
RemoveDuplicateTuples("3007"),
|
||||
Normalize("3008"),
|
||||
TimeAggregation("3009"),
|
||||
DownscaleCSquare("3010"),
|
||||
ReplaceColumnByExpression("3101"),
|
||||
ReplaceById("3102"),
|
||||
FilterByExpression("3201"),
|
||||
|
|
|
@ -52,6 +52,7 @@ public enum UIOperationsId {
|
|||
ChartTopRating("Top Rating Chart"),
|
||||
GeometryCreatePoint("Geometry Create Point"),
|
||||
GeospatialCreateCoordinates("Geospatial Create Coordinates"),
|
||||
DownscaleCSquare("Downscale C-Square"),
|
||||
Pending("Pending");
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue