Package org.openstreetmap.josm.data.gpx
Class GpxImageCorrelation
- java.lang.Object
-
- org.openstreetmap.josm.data.gpx.GpxImageCorrelation
-
public final class GpxImageCorrelation extends Object
Correlation logic forCorrelateGpxWithImages
.- Since:
- 14205
-
-
Constructor Summary
Constructors Modifier Constructor Description private
GpxImageCorrelation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static double
computeDirection(double direction, double angleOffset)
(package private) static Double
getElevation(WayPoint wp)
private static int
getLastIndexOfListBefore(List<? extends GpxImageEntry> images, long searchedTime)
(package private) static List<List<List<WayPoint>>>
loadTracks(Collection<IGpxTrack> tracks)
static int
matchGpxTrack(List<? extends GpxImageEntry> images, GpxData selectedGpx, GpxImageCorrelationSettings settings)
Match a list of photos to a gpx track with given settings.private static int
matchPoints(List<? extends GpxImageEntry> images, WayPoint prevWp, long prevWpTime, WayPoint curWp, long curWpTime, long offset, boolean interpolate, int tagTime, WayPoint nextWp, GpxImageDirectionPositionSettings dirpos)
-
-
-
Constructor Detail
-
GpxImageCorrelation
private GpxImageCorrelation()
-
-
Method Detail
-
matchGpxTrack
public static int matchGpxTrack(List<? extends GpxImageEntry> images, GpxData selectedGpx, GpxImageCorrelationSettings settings)
Match a list of photos to a gpx track with given settings. All images need a exifTime attribute and the List must be sorted according to these times.- Parameters:
images
- images to matchselectedGpx
- selected GPX datasettings
- correlation settings- Returns:
- number of matched points
-
loadTracks
static List<List<List<WayPoint>>> loadTracks(Collection<IGpxTrack> tracks)
-
getElevation
static Double getElevation(WayPoint wp)
-
matchPoints
private static int matchPoints(List<? extends GpxImageEntry> images, WayPoint prevWp, long prevWpTime, WayPoint curWp, long curWpTime, long offset, boolean interpolate, int tagTime, WayPoint nextWp, GpxImageDirectionPositionSettings dirpos)
-
computeDirection
private static double computeDirection(double direction, double angleOffset)
-
getLastIndexOfListBefore
private static int getLastIndexOfListBefore(List<? extends GpxImageEntry> images, long searchedTime)
-
-