There are two kinds of categories in the processors:

  1. working with JTS geometries
  2. handling simple coordinates (lat lng values)


Therefore, the following structure exists:

Base Folder

incubator-streampipes/streampipes-extensions/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm
|
|–– config
|–– jts
|–– latlong
|__ GeoJvmInit.java


Folder / FileDescription
configConfigKeys for variables
jtsall processors based on JTS
latlongall processors based on simple lat long string values with the ontology GEO.LAT and GEO.LONG
GeoJvmInit.javaInit Files for all Java Geo-processor. Also included connection to EPSG Database

Inside Each Folder following structure

jts
|
|–– exceptions
|	|__ SpNotSupportedGeometryException.java
|
|–– helper
|	|–– SpGeometryBuilder.java
|	|–– SpReprojectionBuilder.java
|	|__ SpTrajectoryBuilder.java
|
|__ processors
	|...





latlong
|
|–– helper
|	|__ HaversineDistanceUtil.java
|
|__ processors
	|...

Folder / FileDescription
SpGeometryBuilderIn this Class the JTS Geometries are build depending on their input value via methods. Also some related methods are implemented here
SpGeometryBuilderIn this Class the JTS geometries can change their CRS with Apache SIS via methods. The geometry itself will be transformed coordinate by coordinate. Also some basic helper function
SpTrajectoryBuilderIn this Class a trajectory class can be created. A Trajectory is in the end a LineString, and their points are single events from an event.



Folder / FileDescription
HaversineDistanceUtil.javaInclude method to calculate the distance in WGS84 between two lat / lng coordinate tuple




  • No labels