Ignore:
Timestamp:
2019-11-03T22:22:25+01:00 (5 years ago)
Author:
donvip
Message:

see #josm16796 - update to JOSM 15502 - use IGpxTrack in GpxData (patch by Bjoeni)

Location:
applications/editors/josm/plugins/NanoLog
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/NanoLog/build.xml

    r35217 r35221  
    55    <property name="commit.message" value="NanoLog"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="15496"/>
     7    <property name="plugin.main.version" value="15502"/>
    88    <property name="plugin.author" value="Ilya Zverev"/>
    99    <property name="plugin.class" value="nanolog.NanoLogPlugin"/>
  • applications/editors/josm/plugins/NanoLog/src/nanolog/Correlator.java

    r35218 r35221  
    1212import org.openstreetmap.josm.data.coor.LatLon;
    1313import org.openstreetmap.josm.data.gpx.GpxData;
    14 import org.openstreetmap.josm.data.gpx.GpxTrack;
     14import org.openstreetmap.josm.data.gpx.IGpxTrack;
    1515import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1616import org.openstreetmap.josm.data.gpx.WayPoint;
     
    4242        long firstGPXDate = -1;
    4343        outer:
    44         for (GpxTrack trk : data.tracks) {
     44        for (IGpxTrack trk : data.tracks) {
    4545            for (IGpxTrackSegment segment : trk.getSegments()) {
    4646                for (WayPoint curWp : segment.getWayPoints()) {
     
    8484        //int ret = 0;
    8585        Collections.sort(sortedEntries);
    86         for (GpxTrack track : data.tracks) {
     86        for (IGpxTrack track : data.tracks) {
    8787            for (IGpxTrackSegment segment : track.getSegments()) {
    8888                long prevWpTime = 0;
     
    220220    public static long getGpxDate(GpxData data, LatLon pos) {
    221221        EastNorth en = ProjectionRegistry.getProjection().latlon2eastNorth(pos);
    222         for (GpxTrack track : data.tracks) {
     222        for (IGpxTrack track : data.tracks) {
    223223            for (IGpxTrackSegment segment : track.getSegments()) {
    224224                long prevWpTime = 0;
Note: See TracChangeset for help on using the changeset viewer.