Changeset 30701 in osm for applications/editors/josm/plugins/NanoLog/src/nanolog
- Timestamp:
- 2014-10-04T17:28:45+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/NanoLog/src/nanolog
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/NanoLog/src/nanolog/Correlator.java
r30527 r30701 73 73 public static void correlate( List<NanoLogEntry> entries, GpxData data, long offset ) { 74 74 List<NanoLogEntry> sortedEntries = new ArrayList<NanoLogEntry>(entries); 75 int ret = 0; 75 //int ret = 0; 76 76 PrimaryDateParser dateParser = new PrimaryDateParser(); 77 77 Collections.sort(sortedEntries); … … 87 87 try { 88 88 long curWpTime = dateParser.parse(curWpTimeStr).getTime() + offset; 89 ret +=matchPoints(sortedEntries, prevWp, prevWpTime, curWp, curWpTime, offset);89 /*ret +=*/ matchPoints(sortedEntries, prevWp, prevWpTime, curWp, curWpTime, offset); 90 90 91 91 prevWp = curWp; -
applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogEntry.java
r30491 r30701 1 1 package nanolog; 2 2 3 import java.awt.*; 4 import java.util.*; 5 import org.openstreetmap.josm.Main; 6 import org.openstreetmap.josm.data.Bounds; 3 import java.util.Date; 4 7 5 import org.openstreetmap.josm.data.coor.LatLon; 8 import org.openstreetmap.josm.gui.MapView;9 6 10 7 /** -
applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogLayer.java
r30491 r30701 305 305 private boolean toZero; 306 306 307 public CorrelateEntries() {308 this(false);309 }310 311 307 public CorrelateEntries( boolean toZero ) { 312 308 super(toZero ? tr("Correlate with GPX...") : tr("Put on GPX..."), "nanolog/correlate", tr("Correlate entries with GPS trace"), null, false); -
applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogPanel.java
r30491 r30701 1 1 package nanolog; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import java.awt.Rectangle; 4 6 import java.text.SimpleDateFormat; 5 import java.util.*; 6 import javax.swing.*; 7 import java.util.ArrayList; 8 import java.util.List; 9 10 import javax.swing.AbstractListModel; 11 import javax.swing.JList; 12 7 13 import nanolog.NanoLogLayer.NanoLogLayerListener; 14 8 15 import org.openstreetmap.josm.Main; 9 16 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 10 17 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; 11 18 import org.openstreetmap.josm.gui.layer.Layer; 12 import static org.openstreetmap.josm.tools.I18n.tr;13 import org.openstreetmap.josm.tools.Shortcut;14 19 15 20 /**
Note:
See TracChangeset
for help on using the changeset viewer.