Revision 27723 branches/v2_0_0_prep/extensions/extRasterTools-SE/src/org/gvsig/rastertools/vectorizacion/process/ContourLinesProcess.java

View differences:

ContourLinesProcess.java
26 26
import org.gvsig.fmap.dal.DataManager;
27 27
import org.gvsig.fmap.dal.DataTypes;
28 28
import org.gvsig.fmap.dal.exception.DataException;
29
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
29 30
import org.gvsig.fmap.dal.feature.EditableFeature;
30 31
import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor;
31 32
import org.gvsig.fmap.dal.feature.EditableFeatureType;
......
127 128
			fsWriter.edit(FeatureStore.MODE_APPEND);
128 129
		} catch (DataException e) {
129 130
			e.printStackTrace();
131
		} catch (ValidateDataParametersException e) {
132
			// TODO Auto-generated catch block
133
			e.printStackTrace();
130 134
		}
131 135
	}
132 136

  
......
189 193

  
190 194
		percent = 0;
191 195
		for(dZ = dMin, ID = 0; dZ <= dMax; dZ += dDistance) {
192
			double increment = (25 / (double)(iNY * (((dMax - dMin) / dDistance) + 1)));
196
			double increment = (25 / (iNY * (((dMax - dMin) / dDistance) + 1)));
193 197
			for(y = 0; y < iNY - 1; y++) {
194 198
				percent += increment;
195 199
				for(x = 0; x < iNX - 1; x++) {
......
207 211
					task.manageEvent(task.getEvent());
208 212
			}
209 213

  
210
			increment = (75 / (double)(iNY * (((dMax - dMin) / dDistance) + 1)));
214
			increment = (75 / (iNY * (((dMax - dMin) / dDistance) + 1)));
211 215
			for(y = 0; y < iNY - 1; y++) {
212 216
				percent += increment;
213 217
				for(x = 0; x < iNX - 1; x++) {

Also available in: Unified diff