Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@111937 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-02-12 12:21:51 +00:00
parent 2c3bc03a9a
commit b34a7fb6ea
1 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,9 @@ import java.util.Map;
import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationDefinition;
import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationExecution;
import org.gcube.data.analysis.tabulardata.expression.Expression;
import org.gcube.data.analysis.tabulardata.expression.composite.text.Concat;
import org.gcube.data.analysis.tabulardata.expression.functions.Cast;
import org.gcube.data.analysis.tabulardata.model.column.ColumnLocalId;
import org.gcube.data.analysis.tabulardata.model.column.ColumnReference;
import org.gcube.data.analysis.tabulardata.model.column.type.AttributeColumnType;
@ -91,9 +93,10 @@ public class OpExecution4GeometryCreatePoint extends OpExecutionBuilder {
ColumnReference longitudeColumnReference = new ColumnReference(tId,
longitudeId);
Concat point = new Concat(new TDText("POINT("), new Concat(
Expression point = new Cast(new Concat(new TDText("POINT("), new Concat(
latitudeColumnReference, new Concat(new TDText(" "),
new Concat(longitudeColumnReference, new TDText(")")))));
new Concat(longitudeColumnReference, new TDText(")"))))),new GeometryType());
operationDefinition = OperationDefinitionMap.map(
OperationsId.AddColumn.toString(), service);