X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Ftim%2Fprune%2Ffunction%2Fsrtm%2FLookupSrtmFunction.java;h=b6c48c04c51b84929cb9509b00e19b968122f9cc;hb=37aefafe046d69d372b4be208e0ae604c6d8a734;hp=c5986dba48710517b5432d8a9776370764857ac5;hpb=1d7fafebedac21eb92b39a9726052026d5747529;p=GpsPrune.git diff --git a/src/tim/prune/function/srtm/LookupSrtmFunction.java b/src/tim/prune/function/srtm/LookupSrtmFunction.java index c5986db..b6c48c0 100644 --- a/src/tim/prune/function/srtm/LookupSrtmFunction.java +++ b/src/tim/prune/function/srtm/LookupSrtmFunction.java @@ -325,9 +325,6 @@ public class LookupSrtmFunction extends GenericFunction implements Runnable for (int p = 0; p < _track.getNumPoints(); p++) { DataPoint point = _track.getPoint(p); - if (!point.hasAltitude() - || (inOverwriteZeros && point.getAltitude().getValue() == 0)) - { if (new SrtmTile(point).equals(inTile)) { double x = (point.getLongitude().getDouble() - inTile.getLongitude()) * 1200; @@ -364,7 +361,6 @@ public class LookupSrtmFunction extends GenericFunction implements Runnable // System.err.println("lat=" + point.getLatitude().getDouble() + ", x=" + x + ", y=" + y + ", idx=" + idx1); } } - } } return numAltitudesFound; }