Revision 33329 trunk/extensions/extRasterTools-SE/src/org/gvsig/fmap/raster/layers/FLyrRasterSE.java

View differences:

FLyrRasterSE.java
973 973
	 */
974 974
	public XMLEntity getXMLEntityWithoutChecks() throws XMLException {
975 975
		XMLEntity xml = super.getXMLEntity();
976
		if(getFile() != null)
976
		if(getFile() != null){
977
			xml.putProperty("absolutePath", getFile().getAbsolutePath());
977 978
			xml.putProperty("file", pathGenerator.getPath(getFile().getAbsolutePath()));
979
		}
978 980
		xml.putProperty("driverName", "gvSIG Raster Driver");
979 981

  
980 982
		// Si no hay ning?n Status aplicamos el StatusLayerRaster que se usa por defecto
......
1004 1006
		loadingFromProject = true;
1005 1007
		
1006 1008
		try {
1007
			params = new File(pathGenerator.getAbsolutePath(xml.getStringProperty("file")));
1008

  
1009
			String path=pathGenerator.getAbsolutePath((String)xml.getStringProperty("file"));
1010
			if (path!=null){
1011
				params = new File(pathGenerator.getAbsolutePath(xml.getStringProperty("file")));
1012
			}else{
1013
				params = new File(xml.getStringProperty("absolutePath"));
1014
			}
1015
			
1009 1016
			if(params != null && getName() != null && getName().compareTo("") != 0) {
1010 1017
				try {
1011 1018
					enableAwake();

Also available in: Unified diff