Revision 187 org.gvsig.toolbox/trunk/org.gvsig.toolbox/org.gvsig.toolbox.algorithm/src/main/java/es/unex/sextante/vectorTools/geometriesToPoints/GeometriesToPointsAlgorithm.java
GeometriesToPointsAlgorithm.java | ||
---|---|---|
6 | 6 |
import com.vividsolutions.jts.geom.Geometry; |
7 | 7 |
import com.vividsolutions.jts.geom.GeometryFactory; |
8 | 8 |
|
9 |
import org.gvsig.tools.exception.BaseException; |
|
10 |
|
|
9 | 11 |
import es.unex.sextante.additionalInfo.AdditionalInfoVectorLayer; |
10 | 12 |
import es.unex.sextante.core.GeoAlgorithm; |
11 | 13 |
import es.unex.sextante.core.Sextante; |
... | ... | |
54 | 56 |
input.addFilter(new BoundingBoxFilter(m_AnalysisExtent)); |
55 | 57 |
} |
56 | 58 |
|
59 |
int subtype; |
|
60 |
try { |
|
61 |
subtype = input.getSubType(); |
|
62 |
} catch (BaseException e) { |
|
63 |
subtype = org.gvsig.fmap.geom.Geometry.SUBTYPES.UNKNOWN; |
|
64 |
} |
|
65 |
|
|
57 | 66 |
m_Output = getNewVectorLayer(POINTS, input.getName() + "[" + Sextante.getText("Points") + "]", |
58 |
IVectorLayer.SHAPE_TYPE_POINT, input.getFieldTypes(), input.getFieldNames());
|
|
67 |
IVectorLayer.SHAPE_TYPE_POINT, input.getFieldTypes(), input.getFieldNames(), subtype);
|
|
59 | 68 |
|
69 |
|
|
60 | 70 |
int i = 0; |
61 | 71 |
final int iShapeCount = input.getShapesCount(); |
62 | 72 |
final IFeatureIterator iter = input.iterator(); |
Also available in: Unified diff