Changeset 10335 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2016-06-07T22:45:41+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImagesTest.java
r9880 r10335 12 12 import org.junit.Test; 13 13 import org.openstreetmap.josm.JOSMFixture; 14 import org.openstreetmap.josm.data.coor. LatLon;14 import org.openstreetmap.josm.data.coor.CachedLatLon; 15 15 import org.openstreetmap.josm.data.gpx.GpxData; 16 16 import org.openstreetmap.josm.io.GpxReaderTest; … … 58 58 59 59 assertEquals(4, CorrelateGpxWithImages.matchGpxTrack(Arrays.asList(i0, i1, i2, i3), gpx, 0)); 60 assertEquals(new LatLon(47.19286847859621, 8.79732714034617), i0.getPos()); // start of track61 assertEquals(new LatLon(47.196979885920882, 8.79541271366179), i1.getPos()); // exact match62 assertEquals(new LatLon(47.197319911792874, 8.792139580473304), i3.getPos()); // exact match63 assertEquals(new LatLon((47.197131179273129 + 47.197186248376966) / 2, (8.792974585667253 + 8.792809881269932) / 2),60 assertEquals(new CachedLatLon(47.19286847859621, 8.79732714034617), i0.getPos()); // start of track 61 assertEquals(new CachedLatLon(47.196979885920882, 8.79541271366179), i1.getPos()); // exact match 62 assertEquals(new CachedLatLon(47.197319911792874, 8.792139580473304), i3.getPos()); // exact match 63 assertEquals(new CachedLatLon((47.197131179273129 + 47.197186248376966) / 2, (8.792974585667253 + 8.792809881269932) / 2), 64 64 i2.getPos()); // interpolated 65 65 }
Note:
See TracChangeset
for help on using the changeset viewer.