- Timestamp:
- 2018-12-08T21:22:54+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java
r14522 r14523 34 34 import org.openstreetmap.josm.data.imagery.WMTSTileSource; 35 35 import org.openstreetmap.josm.data.imagery.WMTSTileSource.WMTSGetCapabilitiesException; 36 import org.openstreetmap.josm.data.projection.Projection; 36 37 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 38 import org.openstreetmap.josm.data.projection.Projections; 37 39 import org.openstreetmap.josm.testutils.JOSMTestRules; 38 40 import org.openstreetmap.josm.tools.HttpClient; … … 190 192 } 191 193 194 private static Projection getProjection(ImageryInfo info) { 195 return info.getServerProjections().isEmpty() ? ProjectionRegistry.getProjection() : 196 Projections.getProjectionByCode(info.getServerProjections().get(0)); 197 } 198 192 199 private static AbstractTileSource getTileSource(ImageryInfo info) throws IOException, WMTSGetCapabilitiesException { 193 200 switch (info.getImageryType()) { … … 199 206 return new TemplatedTMSTileSource(info); 200 207 case WMS: 201 return new TemplatedWMSTileSource(info, ProjectionRegistry.getProjection());208 return new TemplatedWMSTileSource(info, getProjection(info)); 202 209 case WMS_ENDPOINT: 203 return new WMSEndpointTileSource(info, ProjectionRegistry.getProjection());210 return new WMSEndpointTileSource(info, getProjection(info)); 204 211 case WMTS: 205 return new WMTSTileSource(info, ProjectionRegistry.getProjection());212 return new WMTSTileSource(info, getProjection(info)); 206 213 default: 207 214 throw new UnsupportedOperationException(info.toString());
Note:
See TracChangeset
for help on using the changeset viewer.