- Timestamp:
- 2015-09-21T01:40:14+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSourceTest.java
r8697 r8770 8 8 import org.junit.Test; 9 9 import org.openstreetmap.gui.jmapviewer.TileXY; 10 import org.openstreetmap.gui.jmapviewer.interfaces.ICoordinate; 10 11 import org.openstreetmap.gui.jmapviewer.tilesources.TemplatedTMSTileSource; 11 12 import org.openstreetmap.josm.JOSMFixture; … … 125 126 TemplatedTMSTileSource verifier = new TemplatedTMSTileSource(testImageryTMS); 126 127 LatLon result = getTileLatLon(source, x, y, z); 127 LatLonexpected =new LatLon(verifier.tileYToLat(y, z - 1),verifier.tileXToLon(x,z - 1));128 assertEquals(expected. lat(), result.lat(), 1e-4);129 assertEquals(expected. lon(), result.lon(), 1e-4);128 ICoordinate expected = verifier.tileXYToLatLon(x, y, z - 1); 129 assertEquals(expected.getLat(), result.lat(), 1e-4); 130 assertEquals(expected.getLon(), result.lon(), 1e-4); 130 131 //assertTrue("result: " + result.toDisplayString() + " osmMercator: " + expected.toDisplayString(), result.equalsEpsilon(expected)); 131 132 LatLon tileCenter = new Bounds(result, getTileLatLon(source, x+1, y+1, z)).getCenter();
Note:
See TracChangeset
for help on using the changeset viewer.