Revision 515

View differences:

trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dxf/DXFDriver.java
48 48
	private DxfFile dxfFeatureFile;
49 49
	
50 50
	private IObjList.vector features;
51
	private File dxfFile = null;
51 52
	
52 53
	/* (non-Javadoc)
53 54
	 * @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#open(java.io.File)
54 55
	 */
55 56
	public void open(File f) throws IOException {
56
		IProjection proj = ProjectionPool.get("ed50utm30");
57
		featureMaker = new DxfFeatureMaker(proj);
58
		dxfFeatureFile = new DxfFile(proj, f.getAbsolutePath(), featureMaker);
59
		dxfFeatureFile.load();
60
		features = (IObjList.vector)((DxfFeatureMaker)featureMaker).getObjects();
57
		dxfFile = f;
61 58
	}
62 59

  
63 60
	/* (non-Javadoc)
......
65 62
	 */
66 63
	public void close() throws IOException {
67 64
		// TODO Auto-generated method stub
68
		
69 65
	}
70 66

  
71 67
	/* (non-Javadoc)
......
135 131
	 * @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#initialize()
136 132
	 */
137 133
	public void initialize() throws IOException {
138
		// TODO Auto-generated method stub
139
		
134
		IProjection proj = ProjectionPool.get("ed50utm30");
135
		featureMaker = new DxfFeatureMaker(proj);
136
		dxfFeatureFile = new DxfFile(proj, dxfFile.getAbsolutePath(), featureMaker);
137
		dxfFeatureFile.load();
138
		features = (IObjList.vector)((DxfFeatureMaker)featureMaker).getObjects();
140 139
	}
141 140

  
142 141
	/* (non-Javadoc)
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/RasterDriver.java
4 4

  
5 5
import java.io.File;
6 6
import java.io.IOException;
7

  
8
import org.cresques.cts.IProjection;
7 9
public interface RasterDriver {
8 10
    /**
9 11
     * Obtiene el n?mero de bandas del raster 
......
58 60

  
59 61
    void close() throws IOException;
60 62

  
61
    void initialize() throws IOException;
63
    void initialize(IProjection proj) throws IOException;
62 64
}

Also available in: Unified diff