Revision 8288 trunk/extensions/extWMS/src/com/iver/cit/gvsig/fmap/drivers/wms/FMapWMSDriver.java

View differences:

FMapWMSDriver.java
116 116
     */
117 117
    public File getLegendGraphic(WMSStatus status, String layerName, ICancellable cancel) throws WMSException {
118 118
        try {
119
			return client.getLegendGraphic(status, layerName, cancel);
119
        	File f = client.getLegendGraphic(status, layerName, cancel);
120
			return f;
120 121
        } catch (org.gvsig.remoteClient.exceptions.WMSException e) {
121 122
            throw new WMSException(e.getMessage());
122 123
        } catch (ServerErrorException e) {
......
206 207
    public boolean isQueryable() {
207 208
        return client.isQueryable();
208 209
    }
209

  
210 210
    /**
211
     * @return <b>Boolean</b> returns if the WMS supports getLegendGraphic operation (suppports GetFeatureInfo)
212
     */
213
    public boolean hasLegendGraphic() {
214
        return client.hasLegendGraphic();
215
    }
216
    /**
211 217
     * @return A tree containing the info of all layers available on this server.
212 218
     */
213 219
    public WMSLayerNode getLayersTree() {

Also available in: Unified diff