Revision 4188

View differences:

branches/v05/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrRaster.java
365 365
		}
366 366
	
367 367
		xml.putProperty("driverName", getSource().getDriver().getName());
368
		//xml.putProperty("raster.opacityLevel", ""+getTransparency());
369
		if(status!=null)
370
			status.getXMLEntity(xml, true, this);
371
	
368
		
369
		//Si no hay ning?n Status aplicamos el StatusLayerRaster que se usa por defecto
370
		if(status == null)
371
			status = new StatusLayerRaster();
372
		
373
		status.getXMLEntity(xml, true, this);
374
		
372 375
		return xml;
373 376
	}
374 377
	
......
401 404
			setSource(adapter);
402 405
			// Para notificar al adapter-driver cual es la proyecci?n.
403 406
			setProjection(super.getProjection());
404
			String claseStr = null;
407
			
408
			//Inicializamos la clase a la que se usa por defecto para
409
			//compatibilidad con proyectos antiguos
410
			String claseStr = StatusLayerRaster.defaultClass;
405 411
			if (xml.contains("raster.class")) {
406 412
				claseStr = xml.getStringProperty("raster.class");
407 413
			}
branches/v05/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/StatusLayerRaster.java
81 81
	 * @see com.iver.cit.gvsig.fmap.layers.StatusRasterInterface#setXMLEntity(com.iver.utiles.XMLEntity)
82 82
	 */
83 83
	public void setXMLEntity(XMLEntity xml, RasterOperations layer)throws XMLException {
84
		
85
		//Recuperamos las propiedades de los filtros
86
		for(int i=0;i<xml.getPropertyCount();i++){
87
			if(xml.getPropertyName(i).startsWith("filter.")){
88
				if(xml.getPropertyName(i).startsWith("filter.pansharpening"))
89
					isPansharpInStack = true;
90
				filters.add(xml.getPropertyName(i)+"="+xml.getPropertyValue(i));
91
			}
92
		}
93
		
84 94
		if (xml.contains("raster.opacityLevel")) {
85 95
			transparency = xml.getIntProperty("raster.opacityLevel");
86 96
		}
......
101 111
				cont++;
102 112
			}else 
103 113
				break;
104
		}
105
		
106
		//Recuperamos las propiedades de los filtros
107
		for(int i=0;i<xml.getPropertyCount();i++){
108
			if(xml.getPropertyName(i).startsWith("filter."))
109
				if(xml.getPropertyName(i).startsWith("filter.pansharpening"))
110
					isPansharpInStack = true;
111
				filters.add(xml.getPropertyName(i)+"="+xml.getPropertyValue(i));
112
		}
113
		
114
		}		
114 115
	}
115 116
	
116 117

  

Also available in: Unified diff