Revision 595

View differences:

org.gvsig.raster.gdal/trunk/org.gvsig.raster.gdal/org.gvsig.raster.gdal.app/buildNumber.properties
1 1
#maven.buildNumber.plugin properties file
2
#Mon Feb 14 17:36:56 CET 2011
3
buildNumber=0
2
#Wed Jun 08 15:56:31 CEST 2011
3
buildNumber=3
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/util/DefaultFileUtils.java
64 64

  
65 65
		File orig = new File(pathOrig);
66 66
		if (!orig.exists() || !orig.isFile() || !orig.canRead()) {
67
			System.err.println("Error en fichero de origen");
67
			System.err.println("Error copying the file:" + pathOrig + " <Source Exists:" + orig.exists() + " Source is file:" + orig.isFile() + " Source can be read:" + orig.canRead());
68 68
			return;
69 69
		}
70 70

  
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/provider/tile/BaseTileDownloader.java
94 94
	 * @see org.gvsig.raster.cache.tile.provider.Downloader#readTile(org.gvsig.raster.cache.tile.Tile)
95 95
	 */
96 96
	public Tile readTileFromDisk(Tile tile) throws TileGettingException {
97
		if(!tile.getFile().exists())
97
		if(!tile.getFile().exists()) {
98
			tile.setCorrupt();
98 99
			return null;
100
		}
99 101
		
100 102
		BandList bandList = (BandList)tile.getDownloaderParams("BandList");
101 103
		for (int j = 0; j < bandList.getBandCount(); j++) {
org.gvsig.raster.cache/trunk/org.gvsig.raster.cache/org.gvsig.raster.cache.lib.impl/src/main/java/org/gvsig/raster/cache/tile/impl/TileImpl.java
40 40
 * @author Nacho Brodin (nachobrodin@gmail.com)
41 41
 */
42 42
public class TileImpl implements Tile {
43
	private boolean     corrupt          = false;
43 44
	private int         level            = 0;
44 45
	private int         col              = 0;
45 46
	private int         row              = 0;
......
264 265
		this.downloaderParams.put(key.toUpperCase(), value);
265 266
	}
266 267
	
268
	/*
269
	 * (non-Javadoc)
270
	 * @see org.gvsig.raster.cache.tile.Tile#setCorrupt()
271
	 */
272
	public void setCorrupt() {
273
		corrupt = true;
274
	}
275
	
267 276
	/**
268 277
	 * Actions for download a tile
269 278
	 */
270 279
	public void run() {
271 280
		try {
272 281
			downloader.downloadTile(this);
273
			if(sharedPipe != null)
282
			if(!corrupt && sharedPipe != null)
274 283
				sharedPipe.setTile(this);
284
			corrupt = false;
275 285
		} catch (TileGettingException e) {
276 286
		}
277 287
		
org.gvsig.raster.cache/trunk/org.gvsig.raster.cache/org.gvsig.raster.cache.lib.api/src/main/java/org/gvsig/raster/cache/tile/Tile.java
170 170
	 * @return
171 171
	 */
172 172
	public boolean dataIsLoaded();	
173
	
174
	/**
175
	 * Sets this flag to true if the data is corrupt
176
	 * @param corrupt
177
	 */
178
	public void setCorrupt();
179
	
173 180
}

Also available in: Unified diff