You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by mi...@apache.org on 2020/05/12 18:38:12 UTC

[incubator-streampipes-extensions] 15/17: fix error in extraction and output strategy

This is an automated email from the ASF dual-hosted git repository.

micklich pushed a commit to branch feature/trajectory
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-extensions.git

commit 00bb22fdc023dc08189442f2a90e9b7ad3678232
Author: micklich <fl...@disy.net>
AuthorDate: Tue May 12 13:02:03 2020 +0200

    fix error in extraction and output strategy
---
 .../processor/trajectory/CreateTrajectoryFromPointsController.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/trajectory/CreateTrajectoryFromPointsController.java b/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/trajectory/CreateTrajectoryFromPointsController.java
index e3c3021..16d6e4f 100755
--- a/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/trajectory/CreateTrajectoryFromPointsController.java
+++ b/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/trajectory/CreateTrajectoryFromPointsController.java
@@ -81,7 +81,7 @@ public class CreateTrajectoryFromPointsController extends StandaloneEventProcess
                 "m-value",
                 SO.Number
             ),
-            EpProperties.numberEp(
+            EpProperties.stringEp(
                 Labels.withId(WKT),
                 "trajectory-wkt",
                 "http://www.opengis.net/ont/geosparql#Geometry")
@@ -98,7 +98,7 @@ public class CreateTrajectoryFromPointsController extends StandaloneEventProcess
   public ConfiguredEventProcessor<CreateTrajectoryFromPointsParameter> onInvocation(DataProcessorInvocation graph, ProcessingElementParameterExtractor extractor) {
 
 
-    String wkt = extractor.mappingPropertyValue(WKT);
+    String wkt = extractor.mappingPropertyValue(POINT_KEY);
     String epsg = extractor.mappingPropertyValue(EPSG_KEY);
     String m = extractor.mappingPropertyValue(M_KEY);