Changeset 19681 in osm for applications/editors/josm/plugins/globalsat/src
- Timestamp:
- 2010-01-30T20:10:15+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/globalsat/src/org/openstreetmap/josm/plugins/globalsat/GlobalsatDg100.java
r16585 r19681 17 17 import java.util.ArrayList; 18 18 import java.util.Collection; 19 import java.util.Collections; 19 20 import java.util.List; 20 21 … … 26 27 import org.openstreetmap.josm.data.coor.LatLon; 27 28 import org.openstreetmap.josm.data.gpx.GpxData; 28 import org.openstreetmap.josm.data.gpx.GpxTrack; 29 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrackSegment; 30 import org.openstreetmap.josm.data.gpx.SingleSegmentGpxTrack; 29 31 import org.openstreetmap.josm.data.gpx.WayPoint; 30 32 import org.openstreetmap.josm.gui.progress.ProgressMonitor; … … 148 150 if(gpsRecList.size() > 0){ 149 151 GpsRec last = null; 150 GpxTrack trk = new GpxTrack();152 result = new GpxData(); 151 153 Collection<WayPoint> seg = new ArrayList<WayPoint>(100); 152 result = new GpxData();153 result.tracks.add(trk);154 trk.trackSegs.add(seg);155 154 for(GpsRec r:gpsRecList){ 156 155 if(cancelled){ … … 166 165 progressMonitor.worked(1); 167 166 } 167 result.tracks.add(new SingleSegmentGpxTrack(new ImmutableGpxTrackSegment(seg), Collections.<String, Object>emptyMap())); 168 168 } 169 169 return result;
Note:
See TracChangeset
for help on using the changeset viewer.