Revision 2069 trunk/extensions/extWCS/src/com/iver/cit/gvsig/fmap/layers/FLyrWCS.java
FLyrWCS.java | ||
---|---|---|
60 | 60 |
import com.iver.utiles.StringUtilities; |
61 | 61 |
import com.iver.utiles.XMLEntity; |
62 | 62 |
|
63 |
import es.uji.lsi.wcs.client.ServerOutOfOrderException; |
|
64 |
|
|
65 | 63 |
/** |
66 | 64 |
* Capa para el WCS. |
67 | 65 |
* |
... | ... | |
85 | 83 |
XMLEntity xml = super.getXMLEntity(); |
86 | 84 |
|
87 | 85 |
xml.putProperty("wcs.host", getHost()); |
88 |
xml.putProperty("wcs.fullExtent", |
|
89 |
StringUtilities.rect2String(wcs.getFullExtent())); |
|
86 |
try { |
|
87 |
xml.putProperty("wcs.fullExtent", |
|
88 |
StringUtilities.rect2String(wcs.getFullExtent())); |
|
89 |
} catch (IOException e) { |
|
90 |
} catch (DriverException e) { |
|
91 |
} |
|
90 | 92 |
xml.putProperty("wcs.layerQuery", wcs.getCoverageQuery()); |
91 | 93 |
xml.putProperty("wcs.format", getFormat()); |
92 | 94 |
xml.putProperty("wcs.srs", getSRS()); |
... | ... | |
130 | 132 |
* |
131 | 133 |
* @return Rectangle2D |
132 | 134 |
*/ |
133 |
public Rectangle2D getFullExtent() throws DriverException { |
|
134 |
return getWCSAdaptor().getFullExtent(); |
|
135 |
public Rectangle2D getFullExtent(){// throws DriverException { |
|
136 |
try { |
|
137 |
return getWCSAdaptor().getFullExtent(); |
|
138 |
} catch (IOException e) { |
|
139 |
JOptionPane.showMessageDialog(null, "error_comunicacion_servidor", "Error", JOptionPane.ERROR_MESSAGE); |
|
140 |
} catch (DriverException e) { |
|
141 |
JOptionPane.showMessageDialog(null, "servidor_wcs_no_responde", "Error", JOptionPane.ERROR_MESSAGE); |
|
142 |
} |
|
143 |
return null; |
|
135 | 144 |
} |
136 | 145 |
|
137 | 146 |
/** |
Also available in: Unified diff