Revision 7836 trunk/extensions/extWMS/src/com/iver/cit/gvsig/fmap/drivers/wms/FMapWMSDriver.java
FMapWMSDriver.java | ||
---|---|---|
110 | 110 |
throw new WMSException("WMS Unexpected server error."+e.getMessage()); |
111 | 111 |
} |
112 | 112 |
} |
113 |
|
|
114 |
/** |
|
115 |
* Gets the legend graphic of one layer |
|
116 |
*/ |
|
117 |
public File getLegendGraphic(String layerName, ICancellable cancel) throws WMSException { |
|
118 |
try { |
|
119 |
return client.getLegendGraphic(layerName, cancel); |
|
120 |
} catch (org.gvsig.remoteClient.exceptions.WMSException e) { |
|
121 |
throw new WMSException(e.getMessage()); |
|
122 |
} catch (ServerErrorException e) { |
|
123 |
throw new WMSException("WMS Unexpected server error."+e.getMessage()); |
|
124 |
} |
|
125 |
} |
|
113 | 126 |
|
114 | 127 |
/** |
115 | 128 |
* Devuelve WMSClient a partir de su URL. |
Also available in: Unified diff