From e7899ffec59f9c5e2de4772a3f20740ebbf02bbc Mon Sep 17 00:00:00 2001 From: Luc Maisonobe <luc@orekit.org> Date: Fri, 4 Apr 2014 06:48:31 +0200 Subject: [PATCH] Fixed virtual "wall" appearing at tiles boundaries. --- .../org/orekit/rugged/core/duvenhage/DuvenhageAlgorithm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/orekit/rugged/core/duvenhage/DuvenhageAlgorithm.java b/src/main/java/org/orekit/rugged/core/duvenhage/DuvenhageAlgorithm.java index 2ab466a2..813a7fb3 100644 --- a/src/main/java/org/orekit/rugged/core/duvenhage/DuvenhageAlgorithm.java +++ b/src/main/java/org/orekit/rugged/core/duvenhage/DuvenhageAlgorithm.java @@ -115,7 +115,7 @@ public class DuvenhageAlgorithm implements IntersectionAlgorithm { current = ellipsoid.transform(forward, ellipsoid.getBodyFrame(), null); tile = cache.getTile(current.getLatitude(), current.getLongitude()); - if (tile.interpolateElevation(current.getLatitude(), current.getLongitude()) <= current.getAltitude()) { + if (tile.interpolateElevation(current.getLatitude(), current.getLongitude()) >= current.getAltitude()) { // extremely rare case! The line-of-sight traversed the Digital Elevation Model // during the very short forward step we used to move to next tile // we consider this point to be OK -- GitLab