Revision 271 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.xyshift/src/main/java/org/gvsig/geoprocess/algorithm/xyshift/XYShiftAlgorithm.java

View differences:

XYShiftAlgorithm.java
23 23
 */
24 24
package org.gvsig.geoprocess.algorithm.xyshift;
25 25

  
26
import es.unex.sextante.additionalInfo.AdditionalInfoNumericalValue;
27
import es.unex.sextante.core.Sextante;
28
import es.unex.sextante.dataObjects.IVectorLayer;
29
import es.unex.sextante.exceptions.GeoAlgorithmExecutionException;
30
import es.unex.sextante.exceptions.RepeatedParameterNameException;
31
import es.unex.sextante.outputs.OutputVectorLayer;
32

  
33 26
import org.gvsig.fmap.dal.exception.DataException;
34 27
import org.gvsig.fmap.dal.feature.FeatureSet;
35 28
import org.gvsig.fmap.dal.feature.FeatureStore;
......
38 31
import org.gvsig.geoprocess.lib.sextante.AbstractSextanteGeoProcess;
39 32
import org.gvsig.geoprocess.lib.sextante.dataObjects.FlyrVectIVectorLayer;
40 33

  
34
import es.unex.sextante.additionalInfo.AdditionalInfoNumericalValue;
35
import es.unex.sextante.core.Sextante;
36
import es.unex.sextante.dataObjects.IVectorLayer;
37
import es.unex.sextante.exceptions.GeoAlgorithmExecutionException;
38
import es.unex.sextante.exceptions.RepeatedParameterNameException;
39
import es.unex.sextante.outputs.OutputVectorLayer;
40

  
41 41
/**
42 42
 * XYShift algorithm
43 43
 * @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a>
......
82 82
	 * @see es.unex.sextante.core.GeoAlgorithm#processAlgorithm()
83 83
	 */
84 84
	public boolean processAlgorithm() throws GeoAlgorithmExecutionException {
85
		if(existsOutPutFile(XYShiftAlgorithm.RESULT, 0)) {
86
    		throw new GeoAlgorithmExecutionException(getTranslation("file_exists"));
87
    	}
85 88
		IVectorLayer layer = m_Parameters.getParameterValueAsVectorLayer(LAYER);
86 89
		boolean selectedGeom = m_Parameters.getParameter(CHECK).getParameterValueAsBoolean();
87 90
		double x = m_Parameters.getParameterValueAsDouble(X);

Also available in: Unified diff