Changeset 12469 in josm for trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
- Timestamp:
- 2017-07-12T21:41:19+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
r12279 r12469 94 94 case WMS_ENDPOINT: 95 95 // convert to WMS type 96 return getWMSLayerInfo(); 96 return getWMSLayerInfo(info); 97 97 case WMTS: 98 98 // specify which layer to use … … 152 152 } 153 153 154 protected ImageryInfo getWMSLayerInfo() throws IOException, WMSGetCapabilitiesException { 154 /** 155 * Asks user to choose a WMS layer from a WMS endpoint. 156 * @param info the WMS endpoint. 157 * @return chosen WMS layer, or null 158 * @throws IOException if any I/O error occurs while contacting the WMS endpoint 159 * @throws WMSGetCapabilitiesException if the WMS getCapabilities request fails 160 */ 161 protected static ImageryInfo getWMSLayerInfo(ImageryInfo info) throws IOException, WMSGetCapabilitiesException { 155 162 CheckParameterUtil.ensureThat(ImageryType.WMS_ENDPOINT.equals(info.getImageryType()), "wms_endpoint imagery type expected"); 156 163
Note:
See TracChangeset
for help on using the changeset viewer.