Revision 2438 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/grid/GridInterpolated.java

View differences:

GridInterpolated.java
18 18
*******************************************************************************/ 
19 19
package org.gvsig.raster.impl.grid;
20 20

  
21
import java.awt.Rectangle;
22

  
21 23
import org.gvsig.fmap.dal.coverage.dataset.Buffer;
22 24
import org.gvsig.fmap.dal.coverage.datastruct.GridExtent;
23
import org.gvsig.fmap.dal.coverage.exception.InvalidSetViewException;
24 25
import org.gvsig.fmap.dal.coverage.exception.ProcessInterruptedException;
26
import org.gvsig.fmap.dal.coverage.exception.QueryException;
25 27
import org.gvsig.fmap.dal.coverage.exception.RasterBufferInvalidAccessException;
26 28
import org.gvsig.fmap.dal.coverage.exception.RasterBufferInvalidException;
27
import org.gvsig.fmap.dal.coverage.exception.RasterDriverException;
28 29
import org.gvsig.fmap.dal.coverage.store.RasterDataStore;
29 30
import org.gvsig.fmap.dal.coverage.store.RasterQuery;
30 31
import org.gvsig.raster.impl.DefaultRasterManager;
......
416 417
			try {
417 418
				if (y >= h || x >= w || x < 0 || y < 0)
418 419
					return getNoDataValue();
419
				query.setAreaOfInterest(x, y, 1, 1);
420
				query.setAreaOfInterest(new Rectangle(x, y, 1, 1));
420 421
				rasterBuf = dataStore.query(query);
421
			} catch (InvalidSetViewException e) {
422
			} catch (QueryException e) {
422 423
				throw new RasterBufferInvalidAccessException("");
423
			} catch (RasterDriverException e) {
424
				throw new RasterBufferInvalidException("");
425 424
			} catch (ProcessInterruptedException e) {
426 425
				// La cancelaci?n de la lectura de un pixel no es significativa
427 426
			}

Also available in: Unified diff