Revision 335 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.clip/src/main/java/org/gvsig/geoprocess/algorithm/clip/ClipAlgorithm.java
ClipAlgorithm.java | ||
---|---|---|
100 | 100 |
boolean selectedGeom = m_Parameters.getParameter(CHECK).getParameterValueAsBoolean(); |
101 | 101 |
|
102 | 102 |
try { |
103 |
clippingGeometry = ScalableUnionOperation.joinLayerGeometries(clip); |
|
103 |
clippingGeometry = ScalableUnionOperation.joinLayerGeometries(clip, false);
|
|
104 | 104 |
} catch (Exception e) { |
105 | 105 |
Sextante.addErrorToLog(e); |
106 | 106 |
return false; |
... | ... | |
124 | 124 |
|
125 | 125 |
ClipOperation operation = new ClipOperation(clippingGeometry, this); |
126 | 126 |
operation.setTaskStatus(getStatus()); |
127 |
operation.computesGeometryOperation(storeLayer, outFeatStore, attrNames, selectedGeom, true); |
|
127 |
operation.computesGeometryOperation(storeLayer, outFeatStore, attrNames, |
|
128 |
selectedGeom, false, true); |
|
128 | 129 |
} else { |
129 | 130 |
buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_POLYGON, |
130 | 131 |
getTranslation("Null_polygon"), RESULT_POL); |
... | ... | |
137 | 138 |
|
138 | 139 |
ClipOperation operation = new ClipOperation(clippingGeometry, this); |
139 | 140 |
operation.setTaskStatus(getStatus()); |
140 |
operation.computesGeometryOperation(storeLayer, outFeatStore, attrNames, selectedGeom, true); |
|
141 |
operation.computesGeometryOperation(storeLayer, outFeatStore, attrNames, |
|
142 |
selectedGeom, false, true); |
|
141 | 143 |
} else { |
142 | 144 |
buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_LINE, |
143 | 145 |
getTranslation("Null_line"), RESULT_LIN); |
... | ... | |
150 | 152 |
|
151 | 153 |
ClipOperation operation = new ClipOperation(clippingGeometry, this); |
152 | 154 |
operation.setTaskStatus(getStatus()); |
153 |
operation.computesGeometryOperation(storeLayer, outFeatStore, attrNames, selectedGeom, true); |
|
155 |
operation.computesGeometryOperation(storeLayer, outFeatStore, attrNames, |
|
156 |
selectedGeom, false, true); |
|
154 | 157 |
} else { |
155 | 158 |
buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_POINT, |
156 | 159 |
getTranslation("Null_point"), RESULT_POINT); |
Also available in: Unified diff