Changeset 8585 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r8584 r8585 280 280 String[] topLeftCorner = getStringByXpath(tileMatrixNode, "TopLeftCorner").split(" "); 281 281 282 if(matrixProj.switchXY()) { 282 if (matrixProj.switchXY()) { 283 283 tileMatrix.topLeftCorner = new EastNorth(Double.parseDouble(topLeftCorner[1]), Double.parseDouble(topLeftCorner[0])); 284 284 } else { -
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r8584 r8585 92 92 } 93 93 94 95 96 94 @Test 97 95 public void testWIEN() throws MalformedURLException, IOException { … … 114 112 assertTrue("X index is negative: " + xy.getXIndex(), xy.getXIndex() > 0); 115 113 assertTrue(xy.getYIndex() > 0); 116 for(int x = 0; x < 4; x++) { 117 for(int y = 0; y < 4; y++) { 114 for (int x = 0; x < 4; x++) { 115 for (int y = 0; y < 4; y++) { 118 116 verifyMercatorTile(testSource, x, y, 3, zoomOffset); 119 117 } 120 118 } 121 for(int x = 0; x < 8; x++) { 122 for(int y = 0; y < 4; y++) { 119 for (int x = 0; x < 8; x++) { 120 for (int y = 0; y < 4; y++) { 123 121 verifyMercatorTile(testSource, x, y, zoomOffset); 124 122 } 125 123 } 126 124 127 verifyMercatorTile(testSource, 2 <<9 - 1, 2<<8 - 1, zoomOffset);125 verifyMercatorTile(testSource, 2 << 9 - 1, 2 << 8 - 1, zoomOffset); 128 126 129 127 assertEquals("TileXMax", 1, testSource.getTileXMax(1));
Note:
See TracChangeset
for help on using the changeset viewer.