Revision 172 org.gvsig.sextante/trunk/org.gvsig.sextante.app/org.gvsig.sextante.app.algorithm/org.gvsig.sextante.app.algorithm.convexhull/src/main/java/org/gvsig/sextante/app/algorithm/convexhull/ConvexHullAlgorithm.java
ConvexHullAlgorithm.java | ||
---|---|---|
23 | 23 |
import java.util.Iterator; |
24 | 24 |
import java.util.List; |
25 | 25 |
|
26 |
import org.gvsig.fmap.dal.DataSet; |
|
26 |
import es.unex.sextante.core.GeoAlgorithm; |
|
27 |
import es.unex.sextante.core.Sextante; |
|
28 |
import es.unex.sextante.dataObjects.IVectorLayer; |
|
29 |
import es.unex.sextante.exceptions.GeoAlgorithmExecutionException; |
|
30 |
import es.unex.sextante.exceptions.RepeatedParameterNameException; |
|
31 |
import es.unex.sextante.outputs.OutputVectorLayer; |
|
32 |
|
|
27 | 33 |
import org.gvsig.fmap.dal.exception.DataException; |
28 | 34 |
import org.gvsig.fmap.dal.feature.Feature; |
35 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
|
29 | 36 |
import org.gvsig.fmap.dal.feature.FeatureSet; |
30 | 37 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
31 |
import org.gvsig.fmap.dal.feature.impl.DefaultFeatureSelection; |
|
32 | 38 |
import org.gvsig.fmap.geom.Geometry; |
39 |
import org.gvsig.geoprocess.core.gvVectorLayer; |
|
33 | 40 |
import org.gvsig.sextante.app.algorithm.base.util.GeometryUtil; |
34 |
import org.gvsig.sextante.app.extension.core.gvVectorLayer; |
|
35 | 41 |
import org.gvsig.tools.dispose.DisposableIterator; |
36 | 42 |
|
37 |
import es.unex.sextante.core.GeoAlgorithm; |
|
38 |
import es.unex.sextante.core.Sextante; |
|
39 |
import es.unex.sextante.dataObjects.IVectorLayer; |
|
40 |
import es.unex.sextante.exceptions.GeoAlgorithmExecutionException; |
|
41 |
import es.unex.sextante.exceptions.RepeatedParameterNameException; |
|
42 |
import es.unex.sextante.outputs.OutputVectorLayer; |
|
43 |
|
|
44 | 43 |
/** |
45 | 44 |
* Convex Hull Algorithm |
46 | 45 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
... | ... | |
53 | 52 |
public void defineCharacteristics(){ |
54 | 53 |
setName(Sextante.getText("Convex Hull")); |
55 | 54 |
setGroup(Sextante.getText("gvSIG_Algorithms")); |
56 |
setGeneratesUserDefinedRasterOutput(false);
|
|
55 |
// setGeneratesUserDefinedRasterOutput(false);
|
|
57 | 56 |
try { |
58 | 57 |
m_Parameters.addInputVectorLayer(LAYER, |
59 | 58 |
Sextante.getText("Input_layer"), |
... | ... | |
92 | 91 |
|
93 | 92 |
DisposableIterator it = null; |
94 | 93 |
if(selectedGeom) { |
95 |
DataSet ds = store.getSelection();
|
|
96 |
it = ((DefaultFeatureSelection)ds).iterator();
|
|
94 |
FeatureSelection ds = store.getFeatureSelection();
|
|
95 |
it = ds.iterator();
|
|
97 | 96 |
//if(!it.hasNext())Mensaje de no hay geometrias seleccionadas |
98 | 97 |
} else |
99 | 98 |
it = features.iterator(); |
Also available in: Unified diff