Skip to content
Snippets Groups Projects
Commit e7899ffe authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Fixed virtual "wall" appearing at tiles boundaries.

parent fba4dac2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment