Revision 12825 trunk/libraries/libRaster/src/org/gvsig/raster/dataset/GeoInfo.java

View differences:

GeoInfo.java
56 56
    public GeoInfo(IProjection p, Object param) {
57 57
        proj = p;
58 58
        if(param instanceof String)
59
        	name = ((String)param);
59
        	name = translateFileName((String)param);
60 60
        else if(param instanceof IRegistrableRasterFormat)
61 61
        	name = ((IRegistrableRasterFormat)param).getFormatID();
62 62
        else
......
64 64
        ownTransformation = new AffineTransform();
65 65
        externalTransformation = new AffineTransform();
66 66
    }
67
    
68
	/**
69
	 * Traduce el nombre del fichero por un alias asignado por el propio 
70
	 * driver. Cuando es traducido por un alias el driver intentar? abrir el alias y no 
71
	 * el fichero. Esto es util porque algunos formatos tienen la extensi?n en el fichero de
72
	 * cabecera pero lo que se abre realmente es el fichero de datos. 
73
	 * @param fileName
74
	 * @return
75
	 */
76
	public String translateFileName(String fileName) {
77
		return fileName;
78
	}
67 79

  
68 80
    public String getFName() {
69 81
        return name;

Also available in: Unified diff