Revision 335 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.union/src/main/java/org/gvsig/geoprocess/algorithm/union/UnionAlgorithm.java

View differences:

UnionAlgorithm.java
243 243
	private void computesIntersection(FeatureStore storeLayer1, FeatureStore storeLayer2, FeatureStore featStoreOut, boolean selectedGeom, boolean close) throws DataException, WrongParameterTypeException, WrongParameterIDException, NullParameterValueException {
244 244
		GeometryOperation intersection = new IntersectionOperation(storeLayer2, this);
245 245
        intersection.setTaskStatus(getStatus());
246
		intersection.computesGeometryOperation(storeLayer1, featStoreOut, attrNames, selectedGeom, close);
246
		intersection.computesGeometryOperation(storeLayer1, featStoreOut, attrNames, 
247
				selectedGeom, false, close);
247 248
	}
248 249
	
249 250
	/**
......
259 260
	 * @throws NullParameterValueException
260 261
	 */
261 262
	private void computesDifference(FeatureStore storeLayer1, FeatureStore storeLayer2, FeatureStore featStoreOut, boolean selectedGeom, boolean close) throws DataException, WrongParameterTypeException, WrongParameterIDException, NullParameterValueException {		
262
		Geometry unionGeom1 = ScalableUnionOperation.joinLayerGeometries(storeLayer2);
263
		Geometry unionGeom1 = ScalableUnionOperation.joinLayerGeometries(storeLayer2, false);
263 264
		GeometryOperation differenceL1_L2 = new DifferenceOperation(unionGeom1, this);
264 265
        differenceL1_L2.setTaskStatus(getStatus());
265
		differenceL1_L2.computesGeometryOperation(storeLayer1, featStoreOut, attrNames, selectedGeom, close);
266
		differenceL1_L2.computesGeometryOperation(storeLayer1, featStoreOut, attrNames, 
267
				selectedGeom, false, close);
266 268
	}
267 269
	
268 270
}

Also available in: Unified diff