Revision 191 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
BufferAlgorithm.java | ||
---|---|---|
36 | 36 |
import org.gvsig.fmap.dal.feature.FeatureSet; |
37 | 37 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
38 | 38 |
import org.gvsig.fmap.dal.feature.FeatureType; |
39 |
import org.gvsig.geoprocess.core.gvGeoAlgorithm; |
|
40 | 39 |
import org.gvsig.geoprocess.core.gvVectorLayer; |
40 |
import org.gvsig.geoprocess.sextante.AbstractSextanteGeoProcess; |
|
41 | 41 |
|
42 | 42 |
/** |
43 | 43 |
* Geoprocess that computes a buffer area around each feature's geometry of the |
... | ... | |
47 | 47 |
* constant, or it could be a function of the value of a feature attribute.<br> |
48 | 48 |
* |
49 | 49 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
50 |
* @author gvSIG Team |
|
50 | 51 |
*/ |
51 |
public class BufferAlgorithm extends gvGeoAlgorithm { |
|
52 |
public class BufferAlgorithm extends AbstractSextanteGeoProcess { |
|
53 |
|
|
52 | 54 |
public static final String RESULT = "RESULT"; |
53 | 55 |
public static final String LAYER = "LAYER"; |
54 | 56 |
public static final String SELECTED_GEOM = "SELECTED_GEOM"; |
... | ... | |
169 | 171 |
* @param featureType |
170 | 172 |
* @return FeatureStore |
171 | 173 |
*/ |
172 |
@SuppressWarnings("unchecked") |
|
173 | 174 |
protected FeatureStore buildOutPutStore(FeatureType featureType, |
174 | 175 |
int shapeType, |
175 | 176 |
String sextanteLayerName, |
176 | 177 |
String sextanteLayerLabel, |
177 | 178 |
int infArea) { |
178 | 179 |
|
179 |
Class [] types = null; |
|
180 |
Class<?> [] types = null;
|
|
180 | 181 |
if(infArea == 2) { |
181 | 182 |
types = new Class[]{Integer.class, Double.class, Double.class}; |
182 | 183 |
attrNames = new String[]{"FID", "FROM", "TO"}; |
Also available in: Unified diff