Revision 1419 org.gvsig.raster.lizardtech/trunk/org.gvsig.raster.lizardtech/org.gvsig.raster.lizardtech.io/src/main/java/org/gvsig/raster/lizardtech/io/LizardTechProvider.java
LizardTechProvider.java | ||
---|---|---|
313 | 313 |
*/ |
314 | 314 |
public Buffer getWindow(Extent ex, BandList bandList, Buffer rasterBuf, TaskStatus status) |
315 | 315 |
throws ProcessInterruptedException, RasterDriverException { |
316 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().toString());
|
|
316 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().getId() + "");
|
|
317 | 317 |
|
318 | 318 |
// TODO: FUNCIONALIDAD: Hacer caso del bandList |
319 | 319 |
int width = rasterBuf.getWidth(); |
... | ... | |
346 | 346 |
*/ |
347 | 347 |
public Buffer getWindow(double ulx, double uly, double w, double h, |
348 | 348 |
BandList bandList, Buffer rasterBuf, boolean adjustToExtent, TaskStatus status) throws ProcessInterruptedException, RasterDriverException { |
349 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().toString());
|
|
349 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().getId() + "");
|
|
350 | 350 |
|
351 | 351 |
// El incremento o decremento de las X e Y depende de los signos de rotaci?n |
352 | 352 |
// y escala en la matriz de transformaci?n. Por esto |
... | ... | |
391 | 391 |
*/ |
392 | 392 |
public Buffer getWindow(Extent extent, int bufWidth, int bufHeight, |
393 | 393 |
BandList bandList, Buffer rasterBuf, boolean adjustToExtent, TaskStatus status) throws ProcessInterruptedException, RasterDriverException { |
394 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().toString());
|
|
394 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().getId() + "");
|
|
395 | 395 |
|
396 | 396 |
// Impedimos que los valores de ancho y alto de la im?gen sean menores que 1 |
397 | 397 |
if (bufWidth <= 0) |
... | ... | |
470 | 470 |
// Buffer rasterBuf, |
471 | 471 |
// int[] pRGBArray, |
472 | 472 |
// int bufWidth) throws ProcessInterruptedException { |
473 |
// RasterTask task = RasterTaskQueue.get(Thread.currentThread().toString());
|
|
473 |
// RasterTask task = RasterTaskQueue.get(Thread.currentThread().getId() + "");
|
|
474 | 474 |
// int[] drawableBandsR = bandList.getBufferBandToDraw(getURIOfFirstProvider(), 0); |
475 | 475 |
// int[] drawableBandsG = bandList.getBufferBandToDraw(getURIOfFirstProvider(), 1); |
476 | 476 |
// int[] drawableBandsB = bandList.getBufferBandToDraw(getURIOfFirstProvider(), 2); |
... | ... | |
508 | 508 |
// } |
509 | 509 |
|
510 | 510 |
private void loadBuffer(int h, int w, BandList bandList, Buffer rasterBuf, int[] pRGBArray) throws ProcessInterruptedException { |
511 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().toString());
|
|
511 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().getId() + "");
|
|
512 | 512 |
int[] drawableBandsR = bandList.getBufferBandToDraw(getURIOfFirstProvider(), 0); |
513 | 513 |
int[] drawableBandsG = bandList.getBufferBandToDraw(getURIOfFirstProvider(), 1); |
514 | 514 |
int[] drawableBandsB = bandList.getBufferBandToDraw(getURIOfFirstProvider(), 2); |
... | ... | |
560 | 560 |
* @see org.gvsig.raster.impl.provider.RasterProvider#readBlock(int, int, double) |
561 | 561 |
*/ |
562 | 562 |
public Object readBlock(int pos, int blockHeight, double scale) throws InvalidSetViewException, FileNotOpenException, RasterDriverException, ProcessInterruptedException { |
563 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().toString());
|
|
563 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().getId() + "");
|
|
564 | 564 |
|
565 | 565 |
if (pos < 0) |
566 | 566 |
throw new InvalidSetViewException("Request out of grid"); |
... | ... | |
607 | 607 |
*/ |
608 | 608 |
public Object readCompleteLine(int line, int band) |
609 | 609 |
throws InvalidSetViewException, FileNotOpenException, RasterDriverException { |
610 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().toString());
|
|
610 |
RasterTask task = RasterTaskQueue.get(Thread.currentThread().getId() + "");
|
|
611 | 611 |
|
612 | 612 |
if (line > this.getHeight() || band > this.getBandCount()) |
613 | 613 |
throw new InvalidSetViewException("Request out of grid"); |
Also available in: Unified diff