Revision 290 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.buffer/src/main/java/org/gvsig/geoprocess/algorithm/buffer/BufferAlgorithm.java

View differences:

BufferAlgorithm.java
180 180
        				org.gvsig.fmap.geom.Geometry.TYPES.SURFACE,
181 181
        				getTranslation("Buffer"), RESULT, inflArea);
182 182
        	
183
            if(!dissolve) {
184
            	// Computes the operation
185
            	operation.setTaskStatus(getStatus());
186
            	operation.computesGeometryOperation(storeLayer, outFeatStore,
187
            			attrNames, selectedGeom, true);
188
            } else {
183
            
184
            if(dissolve && rings == 0) { //solo se disuelve si hay un anillo
189 185
            	FeatureStore outAuxFeatStore = null;
190 186
            	try {
191 187
            		String file = System.getProperty("java.io.tmpdir") + File.separator + System.currentTimeMillis() + ".shp";
......
207 203
            	} catch (ValidateDataParametersException e) {
208 204
            		Sextante.addErrorToLog(e);
209 205
            	}
210
            }
206
            } else { 
207
            	// Computes the operation
208
            	operation.setTaskStatus(getStatus());
209
            	operation.computesGeometryOperation(storeLayer, outFeatStore,
210
            			attrNames, selectedGeom, true);
211
            } 
211 212
        } catch (DataException e) {
212 213
            Sextante.addErrorToLog(e);
213 214
            return false;
......
281 282
        return create(file, types, attrNames, crs);
282 283
    }
283 284
    
285
	@SuppressWarnings("deprecation")
284 286
	public FeatureStore create(String sFilename,
285 287
			int[] types, String[] sFields, IProjection crs) {
286 288
		try {

Also available in: Unified diff