Changeset 13699 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java
r13398 r13699 34 34 35 35 import org.openstreetmap.josm.data.Bounds; 36 import org.openstreetmap.josm.data.imagery.GetCapabilitiesParseHelper; 36 37 import org.openstreetmap.josm.data.imagery.ImageryInfo; 37 38 import org.openstreetmap.josm.data.projection.Projections; … … 347 348 child = getChild(child, "OnlineResource"); 348 349 if (child != null) { 349 String baseURL = child.getAttribute ("xlink:href");350 String baseURL = child.getAttributeNS(GetCapabilitiesParseHelper.XLINK_NS_URL, "href"); 350 351 if (!baseURL.equals(serviceUrlStr)) { 351 352 URL newURL = new URL(baseURL); -
trunk/test/unit/org/openstreetmap/josm/io/imagery/WMSImageryTest.java
r13274 r13699 56 56 } 57 57 } 58 59 /** 60 * Non-regression test for bug #16248. 61 * @throws IOException if any I/O error occurs 62 * @throws WMSGetCapabilitiesException never 63 */ 64 @Test 65 public void testTicket16248() throws IOException, WMSGetCapabilitiesException { 66 try (InputStream is = TestUtils.getRegressionDataStream(16248, "capabilities.xml")) { 67 WMSImagery wms = new WMSImagery(); 68 wms.parseCapabilities(null, is); 69 assertEquals("http://wms.hgis.cartomatic.pl/topo/3857/m25k", wms.getServiceUrl().toExternalForm()); 70 } 71 } 58 72 }
Note:
See TracChangeset
for help on using the changeset viewer.