Revision 4756
trunk/extensions/extGeoProcessing/src/com/iver/gvsig/geoprocessing/gui/GeoProcessingPanel.java | ||
---|---|---|
62 | 62 |
import com.iver.andami.ui.mdiManager.ViewInfo; |
63 | 63 |
import com.iver.cit.gvsig.fmap.DriverException; |
64 | 64 |
import com.iver.cit.gvsig.fmap.drivers.SHPLayerDefinition; |
65 |
import com.iver.cit.gvsig.fmap.edition.EditionException; |
|
65 | 66 |
import com.iver.cit.gvsig.fmap.edition.ShpSchemaManager; |
66 | 67 |
import com.iver.cit.gvsig.fmap.edition.writers.shp.ShpWriter; |
67 | 68 |
import com.iver.cit.gvsig.fmap.layers.CancelationException; |
... | ... | |
732 | 733 |
return true; |
733 | 734 |
} |
734 | 735 |
|
735 |
private ShpWriter getShpWriter(SHPLayerDefinition definition) throws IOException, DriverException {
|
|
736 |
private ShpWriter getShpWriter(SHPLayerDefinition definition) throws EditionException {
|
|
736 | 737 |
ShpWriter writer = null; |
737 | 738 |
writer = new ShpWriter(); |
738 | 739 |
writer.setFile(definition.getFile()); |
... | ... | |
917 | 918 |
String errorDescription = PluginServices.getText(this, "Error_fallo_geoproceso"); |
918 | 919 |
error(errorDescription, error); |
919 | 920 |
return false; |
920 |
} catch (IOException e) {
|
|
921 |
} catch (EditionException e) {
|
|
921 | 922 |
String error = PluginServices.getText(this, "Error_escritura_resultados"); |
922 | 923 |
String errorDescription = PluginServices.getText(this, "Error_preparar_escritura_resultados"); |
923 | 924 |
error(errorDescription, error); |
924 | 925 |
return false; |
925 |
} catch (DriverException e) { |
|
926 |
String error = PluginServices.getText(this, "Error_escritura_resultados"); |
|
927 |
String errorDescription = PluginServices.getText(this, "Error_preparar_escritura_resultados"); |
|
928 |
error(errorDescription, error); |
|
929 |
return false; |
|
930 | 926 |
} |
931 | 927 |
return true; |
932 | 928 |
|
trunk/extensions/extGeoProcessing/src/com/iver/gvsig/geoprocessing/BufferCmd.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.1 2006-03-28 16:24:39 azabala |
|
48 |
* Revision 1.2 2006-04-07 08:34:38 fjp |
|
49 |
* Lanzando una excepci?n adecuada |
|
50 |
* |
|
51 |
* Revision 1.1 2006/03/28 16:24:39 azabala |
|
49 | 52 |
* *** empty log message *** |
50 | 53 |
* |
51 | 54 |
* |
... | ... | |
53 | 56 |
package com.iver.gvsig.geoprocessing; |
54 | 57 |
|
55 | 58 |
import java.io.File; |
56 |
import java.io.IOException; |
|
57 | 59 |
import java.util.HashMap; |
58 | 60 |
|
59 | 61 |
import javax.swing.JOptionPane; |
... | ... | |
61 | 63 |
import org.cresques.cts.IProjection; |
62 | 64 |
|
63 | 65 |
import com.iver.andami.PluginServices; |
64 |
import com.iver.cit.gvsig.fmap.DriverException; |
|
65 | 66 |
import com.iver.cit.gvsig.fmap.drivers.SHPLayerDefinition; |
67 |
import com.iver.cit.gvsig.fmap.edition.EditionException; |
|
66 | 68 |
import com.iver.cit.gvsig.fmap.edition.ShpSchemaManager; |
67 | 69 |
import com.iver.cit.gvsig.fmap.edition.writers.shp.ShpWriter; |
68 | 70 |
import com.iver.cit.gvsig.fmap.layers.CancelationException; |
69 | 71 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
70 | 72 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
71 | 73 |
import com.iver.cit.gvsig.gui.View; |
72 |
import com.iver.gvsig.geoprocessing.gui.GeoProcessingPanel.AddResultLayerTask; |
|
73 | 74 |
import com.iver.gvsig.geoprocessing.gui.operationpanels.GeoProcessingBufferPanel; |
74 | 75 |
import com.iver.gvsig.geoprocessing.gui.operationpanels.GeoprocessPaneContainer; |
75 | 76 |
import com.iver.gvsig.geoprocessing.impl.buffer.BufferGeoprocess; |
... | ... | |
99 | 100 |
JOptionPane.ERROR_MESSAGE); |
100 | 101 |
} |
101 | 102 |
|
102 |
private ShpWriter getShpWriter(SHPLayerDefinition definition) throws IOException, DriverException {
|
|
103 |
private ShpWriter getShpWriter(SHPLayerDefinition definition) throws EditionException {
|
|
103 | 104 |
ShpWriter writer = null; |
104 | 105 |
writer = new ShpWriter(); |
105 | 106 |
writer.setFile(definition.getFile()); |
Also available in: Unified diff