diff --git a/xyz-jobs/xyz-job-service/src/main/java/com/here/xyz/jobs/steps/compiler/SpaceCopy.java b/xyz-jobs/xyz-job-service/src/main/java/com/here/xyz/jobs/steps/compiler/SpaceCopy.java index d20cc5fd8c..dbbcb895fb 100644 --- a/xyz-jobs/xyz-job-service/src/main/java/com/here/xyz/jobs/steps/compiler/SpaceCopy.java +++ b/xyz-jobs/xyz-job-service/src/main/java/com/here/xyz/jobs/steps/compiler/SpaceCopy.java @@ -145,7 +145,7 @@ public CompilationStepGraph compile(Job job) { job.getId(), ((DatasetDescription.Space) job.getSource()).getFilters(), ((DatasetDescription.Space) job.getSource()).getVersionRef(), - "Space" ); + "space" ); } } diff --git a/xyz-util/src/main/java/com/here/xyz/util/db/pg/Script.java b/xyz-util/src/main/java/com/here/xyz/util/db/pg/Script.java index bea53292e0..4ee6daa77b 100644 --- a/xyz-util/src/main/java/com/here/xyz/util/db/pg/Script.java +++ b/xyz-util/src/main/java/com/here/xyz/util/db/pg/Script.java @@ -287,7 +287,7 @@ private static List scanResourceFolder(ScriptResourcePath scriptResource files.add(file); return ensureInitScriptIsFirst(files.stream() .filter(fileName -> fileName.endsWith(fileSuffix)) - .map(fileName -> resourceFolder + File.separator + fileName) + .map(fileName -> resourceFolder + "/" + fileName) // script.scriptResourcePath always stored as unix path .toList(), scriptResourcePath.initScript()); } diff --git a/xyz-util/src/test/java/com/here/xyz/test/util/geo/GeometryValidatorIT.java b/xyz-util/src/test/java/com/here/xyz/test/util/geo/GeometryValidatorIT.java index c789425236..e6d03bfe1a 100644 --- a/xyz-util/src/test/java/com/here/xyz/test/util/geo/GeometryValidatorIT.java +++ b/xyz-util/src/test/java/com/here/xyz/test/util/geo/GeometryValidatorIT.java @@ -22,8 +22,8 @@ public void testValidateNullGeometry(){ @Test public void testValidateIntersectsWithAntimeridian() throws InvalidGeometryException { LineStringCoordinates coordinates = new LineStringCoordinates(); - coordinates.add(new Position(0, 0)); - coordinates.add(new Position(0, 1)); + coordinates.add(new Position(179.999999, 0)); + coordinates.add(new Position(179.999999, 1)); //Geometry filter intersects with anti meridian! Assertions.assertThrows(GeometryException.class, () -> GeometryValidator.validateGeometry(new LineString().withCoordinates(coordinates), 100));