Revision 225 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.dissolve/src/main/java/org/gvsig/geoprocess/algorithm/dissolve/DissolveAlgorithm.java
DissolveAlgorithm.java | ||
---|---|---|
37 | 37 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
38 | 38 |
import org.gvsig.fmap.dal.feature.FeatureType; |
39 | 39 |
import org.gvsig.geoprocess.lib.sextante.AbstractSextanteGeoProcess; |
40 |
import org.gvsig.geoprocess.lib.sextante.dataObjects.gvVectorLayer;
|
|
40 |
import org.gvsig.geoprocess.lib.sextante.dataObjects.FlyrVectIVectorLayer;
|
|
41 | 41 |
|
42 | 42 |
/** |
43 | 43 |
* Dissolve algorithm |
... | ... | |
102 | 102 |
loadSummary(functionList); |
103 | 103 |
|
104 | 104 |
FeatureStore storeLayer = null; |
105 |
if(layer instanceof gvVectorLayer)
|
|
106 |
storeLayer = ((gvVectorLayer)layer).getFeatureStore();
|
|
105 |
if(layer instanceof FlyrVectIVectorLayer)
|
|
106 |
storeLayer = ((FlyrVectIVectorLayer)layer).getFeatureStore();
|
|
107 | 107 |
else |
108 | 108 |
return false; |
109 | 109 |
|
... | ... | |
202 | 202 |
IVectorLayer output = getNewVectorLayer(sextanteLayerLabel, |
203 | 203 |
sextanteLayerName, |
204 | 204 |
shapeType, types, attrNames); |
205 |
return ((gvVectorLayer)output).getFeatureStore();
|
|
205 |
return ((FlyrVectIVectorLayer)output).getFeatureStore();
|
|
206 | 206 |
} catch (UnsupportedOutputChannelException e) { |
207 | 207 |
Sextante.addErrorToLog(e); |
208 | 208 |
} catch (GeoAlgorithmExecutionException e) { |
Also available in: Unified diff