refs 4172: Dataminer interface enhancements
https://support.d4science.org/issues/4172 Updated SelectAreaDialog in DataMiner git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/data-miner-manager@130816 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
fb58622ff4
commit
7c3ec4efc4
|
@ -191,49 +191,49 @@ public class WPS2SM {
|
||||||
String defaultValue) {
|
String defaultValue) {
|
||||||
|
|
||||||
if (title.contains("[WKT_POINT]")) {
|
if (title.contains("[WKT_POINT]")) {
|
||||||
//title.replace("[WKT_POINT]", "");
|
title=title.replace("[WKT_POINT]", "");
|
||||||
return new WKTParameter(id, title, WKTGeometryType.Point,
|
return new WKTParameter(id, title, WKTGeometryType.Point,
|
||||||
defaultValue);
|
defaultValue);
|
||||||
} else {
|
} else {
|
||||||
if (title.contains("[WKT_LINESTRING]")) {
|
if (title.contains("[WKT_LINESTRING]")) {
|
||||||
//title.replace("[WKT_LINESTRING]", "");
|
title=title.replace("[WKT_LINESTRING]", "");
|
||||||
return new WKTParameter(id, title, WKTGeometryType.LineString,
|
return new WKTParameter(id, title, WKTGeometryType.LineString,
|
||||||
defaultValue);
|
defaultValue);
|
||||||
} else {
|
} else {
|
||||||
if (title.contains("[WKT_POLYGON]")) {
|
if (title.contains("[WKT_POLYGON]")) {
|
||||||
//title.replace("[WKT_POLYGON]", "");
|
title=title.replace("[WKT_POLYGON]", "");
|
||||||
return new WKTParameter(id, title, WKTGeometryType.Polygon,
|
return new WKTParameter(id, title, WKTGeometryType.Polygon,
|
||||||
defaultValue);
|
defaultValue);
|
||||||
} else {
|
} else {
|
||||||
if (title.contains("[WKT_CIRCLE]")) {
|
if (title.contains("[WKT_CIRCLE]")) {
|
||||||
//title.replace("[WKT_CIRCLE]", "");
|
title=title.replace("[WKT_CIRCLE]", "");
|
||||||
return new WKTParameter(id, title,
|
return new WKTParameter(id, title,
|
||||||
WKTGeometryType.Circle, defaultValue);
|
WKTGeometryType.Circle, defaultValue);
|
||||||
} else {
|
} else {
|
||||||
if (title.contains("[WKT_TRIANGLE]")) {
|
if (title.contains("[WKT_TRIANGLE]")) {
|
||||||
//title.replace("[WKT_TRIANGLE]", "");
|
title=title.replace("[WKT_TRIANGLE]", "");
|
||||||
return new WKTParameter(id, title,
|
return new WKTParameter(id, title,
|
||||||
WKTGeometryType.Triangle, defaultValue);
|
WKTGeometryType.Triangle, defaultValue);
|
||||||
} else {
|
} else {
|
||||||
if (title.contains("[WKT_SQUARE]")) {
|
if (title.contains("[WKT_SQUARE]")) {
|
||||||
//title.replace("[WKT_SQUARE]", "");
|
title=title.replace("[WKT_SQUARE]", "");
|
||||||
return new WKTParameter(id, title,
|
return new WKTParameter(id, title,
|
||||||
WKTGeometryType.Square, defaultValue);
|
WKTGeometryType.Square, defaultValue);
|
||||||
} else {
|
} else {
|
||||||
if (title.contains("[WKT_PENTAGON]")) {
|
if (title.contains("[WKT_PENTAGON]")) {
|
||||||
//title.replace("[WKT_PENTAGON]", "");
|
title=title.replace("[WKT_PENTAGON]", "");
|
||||||
return new WKTParameter(id, title,
|
return new WKTParameter(id, title,
|
||||||
WKTGeometryType.Pentagon,
|
WKTGeometryType.Pentagon,
|
||||||
defaultValue);
|
defaultValue);
|
||||||
} else {
|
} else {
|
||||||
if (title.contains("[WKT_HEXAGON]")) {
|
if (title.contains("[WKT_HEXAGON]")) {
|
||||||
//title.replace("[WKT_HEXAGON]", "");
|
title=title.replace("[WKT_HEXAGON]", "");
|
||||||
return new WKTParameter(id, title,
|
return new WKTParameter(id, title,
|
||||||
WKTGeometryType.Hexagon,
|
WKTGeometryType.Hexagon,
|
||||||
defaultValue);
|
defaultValue);
|
||||||
} else {
|
} else {
|
||||||
if (title.contains("[WKT_BOX]")) {
|
if (title.contains("[WKT_BOX]")) {
|
||||||
//title.replace("[WKT_BOX]", "");
|
title=title.replace("[WKT_BOX]", "");
|
||||||
return new WKTParameter(id, title,
|
return new WKTParameter(id, title,
|
||||||
WKTGeometryType.Box,
|
WKTGeometryType.Box,
|
||||||
defaultValue);
|
defaultValue);
|
||||||
|
|
Loading…
Reference in New Issue