Changeset 8570 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2015-07-05T02:25:58+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r8569 r8570 50 50 verifyMercatorTile(testSource, 0, 0, 2); 51 51 verifyMercatorTile(testSource, 1, 1, 2); 52 for (int x = 0; x < 4; x++) {53 for (int y = 0; y < 4; y++) {52 for (int x = 0; x < 4; x++) { 53 for (int y = 0; y < 4; y++) { 54 54 verifyMercatorTile(testSource, x, y, 3); 55 55 } 56 56 } 57 for (int x = 0; x < 8; x++) {58 for (int y = 0; y < 4; y++) {57 for (int x = 0; x < 8; x++) { 58 for (int y = 0; y < 4; y++) { 59 59 verifyMercatorTile(testSource, x, y, 4); 60 60 } 61 61 } 62 62 63 verifyMercatorTile(testSource, 2 <<9 - 1, 2<<8 - 1, 10);63 verifyMercatorTile(testSource, 2 << 9 - 1, 2 << 8 - 1, 10); 64 64 65 65 assertEquals("TileXMax", 1, testSource.getTileXMax(1)); … … 69 69 assertEquals("TileXMax", 5, testSource.getTileXMax(3)); 70 70 assertEquals("TileYMax", 4, testSource.getTileYMax(3)); 71 72 71 } 73 72 … … 87 86 verifyMercatorTile(testSource, 0, 0, 2, zoomOffset); 88 87 verifyMercatorTile(testSource, 1, 1, 2, zoomOffset); 89 for (int x = 0; x < 4; x++) {90 for (int y = 0; y < 4; y++) {88 for (int x = 0; x < 4; x++) { 89 for (int y = 0; y < 4; y++) { 91 90 verifyMercatorTile(testSource, x, y, 3, zoomOffset); 92 91 } 93 92 } 94 for (int x = 0; x < 8; x++) {95 for (int y = 0; y < 4; y++) {93 for (int x = 0; x < 8; x++) { 94 for (int y = 0; y < 4; y++) { 96 95 verifyMercatorTile(testSource, x, y, zoomOffset); 97 96 } 98 97 } 99 98 100 verifyMercatorTile(testSource, 2 <<9 - 1, 2<<8 - 1, zoomOffset);99 verifyMercatorTile(testSource, 2 << 9 - 1, 2 << 8 - 1, zoomOffset); 101 100 102 101 assertEquals("TileXMax", 1, testSource.getTileXMax(1)); … … 106 105 assertEquals("TileXMax", 4, testSource.getTileXMax(3)); 107 106 assertEquals("TileYMax", 4, testSource.getTileYMax(3)); 108 109 107 } 110 108 … … 113 111 Main.setProjection(Projections.getProjectionByCode("EPSG:4326")); 114 112 WMTSTileSource testSource = new WMTSTileSource(testImageryTOPO_PL); 115 verifyTile(new LatLon(56, 12), testSource, 0, 0, 1);116 verifyTile(new LatLon(56, 12), testSource, 0, 0, 2);113 verifyTile(new LatLon(56, 12), testSource, 0, 0, 1); 114 verifyTile(new LatLon(56, 12), testSource, 0, 0, 2); 117 115 verifyTile(new LatLon(51.1268639, 16.8731360), testSource, 1, 1, 2); 118 116
Note:
See TracChangeset
for help on using the changeset viewer.