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:
parent
2c3bc03a9a
commit
b34a7fb6ea
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue