Revision 22482 trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/mosaic/process/FeatherProcessBuff.java
FeatherProcessBuff.java | ||
---|---|---|
139 | 139 |
// Calculara las lineas de borde (entre 0, 3 o 4 lineas) |
140 | 140 |
calculateBorders(); |
141 | 141 |
|
142 |
// Construccion de los grid de entrada:
|
|
142 |
// Construccion de los buffers de entrada:
|
|
143 | 143 |
IRasterDataSource dsetCopy = null; |
144 | 144 |
|
145 | 145 |
inputBuffers = new IBuffer[inputRasterLayers.length]; |
... | ... | |
152 | 152 |
bufferFactory.setDrawableBands(drawableBands); |
153 | 153 |
|
154 | 154 |
try { |
155 |
if (RasterBuffer.isBufferTooBig(new double[] { |
|
155 |
/*if (RasterBuffer.isBufferTooBig(new double[] {
|
|
156 | 156 |
resultGridExtent.getMin().getX(), |
157 | 157 |
resultGridExtent.getMin().getY(), |
158 | 158 |
resultGridExtent.getMax().getX(), |
159 | 159 |
resultGridExtent.getMax().getY() }, |
160 |
drawableBands.length)) |
|
160 |
drawableBands.length))*/
|
|
161 | 161 |
bufferFactory.setReadOnly(true); |
162 | 162 |
|
163 | 163 |
bufferFactory.setAreaOfInterest(resultGridExtent.getMin().getX(), resultGridExtent.getMax().getY(), |
... | ... | |
287 | 287 |
|
288 | 288 |
byte values[] = new byte[resultbandCount]; |
289 | 289 |
for (int g = 0; g < inputBuffers.length; g++) { |
290 |
inputBuffers[g].getElemByte(row, col, values); |
|
291 |
for (int band = 0; band < resultbandCount; band++) { |
|
292 |
resultGrid.setBandToOperate(band); |
|
293 |
if (inputBuffers[g].getNoDataValue() != values[band]) { |
|
294 |
resultGrid.setCellValue(col, row, values[band]); |
|
295 |
} else { |
|
296 |
resultGrid.setCellValue(col, row, (byte) resultGrid |
|
297 |
.getNoDataValue()); |
|
290 |
if (inputExtents[g].contains(worldCoords)){ |
|
291 |
inputBuffers[g].getElemByte(row, col, values); |
|
292 |
for (int band = 0; band < resultbandCount; band++) { |
|
293 |
resultGrid.setBandToOperate(band); |
|
294 |
if (inputBuffers[g].getNoDataValue() != values[band]) { |
|
295 |
resultGrid.setCellValue(col, row, values[band]); |
|
296 |
} else { |
|
297 |
resultGrid.setCellValue(col, row, (byte) resultGrid |
|
298 |
.getNoDataValue()); |
|
299 |
} |
|
298 | 300 |
} |
301 |
return; |
|
299 | 302 |
} |
300 |
return; |
|
301 | 303 |
} |
302 | 304 |
} |
303 | 305 |
|
Also available in: Unified diff