mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-03 09:53:06 +02:00
KML description: max/min elevation will not show if have invalid values (unknow).
This commit is contained in:
@@ -176,6 +176,10 @@ public class TrackStatistics {
|
||||
this.maxSpeed_mps = maxSpeed;
|
||||
}
|
||||
|
||||
public boolean hasElevationMin() {
|
||||
return !Double.isInfinite(getMinElevation());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the minimum elevation.
|
||||
* This is calculated from the smoothed elevation, so this can actually be more than the current elevation.
|
||||
@@ -193,6 +197,10 @@ public class TrackStatistics {
|
||||
elevationExtremities.setMin(elevation);
|
||||
}
|
||||
|
||||
public boolean hasElevationMax() {
|
||||
return !Double.isInfinite(getMaxElevation());
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the maximum elevation.
|
||||
* This is calculated from the smoothed elevation, so this can actually be less than the current elevation.
|
||||
|
||||
Reference in New Issue
Block a user