Skip to content

Commit

Permalink
More toUpperFixes
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Dec 9, 2023
1 parent a33268c commit 1224079
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ public void wmsUrl() {
TileLayerSource.getListsLocked(ApplicationProvider.getApplicationContext(), db.getReadableDatabase(), true);
String[] ids = TileLayerSource.getIds(null, false, null, null);
assertEquals(2, ids.length);
TileLayerSource swisstopo = TileLayerSource.get(ApplicationProvider.getApplicationContext(), "swisstopo_swissimage".toUpperCase(), false);
TileLayerSource swisstopo = TileLayerSource.get(ApplicationProvider.getApplicationContext(), "swisstopo_swissimage", false);
assertNotNull(swisstopo);
MapTile tile = new MapTile("", 16, 34387, 22901);
String url = swisstopo.getTileURLString(tile);
assertEquals(
"https://wms.geo.admin.ch?LAYERS=ch.swisstopo.swissimage&STYLES=default&FORMAT=image/jpeg&CRS=EPSG:3857&WIDTH=512&HEIGHT=512&BBOX=990012.3903496042,6033021.768492393,990623.8865758851,6033633.264718674&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetMap",
url);
TileLayerSource thurgau = TileLayerSource.get(ApplicationProvider.getApplicationContext(), "kt_tg_av".toUpperCase(), false);
TileLayerSource thurgau = TileLayerSource.get(ApplicationProvider.getApplicationContext(), "kt_tg_av", false);
assertNotNull(thurgau);
url = thurgau.getTileURLString(tile);
assertEquals(
Expand All @@ -192,7 +192,7 @@ public void wmsUrl() {
@Test
public void projFromWmsUrl() {
TileLayerDatabase.addSource(db.getWritableDatabase(), TileLayerDatabase.SOURCE_ELI);
final String id = "kt_tg_av_test".toUpperCase();
final String id = "kt_tg_av_test";
TileLayerSource.addOrUpdateCustomLayer(ApplicationProvider.getApplicationContext(), db.getWritableDatabase(), id, null, -1L, -1L, "Test", null, null,
null, null, 1, 20, 256, false,
"https://ows.geo.tg.ch/geofy_access_proxy/basisplanf?LAYERS=Basisplan_farbig&STYLES=&FORMAT=image/png&CRS=EPSG:4326&WIDTH={width}&HEIGHT={height}&BBOX={bbox}&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetMap");
Expand Down

0 comments on commit 1224079

Please sign in to comment.