Revision 17113 trunk/extensions/extWCS/src/com/iver/cit/gvsig/fmap/layers/FLyrWCS.java

View differences:

FLyrWCS.java
78 78
import org.gvsig.raster.datastruct.Extent;
79 79
import org.gvsig.raster.datastruct.ViewPortData;
80 80
import org.gvsig.raster.grid.GridTransparency;
81
import org.gvsig.raster.grid.filter.FilterTypeException;
81 82
import org.gvsig.raster.grid.filter.RasterFilterList;
82 83
import org.gvsig.raster.grid.filter.RasterFilterListManager;
83 84
import org.gvsig.raster.grid.filter.enhancement.LinearEnhancementFilter;
......
486 487

  
487 488
			IStatusRaster status = super.getStatus();
488 489
			if(status!=null && firstLoad){
489
				status.applyStatus(this);
490
				try {
491
					status.applyStatus(this);
492
				} catch (NotSupportedExtensionException e) {
493
					throw new ReadDriverException("", e);
494
				} catch (RasterDriverException e) {
495
					throw new ReadDriverException("", e);
496
				} catch (FilterTypeException e) {
497
					throw new ReadDriverException("", e);
498
				}
490 499
				firstLoad = false;
491 500
			}
492 501
			ViewPortData vpData = new ViewPortData(
......
496 505
			String filePath = f.getAbsolutePath();
497 506
			visualStatus.fileNames[tile] = filePath;
498 507

  
499
			rasterProcess(filePath, g, vp, scale, cancel);
508
			try {
509
				rasterProcess(filePath, g, vp, scale, cancel);
510
			} catch (FilterTypeException e) {
511
			}
500 512

  
501 513
//			this.getRender().draw(g, vpData);
502 514
//			rasterProcess(g, vpData, f);
......
607 619
	 * @throws ReadDriverException
608 620
	 * @throws LoadLayerException
609 621
	 */
610
	private void rasterProcess(String filePath, Graphics2D g, ViewPort vp, double scale, Cancellable cancel) throws ReadDriverException, LoadLayerException {
622
	private void rasterProcess(String filePath, Graphics2D g, ViewPort vp, double scale, Cancellable cancel) throws ReadDriverException, LoadLayerException, FilterTypeException {
611 623
		//Cerramos el dataset asociado a la capa si est? abierto.
612 624
		if(layerRaster != null) {
613 625
			layerRaster.setRemoveRasterFlag(true);
......
877 889
					exc.printStackTrace();
878 890
				} catch(InvocationTargetException exc) {
879 891
					exc.printStackTrace();
892
				} catch (FilterTypeException exc) {
893
					exc.printStackTrace();
880 894
				}
881 895
			}
882 896
		}

Also available in: Unified diff