Revision 28980
branches/v2_0_0_prep/extensions/extEditing/src/com/iver/cit/gvsig/gui/cad/tools/SplitGeometryCADTool.java | ||
---|---|---|
207 | 207 |
Feature feature = (Feature) selected.next(); |
208 | 208 |
org.gvsig.fmap.geom.Geometry ig = feature.getDefaultGeometry(); |
209 | 209 |
Geometry jtsGeo = Converter.geometryToJts(ig); |
210 |
|
|
210 |
if (jtsGeo==null) |
|
211 |
return; |
|
211 | 212 |
Geometry splitGeo = SplitStrategy.splitOp(jtsGeo, splittingLs); |
212 | 213 |
if(splitGeo instanceof GeometryCollection |
213 | 214 |
&& ((GeometryCollection)splitGeo).getNumGeometries()>1){ |
Also available in: Unified diff