Revision 13925

View differences:

trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/cutting/CuttingProcess.java
23 23
import java.io.File;
24 24
import java.io.FileNotFoundException;
25 25
import java.io.IOException;
26
import java.util.ArrayList;
27 26

  
28 27
import javax.swing.JOptionPane;
29 28

  
trunk/libraries/libRaster/src/org/gvsig/raster/datastruct/Histogram.java
18 18
 */
19 19
package org.gvsig.raster.datastruct;
20 20

  
21
import org.apache.log4j.Logger;
21 22

  
22 23

  
23 24
/**
......
379 380
				int aux = 0;
380 381
				int i = beginPos;
381 382
				for (i = beginPos; aux <= stopPos; i++) {
382
					aux += histogram[iBand][i].getValue();
383
					try {
384
						aux += histogram[iBand][i].getValue();
385
					} catch (ArrayIndexOutOfBoundsException e) {
386
						Logger.getLogger(getClass().getName()).debug("Acceso a un valor de histogram (Banda: " + iBand + " Posici?n" + i + ") fuera de l?mites. (NBandas: " + histogram.length + " Valores:" + histogram[0].length + ")", e);
387
					}
383 388
				}
384 389
				middle[showBandCounter] = (histogram[iBand][i - 1].getMax() + histogram[iBand][i - 1].getMin()) / 2;
385 390

  

Also available in: Unified diff