Changeset 35209 in osm
- Timestamp:
- 2019-11-02T15:22:15+01:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/CommandLine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/build.xml
r34574 r35209 4 4 <property name="commit.message" value="JOSM/CommandLine: fix exception after JOSM update"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 4153"/>6 <property name="plugin.main.version" value="15496"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
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.