Revision 10626 trunk/extensions/extWCS/src/com/iver/cit/gvsig/fmap/drivers/wcs/FMapWCSDriver.java
FMapWCSDriver.java | ||
---|---|---|
60 | 60 |
import org.gvsig.remoteClient.wms.ICancellable; |
61 | 61 |
import org.gvsig.remoteClient.wms.WMSClient; |
62 | 62 |
|
63 |
import com.iver.cit.gvsig.fmap.DriverException;
|
|
63 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
|
|
64 | 64 |
import com.iver.cit.gvsig.fmap.layers.FMapWCSParameter; |
65 | 65 |
import com.iver.cit.gvsig.fmap.layers.WCSLayer; |
66 | 66 |
|
... | ... | |
267 | 267 |
* @param override |
268 | 268 |
* @throws IOException, DriverException. |
269 | 269 |
*/ |
270 |
public boolean connect(boolean override, ICancellable cancel) throws IOException, DriverException { |
|
270 |
public boolean connect(boolean override, ICancellable cancel) throws IOException, ReadDriverException {
|
|
271 | 271 |
coverages = null; |
272 | 272 |
setHost(client.getHost()); |
273 | 273 |
return client.connect(override, cancel); |
... | ... | |
296 | 296 |
* @throws DriverException |
297 | 297 |
* @throws IOException |
298 | 298 |
*/ |
299 |
public Rectangle2D getFullExtent(String coverageName, String srs) throws IOException, DriverException { |
|
299 |
public Rectangle2D getFullExtent(String coverageName, String srs) throws IOException, ReadDriverException {
|
|
300 | 300 |
return client.getExtent(coverageName, srs); |
301 | 301 |
} |
302 | 302 |
|
... | ... | |
356 | 356 |
* @return |
357 | 357 |
* @throws WCSException |
358 | 358 |
*/ |
359 |
public File getCoverage(WCSStatus status, ICancellable cancel) throws WCSException { |
|
359 |
public File getCoverage(WCSStatus status, ICancellable cancel) throws WCSDriverException {
|
|
360 | 360 |
try { |
361 | 361 |
return client.getCoverage(status, cancel); |
362 | 362 |
} catch (ServerErrorException e) { |
363 |
throw new WCSException("WCS Unexpected server error."+e.getMessage());
|
|
363 |
throw new WCSDriverException(getName(),e);
|
|
364 | 364 |
} catch (org.gvsig.remoteClient.exceptions.WCSException e) { |
365 |
throw new WCSException(e.getMessage());
|
|
365 |
throw new WCSDriverException(getName(),e);
|
|
366 | 366 |
} |
367 | 367 |
} |
368 | 368 |
|
Also available in: Unified diff