Background

https://github.com/apache/streampipes/blob/dev/streampipes-extensions/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.trajectory/documentation.md


Data Setup

import file and seup schema

+ set timestamp as time field

+ add semantic type lat => http://www.w3.org/2003/01/geo/wgs84_pos#lat

+ add semantic type long => http://www.w3.org/2003/01/geo/wgs84_pos#long



trajectory.csv

Pipeline

Result


timestamp

geometry

epsg

trajectory-geometery

trajectory-epsg

trajectory-description

1676067945158

POINT (116.3184204 39.9847031)

4326

LINESTRING EMPTY

4326

creation

1676067945162

POINT (116.3156128 39.9845734)

4326

LINESTRING (116.31842 39.984703, 116.315613 39.984573)

4326

creation

1676067945163

POINT (116.3154068 39.9845695)

4326

LINESTRING (116.31842 39.984703, 116.315613 39.984573, 116.315407 39.98457)

4326

creation

1676067945164

POINT (116.3127441 39.9846764)

4326

LINESTRING (116.315613 39.984573, 116.315407 39.98457, 116.312744 39.984676

4326

creation

1676067945165

POINT (116.3093491 39.9844971)

4326

LINESTRING (116.315407 39.98457, 116.312744 39.984676, 116.309349 39.984497)

4326

creation

1676067945166

POINT (116.3062973 39.9844666)

4326

LINESTRING (116.312744 39.984676, 116.309349 39.984497, 116.306297 39.984467)

4326

creation

1676067945167

POINT (116.3027573 39.9843788)

4326

LINESTRING (116.309349 39.984497, 116.306297 39.984467, 116.302757 39.984379)

4326

creation

1676067945168

POINT (116.3027573 39.9843788)

4326

LINESTRING (116.306297 39.984467, 116.302757 39.984379, 116.299744 39.984337)

4326

creation

1676067945169

POINT (116.2992401 39.9835091)

4326

LINESTRING (116.302757 39.984379, 116.299744 39.984337, 116.29924 39.983509)

4326

creation

Tests


Performance


  • No labels