Revision 20744 trunk/libraries/libFMap_dataFile/src/org/gvsig/data/datastores/vectorial/file/dxf/DXFFeaturesWriter.java
DXFFeaturesWriter.java | ||
---|---|---|
14 | 14 |
import org.cresques.io.DxfGroupVector; |
15 | 15 |
import org.cresques.px.dxf.DxfEntityMaker; |
16 | 16 |
import org.gvsig.data.datastores.vectorial.IFeaturesWriter; |
17 |
import org.gvsig.data.exception.DataException; |
|
17 | 18 |
import org.gvsig.data.exception.InitializeWriterException; |
18 | 19 |
import org.gvsig.data.exception.OpenException; |
19 | 20 |
import org.gvsig.data.exception.ReadException; |
... | ... | |
51 | 52 |
|
52 | 53 |
private IProjection proj = null; |
53 | 54 |
|
54 |
private DxfFile dxfFile; |
|
55 |
|
|
56 | 55 |
int handle = 40; // Revisar porqu? es 40. |
57 | 56 |
|
58 | 57 |
int k = 0; |
... | ... | |
80 | 79 |
|
81 | 80 |
public void postProcess() throws WriteException { |
82 | 81 |
// Escribimos realmente lo que hemos montado en memoria. |
83 |
dxfFile = new DxfFile(null, file.getAbsolutePath(), entityMaker); |
|
82 |
DxfFile dxfFile = new DxfFile(null, file.getAbsolutePath(), entityMaker);
|
|
84 | 83 |
dxfFile.setCadFlag(true); |
85 | 84 |
if (dxf3DFile) |
86 | 85 |
dxfFile.setDxf3DFlag(true); |
... | ... | |
89 | 88 |
} catch (IOException e) { |
90 | 89 |
throw new WriteException("DXF Writer",e); |
91 | 90 |
} |
91 |
dxfFile.close(); |
|
92 | 92 |
} |
93 | 93 |
|
94 | 94 |
public void preProcess() throws InitializeWriterException, ReadException { |
... | ... | |
861 | 861 |
// Hacer algo???? |
862 | 862 |
|
863 | 863 |
} |
864 |
|
|
865 |
/* (non-Javadoc) |
|
866 |
* @see org.gvsig.data.datastores.vectorial.IFeaturesWriter#dispose() |
|
867 |
*/ |
|
868 |
public void dispose() throws DataException { |
|
869 |
this.entityMaker = null; |
|
870 |
this.proj = null; |
|
871 |
this.featureType = null; |
|
872 |
|
|
873 |
} |
|
864 | 874 |
} |
Also available in: Unified diff