Ignore:
Timestamp:
2017-07-12T21:41:19+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #15012 - Support WMS endpoint in Imagery -> Rectified Image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java

    r12279 r12469  
    9494            case WMS_ENDPOINT:
    9595                // convert to WMS type
    96                 return getWMSLayerInfo();
     96                return getWMSLayerInfo(info);
    9797            case WMTS:
    9898                // specify which layer to use
     
    152152    }
    153153
    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 {
    155162        CheckParameterUtil.ensureThat(ImageryType.WMS_ENDPOINT.equals(info.getImageryType()), "wms_endpoint imagery type expected");
    156163
Note: See TracChangeset for help on using the changeset viewer.