Revision 1312 org.gvsig.raster.tools/trunk/org.gvsig.raster.tools/org.gvsig.raster.tools.algorithm/org.gvsig.raster.tools.algorithm.maskthreshold/src/main/java/org/gvsig/raster/tools/algorithm/maskthreshold/MaskthresholdProcess.java
MaskthresholdProcess.java | ||
---|---|---|
226 | 226 |
public void process() throws ProcessInterruptedException, ProcessException { |
227 | 227 |
long t1 = new java.util.Date().getTime(); |
228 | 228 |
insertLineLog(Messages.getText("maskthreshold")); |
229 |
int result = 1; |
|
230 | 229 |
|
231 | 230 |
try { |
232 | 231 |
if(inputStore != null) |
... | ... | |
268 | 267 |
exportRaster(filename, resultBuffer, inputStore.getCellSize(), |
269 | 268 |
inputStore.getExtent().getULX(), inputStore.getExtent().getULY()); |
270 | 269 |
|
271 |
if(result != 0) { |
|
272 |
if (incrementableTask != null) { |
|
273 |
incrementableTask.processFinalize(); |
|
274 |
setProgressActive(false); |
|
275 |
} |
|
276 |
messageBoxError("transformation_not_possible", null); |
|
277 |
return; |
|
278 |
} |
|
279 |
|
|
280 | 270 |
long t2 = new java.util.Date().getTime(); |
281 | 271 |
milis = t2 - t1; |
282 | 272 |
|
... | ... | |
295 | 285 |
if (incrementableTask != null) |
296 | 286 |
incrementableTask.processFinalize(); |
297 | 287 |
messageBoxError("error_reprojecting", this, e); |
288 |
} finally { |
|
289 |
if (incrementableTask != null) { |
|
290 |
incrementableTask.processFinalize(); |
|
291 |
setProgressActive(false); |
|
292 |
} |
|
298 | 293 |
} |
299 | 294 |
} |
300 | 295 |
|
... | ... | |
391 | 386 |
opSatisfy.band = opNotSatisfy.band = band3; |
392 | 387 |
|
393 | 388 |
for (int row = 0; row < result.getHeight(); row++) { |
394 |
colOperation = (int)pxBbox[1].getX(); |
|
395 |
colSource = (int)pxBbox[0].getX(); |
|
389 |
if(pxBbox.length > 1) { |
|
390 |
colOperation = (int)pxBbox[1].getX(); |
|
391 |
colSource = (int)pxBbox[0].getX(); |
|
392 |
} |
|
393 |
colSource = 0; |
|
396 | 394 |
for (int col = 0; col < result.getWidth(); col++) { |
397 | 395 |
double op1 = getValue(inputBuffer, rowSource, colSource); |
398 | 396 |
double op2 = getValue(operationBuffer, rowOperation, colOperation); |
Also available in: Unified diff