]> gitweb.fperrin.net Git - GpsPrune.git/commitdiff
LookupSrtmFunction: always set point altitude v20.3.fp2
authorFrédéric Perrin <fred@fperrin.net>
Sat, 10 Apr 2021 21:09:02 +0000 (22:09 +0100)
committerFrédéric Perrin <fred@fperrin.net>
Sat, 10 Apr 2021 21:09:02 +0000 (22:09 +0100)
src/tim/prune/function/srtm/LookupSrtmFunction.java

index c5986dba48710517b5432d8a9776370764857ac5..b6c48c04c51b84929cb9509b00e19b968122f9cc 100644 (file)
@@ -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;
        }