Revision 595 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
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 |
|
Also available in: Unified diff