Revision 5628 trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/dissolve/DissolveGeoprocessController.java
DissolveGeoprocessController.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.2 2006-05-25 08:21:48 jmvivo |
|
48 |
* Revision 1.3 2006-06-02 18:21:28 azabala |
|
49 |
* *** empty log message *** |
|
50 |
* |
|
51 |
* Revision 1.2 2006/05/25 08:21:48 jmvivo |
|
49 | 52 |
* A?adida peticion de confirmacion para sobreescribir el fichero de salida, si este ya existiera |
50 | 53 |
* |
51 | 54 |
* Revision 1.1 2006/05/24 21:11:14 azabala |
... | ... | |
160 | 163 |
task2.setLayers(layers); |
161 | 164 |
MonitorableDecoratorMainFirst globalTask = new MonitorableDecoratorMainFirst(task1, |
162 | 165 |
task2); |
163 |
if(inputLayer.getISpatialIndex() == null){ |
|
164 |
final IMonitorableTask sptIdxTask = |
|
165 |
geoProcessingDissolvePanel.askForSpatialIndexCreation(inputLayer); |
|
166 |
if(sptIdxTask != null){ |
|
167 |
PluginServices.backgroundExecution( |
|
168 |
new Runnable(){ |
|
169 |
public void run() { |
|
170 |
PluginServices. |
|
171 |
cancelableBackgroundExecution(sptIdxTask); |
|
172 |
}} |
|
173 |
); |
|
174 |
} |
|
175 |
}//if |
|
166 |
//if dissolving is spatial based, checks spatial |
|
167 |
//index existency |
|
168 |
if(geoProcessingDissolvePanel.onlyAdjacentSelected()){ |
|
169 |
if(inputLayer.getISpatialIndex() == null){ |
|
170 |
final IMonitorableTask sptIdxTask = |
|
171 |
geoProcessingDissolvePanel.askForSpatialIndexCreation(inputLayer); |
|
172 |
if(sptIdxTask != null){ |
|
173 |
PluginServices.backgroundExecution( |
|
174 |
new Runnable(){ |
|
175 |
public void run() { |
|
176 |
PluginServices. |
|
177 |
cancelableBackgroundExecution(sptIdxTask); |
|
178 |
}} |
|
179 |
); |
|
180 |
} |
|
181 |
}//if |
|
182 |
} |
|
176 | 183 |
if (globalTask.preprocess()) |
177 | 184 |
PluginServices.cancelableBackgroundExecution(globalTask); |
178 | 185 |
} catch (GeoprocessException e) { |
Also available in: Unified diff