Revision 7106

View differences:

trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/StatusLayerRaster.java
211 211
		//Crea la pila de filtros a partir de las propiedades recuperadas desde el XML
212 212
		if(layer.getFilterStack() != null){
213 213
			RasterFilterStackManager stackManager = new RasterFilterStackManager(layer.getFilterStack());
214
			stackManager.createStackFromStrings(this.filters, ((FLyrRaster)layer).getSource().getFiles());
214
			if(layer instanceof FLyrRaster)
215
				stackManager.createStackFromStrings(this.filters, ((FLyrRaster)layer).getSource().getFiles());
216
			else
217
				stackManager.createStackFromStrings(this.filters, new Integer(0));
215 218
		}
216 219
			
217 220
	}
trunk/extensions/extWMS/src/com/iver/cit/gvsig/fmap/layers/FLyrWMS.java
754 754
				return;
755 755
			String nameWordFile = f.getPath() + getExtensionWorldFile();
756 756
			com.iver.andami.Utilities.createTemp(nameWordFile, this.getDataWorldFile(bBox, sz));
757

  
758
			if(status!=null && firstLoad){
759
				status.applyStatus(this);
760
				firstLoad = false;
761
			}
757
			
762 758
			ViewPortData vpData = new ViewPortData(
763 759
				vp.getProjection(), new Extent(bBox), sz );
764 760
			vpData.setMat(vp.getAffineTransform());
765 761

  
766 762
			rasterProcess(g, vpData, f);
767

  
763
				
768 764
		} catch (ValidationException e) {
769 765
			if (!c.isCanceled())
770 766
				throw new DriverException(PluginServices.getText(this, "unknown_response_format"), e);
......
845 841
		rasterFile = new GdalFile(vpData.getProjection(), file.getAbsolutePath());
846 842
		raster = new PxRaster(rasterFile, null, rasterFile.getExtent());
847 843

  
844
		if(status!=null && firstLoad){
845
			status.applyStatus(this);
846
			firstLoad = false;
847
		}
848
		
848 849
		//Recuperamos la pila de filtros si ya hubiese sido cargado antes
849 850
		if(this.filterStack!=null)
850 851
			raster.filterStack = this.filterStack;

Also available in: Unified diff