Revision 22204
trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/principalcomponents/PCStatisticsProcess.java | ||
---|---|---|
41 | 41 |
package org.gvsig.remotesensing.principalcomponents; |
42 | 42 |
|
43 | 43 |
import org.gvsig.fmap.raster.layers.FLyrRasterSE; |
44 |
import org.gvsig.raster.IProcessActions; |
|
44 | 45 |
import org.gvsig.raster.RasterProcess; |
45 | 46 |
import org.gvsig.raster.buffer.BufferFactory; |
46 | 47 |
import org.gvsig.raster.buffer.RasterBuffer; |
... | ... | |
67 | 68 |
* @version 19/10/2007 |
68 | 69 |
*/ |
69 | 70 |
|
70 |
public class PCStatisticsProcess extends RasterProcess{ |
|
71 |
public class PCStatisticsProcess extends RasterProcess implements IProcessActions{
|
|
71 | 72 |
|
72 | 73 |
private Grid inputGrid = null; |
73 | 74 |
private double autovalors[] = null; |
... | ... | |
467 | 468 |
public View getView(){ |
468 | 469 |
return view; |
469 | 470 |
} |
471 |
|
|
472 |
|
|
473 |
public void interrupted() { |
|
474 |
// TODO Auto-generated method stub |
|
475 |
|
|
476 |
} |
|
477 |
|
|
478 |
|
|
479 |
public void end(Object param) { |
|
480 |
System.out.print("Completado estadisticas..."); |
|
481 |
|
|
482 |
} |
|
470 | 483 |
} |
trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/principalcomponents/PCImageProcess.java | ||
---|---|---|
341 | 341 |
} // Fin caso RasterBuffer TypeDouble |
342 | 342 |
|
343 | 343 |
// escritutra a fichero |
344 |
if(view!=null) |
|
344 | 345 |
writeToFile(); |
345 | 346 |
} |
346 | 347 |
|
... | ... | |
363 | 364 |
grw.dataWrite(); |
364 | 365 |
grw.setWkt(raster.getWktProjection()); |
365 | 366 |
grw.writeClose(); |
366 |
rasterResult.free();
|
|
367 |
String viewName = PluginServices.getMDIManager().getWindowInfo(view).getTitle(); |
|
368 |
RasterToolsUtil.loadLayer(viewName, layerName, null); |
|
369 |
|
|
367 |
if(view!=null){
|
|
368 |
String viewName = PluginServices.getMDIManager().getWindowInfo(view).getTitle();
|
|
369 |
RasterToolsUtil.loadLayer(viewName, layerName, null);
|
|
370 |
} |
|
370 | 371 |
} catch (NotSupportedExtensionException e) { |
371 | 372 |
RasterToolsUtil.messageBoxError(PluginServices.getText(this, "error_writer_notsupportedextension"), this, e); |
372 | 373 |
} catch (IOException e) { |
Also available in: Unified diff