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

Removed a check that is not needed anymore.

The indices are now checked at caller level.
parent c0bf80d0
No related branches found
No related tags found
No related merge requests found
...@@ -174,13 +174,6 @@ public class DuvenhageAlgorithm implements IntersectionAlgorithm { ...@@ -174,13 +174,6 @@ public class DuvenhageAlgorithm implements IntersectionAlgorithm {
throw RuggedException.createInternalError(null); throw RuggedException.createInternalError(null);
} }
if (FastMath.min(entryLat, exitLat) < 0 || FastMath.max(entryLat, exitLat) >= tile.getLatitudeRows() ||
FastMath.min(entryLon, exitLon) < 0 || FastMath.max(entryLon, exitLon) >= tile.getLongitudeColumns()) {
// search segment is outside of tile (probably due to the 1 offset with respect
// to a boundary crossing index when splitting line-of-sight in the caller
return null;
}
if (entryLat == exitLat && entryLon == exitLon) { if (entryLat == exitLat && entryLon == exitLon) {
// we have narrowed the search down to a single Digital Elevation Model pixel // we have narrowed the search down to a single Digital Elevation Model pixel
GeodeticPoint intersection = tile.pixelIntersection(entry, ellipsoid.convertLos(entry, los), GeodeticPoint intersection = tile.pixelIntersection(entry, ellipsoid.convertLos(entry, los),
......
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