Changeset 23304 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-09-22T04:39:30+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/AddWMSLayerPanel.java
r23303 r23304 283 283 } 284 284 285 // Some WMS service URLs specify a different base URL for their GetMap service 286 Element child = getChild(document.getDocumentElement(), "Capability"); 287 child = getChild(child, "Request"); 288 child = getChild(child, "GetMap"); 289 child = getChild(child, "DCPType"); 290 child = getChild(child, "HTTP"); 291 child = getChild(child, "Get"); 292 child = getChild(child, "OnlineResource"); 293 String baseURL = child.getAttribute("xlink:href"); 294 if(baseURL != null) { 295 try { 296 System.out.println("GetCapabilities specifies a different service URL: " + baseURL); 297 serviceUrl = new URL(baseURL); 298 } catch (MalformedURLException e1) { 299 } 300 } 301 285 302 try { 286 303 treeRootNode.setUserObject(getCapabilitiesUrl.getHost());
Note:
See TracChangeset
for help on using the changeset viewer.