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/04/29 14:18:17 UTC

[incubator-streampipes-extensions] branch feature/latLngGeo created (now cd1fc3d)

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

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


      at cd1fc3d  format fix

This branch includes the following new commits:

     new 0f81507  change to ontology vocabulary, changed text and new icon
     new cd1fc3d  format fix

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-streampipes-extensions] 02/02: format fix

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit cd1fc3d9ed2950c1a1e179a67078cd7e893cdce5
Author: micklich <fl...@disy.net>
AuthorDate: Tue Apr 28 18:58:58 2020 +0200

    format fix
---
 .../geo/jvm/jts/processor/latLngToGeo/LatLngToGeoController.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latLngToGeo/LatLngToGeoController.java b/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latLngToGeo/LatLngToGeoController.java
index 0c61df1..78b5791 100755
--- a/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latLngToGeo/LatLngToGeoController.java
+++ b/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latLngToGeo/LatLngToGeoController.java
@@ -79,7 +79,7 @@ public class LatLngToGeoController extends  StandaloneEventProcessingDeclarer<La
                                 "point_wkt",
                                 "wkt",
                                 "wkt point from long lat values"),
-                    WKT,
+                        WKT,
                         SO.Text))
                 )
 


[incubator-streampipes-extensions] 01/02: change to ontology vocabulary, changed text and new icon

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 0f8150779544767e18daed821c38f055ea2dad2a
Author: micklich <fl...@disy.net>
AuthorDate: Tue Apr 28 18:13:11 2020 +0200

    change to ontology vocabulary, changed text and new icon
---
 .../latLngToGeo/LatLngToGeoController.java          |   5 +++--
 .../documentation.md                                |  12 ++++++------
 .../icon.png                                        | Bin 19124 -> 20621 bytes
 .../strings.en                                      |   9 ++++-----
 4 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latLngToGeo/LatLngToGeoController.java b/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latLngToGeo/LatLngToGeoController.java
index 39428ea..0c61df1 100755
--- a/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latLngToGeo/LatLngToGeoController.java
+++ b/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latLngToGeo/LatLngToGeoController.java
@@ -27,6 +27,7 @@ import org.apache.streampipes.sdk.builder.StreamRequirementsBuilder;
 import org.apache.streampipes.sdk.extractor.ProcessingElementParameterExtractor;
 import org.apache.streampipes.sdk.helpers.*;
 import org.apache.streampipes.sdk.utils.Assets;
+import org.apache.streampipes.vocabulary.Geo;
 import org.apache.streampipes.vocabulary.SO;
 import org.apache.streampipes.wrapper.standalone.ConfiguredEventProcessor;
 import org.apache.streampipes.wrapper.standalone.declarer.StandaloneEventProcessingDeclarer;
@@ -53,14 +54,14 @@ public class LatLngToGeoController extends  StandaloneEventProcessingDeclarer<La
                         StreamRequirementsBuilder
                                 .create()
                                 .requiredPropertyWithUnaryMapping(
-                                        EpRequirements.numberReq(),
+                                        EpRequirements.domainPropertyReq(Geo.lat),
                                         Labels.from(LAT_FIELD,
                                                 "Latitude field",
                                                 "Latitude value"),
                                         PropertyScope.NONE
                                 )
                                 .requiredPropertyWithUnaryMapping(
-                                        EpRequirements.numberReq(),
+                                        EpRequirements.domainPropertyReq(Geo.lng),
                                         Labels.from(LNG_FIELD,
                                                 "Longitude field",
                                                 "Longitude value"),
diff --git a/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/documentation.md b/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/documentation.md
index 9c9058d..f80cd9b 100644
--- a/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/documentation.md
+++ b/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/documentation.md
@@ -26,22 +26,22 @@
 
 ## Description
 
-This processor creates a [JTS](https://github.com/locationtech/jts) Point geometry from  latitude and longitude value.
+This processor creates a  JTS Point geometry from  latitude and longitude value.
 
 ***
 
 ## Required input
 
-*  number value representing Latitude field
-*  number value representing Longitude field
-*  integer value representing EPSG field
+*  Ontology Vocabulary Latitude
+*  Ontology Vocabulary Longitude
+*  Integer value representing EPSG Code
 
 
 ***
 
 ## Configuration
 
-Creates a JTS Geometry Point from Latitude (x) and Longitude (y) values in the representing coordinate reference system [(CRS)](https://en.wikipedia.org/wiki/Spatial_reference_system) by the EPSG code.
+Creates a JTS Geometry Point from Longitude (x) and Latitude (y) values in the coordinate reference system represented by the EPSG code.
 An empty point geometry is created if latitude or longitude value is missing in the event (e.g. null value) or values are out of range. Allowed values for Longitude are between -180.00 and 180.00; Latitude values between -90.00 and 90.00.
 
 ### 1st parameter
@@ -57,7 +57,7 @@ EPSG code value
 
 ## Output
 
-Adds a point geometry in the Well Known Text [(WKT)](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry) notation and in Longitude (y)  Latitude (x) axis order to the stream.
+Adds a point geometry in the Well Known Text notation and in Longitude (x)  Latitude (y) axis order to the stream.
 
 ### Example
 * Input stream: <br>
diff --git a/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/icon.png b/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/icon.png
index d2d8d70..d37330b 100644
Binary files a/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/icon.png and b/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/icon.png differ
diff --git a/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/strings.en b/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/strings.en
index 3da6df1..433141b 100644
--- a/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/strings.en
+++ b/streampipes-processors-geo-jvm/src/main/resources/org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo/strings.en
@@ -1,6 +1,5 @@
-org.apache.streampipes.processor.geo.jvm.staticgeocoding.title=Static Google Maps Geocoder
-org.apache.streampipes.processor.geo.jvm.staticgeocoding.description=Geocodes a fixed placename to lat/lng coordinates and
-appends these coordinates to every input event.
+org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo.title=Creates JTS Point
+org.apache.streampipes.processors.geo.jvm.jts.processor.latLngToGeo.description=Creats a JTS Point from Latitude and Longitude values
 
-place.title=Place
-place.description=The place name that should be converted to a lat/lng combination
\ No newline at end of file
+place.title=JTS Point
+place.description=JTS Point Geometry