Changeset 8855 in josm for trunk/test/unit
- Timestamp:
- 2015-10-10T21:01:42+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r8836 r8855 49 49 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); 50 50 WMTSTileSource testSource = new WMTSTileSource(testImageryPSEUDO_MERCATOR); 51 testSource.initProjection( );51 testSource.initProjection(Main.getProjection()); 52 52 53 53 verifyMercatorTile(testSource, 0, 0, 1); … … 80 80 Main.setProjection(Projections.getProjectionByCode("EPSG:31370")); 81 81 WMTSTileSource testSource = new WMTSTileSource(testImageryWALLONIE); 82 testSource.initProjection( );82 testSource.initProjection(Main.getProjection()); 83 83 84 84 assertEquals("http://geoservices.wallonie.be/arcgis/rest/services/DONNEES_BASE/FOND_PLAN_ANNOTATIONS_2012_RW_NB/" … … 99 99 Main.setProjection(Projections.getProjectionByCode("EPSG:31370")); 100 100 WMTSTileSource testSource = new WMTSTileSource(getImagery("test/data/wmts/WMTSCapabilities-Wallonie-nomatrixdimension.xml")); 101 testSource.initProjection( );101 testSource.initProjection(Main.getProjection()); 102 102 103 103 Bounds wallonieBounds = new Bounds( … … 123 123 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); 124 124 WMTSTileSource testSource = new WMTSTileSource(testImageryWIEN); 125 testSource.initProjection( );125 testSource.initProjection(Main.getProjection()); 126 126 int zoomOffset = 9; 127 127 … … 165 165 Main.setProjection(Projections.getProjectionByCode("EPSG:4326")); 166 166 WMTSTileSource testSource = new WMTSTileSource(testImageryTOPO_PL); 167 testSource.initProjection( );167 testSource.initProjection(Main.getProjection()); 168 168 verifyTile(new LatLon(56, 12), testSource, 0, 0, 1); 169 169 verifyTile(new LatLon(56, 12), testSource, 0, 0, 2); … … 187 187 Main.setProjection(Projections.getProjectionByCode("EPSG:4326")); 188 188 WMTSTileSource testSource = new WMTSTileSource(testImageryORTO_PL); 189 testSource.initProjection( );189 testSource.initProjection(Main.getProjection()); 190 190 verifyTile(new LatLon(53.5993712684958, 19.560669777688176), testSource, 12412, 3941, 14); 191 191 verifyTile(new LatLon(49.783096954497786, 22.79034127751704), testSource, 17714, 10206, 14); … … 196 196 Main.setProjection(Projections.getProjectionByCode("EPSG:2180")); 197 197 WMTSTileSource testSource = new WMTSTileSource(testImageryORTO_PL); 198 testSource.initProjection( );198 testSource.initProjection(Main.getProjection()); 199 199 200 200 verifyTile(new LatLon(53.59940948387726, 19.560544913270064), testSource, 6453, 3140, 14); … … 207 207 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); 208 208 WMTSTileSource testSource = new WMTSTileSource(testImageryOntario); 209 testSource.initProjection( );209 testSource.initProjection(Main.getProjection()); 210 210 verifyTile(new LatLon(45.4105023, -75.7153702), testSource, 303751, 375502, 12); 211 211 verifyTile(new LatLon(45.4601306, -75.7617187), testSource, 1186, 1466, 4);
Note:
See TracChangeset
for help on using the changeset viewer.