Revision 2069 trunk/extensions/extWCS/src/com/iver/cit/gvsig/fmap/drivers/wcs/FMapWCSDriver.java
FMapWCSDriver.java | ||
---|---|---|
242 | 242 |
/** |
243 | 243 |
* @param coverageName |
244 | 244 |
* @param srs |
245 |
* @throws DriverException |
|
246 |
* @throws IOException |
|
245 | 247 |
*/ |
246 |
private Rectangle2D getBoundingBoxExtensionMaxima(String coverageName, String srs) { |
|
248 |
private Rectangle2D getBoundingBoxExtensionMaxima(String coverageName, String srs) throws IOException, DriverException {
|
|
247 | 249 |
// TODO Has de considerar el cas per a quan el SRS no vinga als RequestResponse |
248 | 250 |
// ni cap altre... |
249 | 251 |
// IDEA: agafar algun dels de CoverageOfferingBrief i aplicar la transformaci?. |
250 | 252 |
CoverageOffering co = wcs.getCoverageDescription(coverageName); |
253 |
|
|
254 |
if (!isConnected()) |
|
255 |
connect(); |
|
251 | 256 |
if (co.getDomainSet() != null) { |
252 | 257 |
if (co.getDomainSet().getSpatialDomain() != null){ |
253 | 258 |
ArrayList gewtpList = co.getDomainSet().getSpatialDomain().getGMLEnvelopeWithTimePeriodList(); |
... | ... | |
299 | 304 |
/** |
300 | 305 |
* Obtiene la M?XIMA extensi?n de la cobertura en el servidor. |
301 | 306 |
* @return Rectangle2D |
307 |
* @throws DriverException |
|
308 |
* @throws IOException |
|
302 | 309 |
*/ |
303 |
public Rectangle2D getFullExtent(String coverageName, String srs) { |
|
310 |
public Rectangle2D getFullExtent(String coverageName, String srs) throws IOException, DriverException {
|
|
304 | 311 |
return getBoundingBoxExtensionMaxima(coverageName, srs); |
305 | 312 |
} |
306 | 313 |
|
Also available in: Unified diff