Changeset 35209 in osm for applications/editors/josm/plugins/CommandLine/src/org
- Timestamp:
- 2019-11-02T15:22:15+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/GpxFilter.java
r34574 r35209 8 8 import org.openstreetmap.josm.data.gpx.GpxData; 9 9 import org.openstreetmap.josm.data.gpx.GpxTrack; 10 import org.openstreetmap.josm.data.gpx.GpxTrackSegment; 11 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack; 10 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 12 11 import org.openstreetmap.josm.data.gpx.WayPoint; 13 12 import org.openstreetmap.josm.data.osm.BBox; … … 31 30 for (GpxTrack track : data.tracks) { 32 31 currentTrack = new ArrayList<>(); 33 for ( GpxTrackSegment segment : track.getSegments()) {32 for (IGpxTrackSegment segment : track.getSegments()) { 34 33 currentSegment = new ArrayList<>(); 35 34 for (WayPoint wp : segment.getWayPoints()) { … … 48 47 } 49 48 } 50 this.data.tracks.add(new ImmutableGpxTrack(currentTrack, Collections.<String, Object>emptyMap()));49 this.data.tracks.add(new GpxTrack(currentTrack, Collections.<String, Object>emptyMap())); 51 50 } 52 51 }
Note:
See TracChangeset
for help on using the changeset viewer.