GPX: only export TrackPoints with lat/lng. (#591)

GPX: only export TrackPoints with lat/lng.
Thus, segmentation (manual/automatic) cannot be restored on import.
This also affects the TrackStatistics.
This commit is contained in:
Dennis Guse
2021-02-09 19:00:28 +01:00
committed by GitHub
parent 4a340380ac
commit fa12086951
14 changed files with 379 additions and 467 deletions
@@ -36,7 +36,7 @@ import java.util.Objects;
* Drawbacks:
* * GPS-provided timestamp might be more precise (but also have GPS week rollover)
* * System clock might be changed (and thus non-monotonic)
* TODO: if these might be problems, we need to store both timestamps.
* TODO: if these might be a problem, we need to store both timestamps.
*
* @author Sandor Dornbush
*/
@@ -177,7 +177,7 @@ public class TrackPoint {
return latitude != null || longitude != null;
}
@Nullable
@NonNull
public Location getLocation() {
Location location = new Location("");
location.setTime(time.toEpochMilli());