This is an automated email from the ASF dual-hosted git repository. micklich pushed a commit to branch 1321-geo-create-derived-point-of-input-geometry-processor in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 818c0d889ce2813508b18e1c6f7fb106e6ff9ec5 Author: micklich <[email protected]> AuthorDate: Sun Feb 26 21:08:45 2023 +0100 [#1321] Change Variable Names --- .../point/CreateDerivedPointProcessor.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/streampipes-extensions/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/derivedgeometry/point/CreateDerivedPointProcessor.java b/streampipes-extensions/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/derivedgeometry/point/CreateDerivedPointProcessor.java index 28914559a..59968dc4e 100644 --- a/streampipes-extensions/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/derivedgeometry/point/CreateDerivedPointProcessor.java +++ b/streampipes-extensions/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/derivedgeometry/point/CreateDerivedPointProcessor.java @@ -51,10 +51,10 @@ public class CreateDerivedPointProcessor extends StreamPipesDataProcessor { public static final String GEOM_KEY = "geometry-key"; public static final String EPSG_KEY = "epsg-key"; public static final String POINT_OUTPUT_TYPE_KEY = "point-output-type-key"; - public static final String INTERIOR_GEOM_KEY = "interior-geom-key"; - public static final String INTERIOR_EPSG_KEY = "interior-epsg-key"; - public static final String INTERIOR_GEOM_RUNTIME = "interior-point"; - public static final String INTERIOR_EPSG_RUNTIME = "epsg-interior-point"; + public static final String DERIVED_GEOM_KEY = "derived-point-geom-key"; + public static final String DERIVED_EPSG_KEY = "derived-point-epsg-key"; + public static final String DERIVED_GEOM_RUNTIME = "derived-point"; + public static final String DERIVED_EPSG_RUNTIME = "epsg-derived-point"; private String geometryMapper; private String epsgMapper; private String outputType; @@ -83,12 +83,12 @@ public class CreateDerivedPointProcessor extends StreamPipesDataProcessor { Options.from("Centroid Point", "Interior Point")) .outputStrategy(OutputStrategies.append( EpProperties.stringEp( - Labels.withId(INTERIOR_GEOM_KEY), - INTERIOR_GEOM_RUNTIME, + Labels.withId(DERIVED_GEOM_KEY), + DERIVED_GEOM_RUNTIME, "http://www.opengis.net/ont/geosparql#Geometry"), EpProperties.integerEp( - Labels.withId(INTERIOR_EPSG_KEY), - INTERIOR_EPSG_RUNTIME, + Labels.withId(DERIVED_EPSG_KEY), + DERIVED_EPSG_RUNTIME, "http://data.ign.fr/def/ignf#CartesianCS") ) ) @@ -125,8 +125,8 @@ public class CreateDerivedPointProcessor extends StreamPipesDataProcessor { derivedPointOutput = (Point) SpGeometryBuilder.createSPGeom(geometry.getCentroid(), geometry.getSRID()); break; } - event.addField(INTERIOR_GEOM_RUNTIME, derivedPointOutput.toText()); - event.addField(INTERIOR_EPSG_RUNTIME, derivedPointOutput.getSRID()); + event.addField(DERIVED_GEOM_RUNTIME, derivedPointOutput.toText()); + event.addField(DERIVED_EPSG_RUNTIME, derivedPointOutput.getSRID()); collector.collect(event); } }
