Revision 20872
trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/classification/ClassificationGeneralProcess.java | ||
---|---|---|
151 | 151 |
bufferFactory.setReadOnly(true); |
152 | 152 |
try { |
153 | 153 |
bufferFactory.setAllDrawableBands(); |
154 |
inputGrid = new Grid(bufferFactory,bandList);
|
|
154 |
inputGrid = new Grid(bufferFactory,bandList); |
|
155 | 155 |
} catch (RasterBufferInvalidException e) { |
156 | 156 |
RasterToolsUtil.messageBoxError("buffer_incorrecto", this, e); |
157 | 157 |
} |
trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/gridmath/gui/listener/GridMathPanelListener.java | ||
---|---|---|
187 | 187 |
try{ |
188 | 188 |
gridMathPanel.getOutputExtent().setXRange(Double.parseDouble(gridMathPanel.getOptionsPanel().getJTextRangoX1().getText()),Double.parseDouble(gridMathPanel.getOptionsPanel().getJTextRangoX2().getText())); |
189 | 189 |
gridMathPanel.getOutputExtent().setYRange(Double.parseDouble(gridMathPanel.getOptionsPanel().getJTextRangoY1().getText()), Double.parseDouble(gridMathPanel.getOptionsPanel().getJTextRangoY2().getText())); |
190 |
gridMathPanel.getOutputExtent().setCellSize(Double.parseDouble(gridMathPanel.getOptionsPanel().getJTextCellSizeX().getText())); |
|
190 |
gridMathPanel.getOutputExtent().setCellSizeX(Double.parseDouble(gridMathPanel.getOptionsPanel().getJTextCellSizeX().getText())); |
|
191 |
gridMathPanel.getOutputExtent().setCellSizeY(Double.parseDouble(gridMathPanel.getOptionsPanel().getJTextCellSizeY().getText())); |
|
191 | 192 |
}catch (NumberFormatException e) { |
192 | 193 |
RasterToolsUtil.messageBoxError(PluginServices.getText(this, "invalid_number"), this); |
193 | 194 |
return; |
trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/decisiontrees/gui/listener/DecisionTreePanelListener.java | ||
---|---|---|
352 | 352 |
outputOptionsPanel.getOutputExtent().setXRange(Double.parseDouble(outputOptionsPanel.getJTextRangoX1().getText()),Double.parseDouble(outputOptionsPanel.getJTextRangoX2().getText())); |
353 | 353 |
outputOptionsPanel.getOutputExtent().setYRange(Double.parseDouble(outputOptionsPanel.getJTextRangoY1().getText()), Double.parseDouble(outputOptionsPanel.getJTextRangoY2().getText())); |
354 | 354 |
outputOptionsPanel.getOutputExtent().setCellSizeX(Double.parseDouble(outputOptionsPanel.getJTextCellSizeX().getText())); |
355 |
outputOptionsPanel.getOutputExtent().setCellSizeY(Double.parseDouble(outputOptionsPanel.getJTextCellSizeX().getText()));
|
|
355 |
outputOptionsPanel.getOutputExtent().setCellSizeY(Double.parseDouble(outputOptionsPanel.getJTextCellSizeY().getText()));
|
|
356 | 356 |
}catch (NumberFormatException e) { |
357 | 357 |
RasterToolsUtil.messageBoxError(PluginServices.getText(this, "invalid_number"), this); |
358 | 358 |
return; |
trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/principalcomponents/PCImageProcess.java | ||
---|---|---|
199 | 199 |
bandas[i]=i; |
200 | 200 |
|
201 | 201 |
// Construccion del buffer para escritura. |
202 |
rasterResult=RasterBuffer.getBuffer(IBuffer.TYPE_FLOAT, inputGrid.getLayerNX(), inputGrid.getLayerNY(), bandas.length, true);
|
|
202 |
rasterResult=RasterBuffer.getBuffer(IBuffer.TYPE_DOUBLE, inputGrid.getLayerNX(), inputGrid.getLayerNY(), bandas.length, true);
|
|
203 | 203 |
|
204 | 204 |
double valor=0; |
205 | 205 |
|
... | ... | |
253 | 253 |
} |
254 | 254 |
} |
255 | 255 |
} |
256 |
rasterResult.setElem(j, i, banda[k],(float) valor);
|
|
256 |
rasterResult.setElem(j, i, banda[k],valor); |
|
257 | 257 |
valor=0; |
258 | 258 |
} |
259 | 259 |
} |
Also available in: Unified diff