Revision 515 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dxf/DXFDriver.java
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) |
Also available in: Unified diff