Revision 13328 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/saveraster/operations/RasterizerLayer.java
RasterizerLayer.java | ||
---|---|---|
147 | 147 |
for (int i = 0; i < flayers.getLayersCount(); i++) { |
148 | 148 |
if (flayers.getLayer(i) instanceof FLyrRasterSE) { |
149 | 149 |
FLyrRasterSE raster = (FLyrRasterSE) flayers.getLayer(i); |
150 |
if (raster.getDatasource().getDataType() == IBuffer.TYPE_SHORT || raster.getDatasource().getDataType() == IBuffer.TYPE_USHORT) {
|
|
150 |
if (raster.getBufferFactory().getDataType() == IBuffer.TYPE_SHORT || raster.getBufferFactory().getDataType() == IBuffer.TYPE_USHORT) {
|
|
151 | 151 |
//Statistic stats = raster.getSource().getFilterStack().getStats(); |
152 | 152 |
//stats.history.add(stats.new History(raster.getName(), stats.minBandValue, stats.maxBandValue, stats.secondMinBandValue, stats.secondMaxBandValue)); |
153 | 153 |
} |
... | ... | |
172 | 172 |
for (int i = 0; i < flayers.getLayersCount(); i++) { |
173 | 173 |
if (flayers.getLayer(i) instanceof FLyrRasterSE) { |
174 | 174 |
FLyrRasterSE raster = (FLyrRasterSE) flayers.getLayer(i); |
175 |
if (raster.getDatasource().getDataType() == IBuffer.TYPE_SHORT || raster.getDatasource().getDataType() == IBuffer.TYPE_USHORT) {
|
|
175 |
if (raster.getBufferFactory().getDataType() == IBuffer.TYPE_SHORT || raster.getBufferFactory().getDataType() == IBuffer.TYPE_USHORT) {
|
|
176 | 176 |
//raster.getDatasource().getFilterStack().getStats().history.clear(); |
177 | 177 |
//Statistic stats = raster.getSource().getFilterStack().getStats(); |
178 | 178 |
} |
Also available in: Unified diff