Revision 4740 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/writers/shp/ShpWriter.java
ShpWriter.java | ||
---|---|---|
137 | 137 |
* Useful to create a layer from scratch |
138 | 138 |
* Call setFile before using this function |
139 | 139 |
* @param lyrDef |
140 |
* @throws IOException |
|
141 |
* @throws DriverException |
|
140 |
* @throws EditionException |
|
142 | 141 |
*/ |
143 |
public void initialize(LayerDefinition lyrDef) throws IOException, DriverException
|
|
142 |
public void initialize(LayerDefinition lyrDef) throws EditionException
|
|
144 | 143 |
{ |
145 | 144 |
myHeader = DbaseFileHeaderNIO.createDbaseHeader(lyrDef.getFieldsDesc()); |
146 |
initialize(shpFile, lyrDef.getShapeType()); |
|
145 |
try { |
|
146 |
initialize(shpFile, lyrDef.getShapeType()); |
|
147 |
} catch (IOException e) { |
|
148 |
e.printStackTrace(); |
|
149 |
throw new EditionException(e); |
|
150 |
} |
|
147 | 151 |
} |
148 | 152 |
|
149 | 153 |
|
Also available in: Unified diff