Revision 225 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.buffer/src/main/java/org/gvsig/geoprocess/algorithm/buffer/BufferAlgorithm.java

View differences:

BufferAlgorithm.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
 * Geoprocess that computes a buffer area around each feature's geometry of the
......
119 119
		}
120 120
		
121 121
		FeatureStore storeLayer = null;
122
		if(layer instanceof gvVectorLayer)
123
			storeLayer = ((gvVectorLayer)layer).getFeatureStore();
122
		if(layer instanceof FlyrVectIVectorLayer)
123
			storeLayer = ((FlyrVectIVectorLayer)layer).getFeatureStore();
124 124
		else
125 125
			return false;
126 126
		
......
191 191
			IVectorLayer output = getNewVectorLayer(sextanteLayerLabel,
192 192
													sextanteLayerName,
193 193
													shapeType, types, attrNames);
194
			return ((gvVectorLayer)output).getFeatureStore();
194
			return ((FlyrVectIVectorLayer)output).getFeatureStore();
195 195
		} catch (UnsupportedOutputChannelException e) {
196 196
			Sextante.addErrorToLog(e);
197 197
        } catch (GeoAlgorithmExecutionException e) {

Also available in: Unified diff