Revision 11322
trunk/libraries/libRaster/src/org/gvsig/raster/dataset/io/EcwDriver.java | ||
---|---|---|
592 | 592 |
|
593 | 593 |
byte[][][] buf = new byte[file.numBands][blockHeight][file.width]; |
594 | 594 |
Extent e = new Extent(begin.getX(), begin.getY(), end.getX(), end.getY()); |
595 |
e = RasterUtilities.calculateAdjustedView(getExtent(), e); |
|
595 | 596 |
|
596 | 597 |
try { |
597 | 598 |
int[] value = new int[file.width]; |
598 |
file.setView(file.numBands, readBandsFromECW, e.minX(), e.maxY(), e.maxX(), e.minY(), file.width, 1);
|
|
599 |
file.setView(file.numBands, readBandsFromECW, e.minX(), e.maxY(), e.maxX(), e.minY(), file.width, blockHeight);
|
|
599 | 600 |
|
600 | 601 |
if(file.numBands <= 3) { |
601 | 602 |
for (int row = 0; row < blockHeight; row++) { |
Also available in: Unified diff