Revision 22259
trunk/libraries/libRaster/src/org/gvsig/raster/grid/Grid.java | ||
---|---|---|
109 | 109 |
else |
110 | 110 |
this.windowExtent = windowExtent; |
111 | 111 |
|
112 |
if (windowExtent.fitsIn(layerExtent)) |
|
113 |
reader = new GridNotInterpolated(bufferFactory, layerExtent, windowExtent, bands); |
|
112 |
if (this.windowExtent.fitsIn(layerExtent))
|
|
113 |
reader = new GridNotInterpolated(bufferFactory, layerExtent, this.windowExtent, bands);
|
|
114 | 114 |
else { |
115 |
reader = new GridInterpolated(bufferFactory, layerExtent, windowExtent, bands); |
|
115 |
reader = new GridInterpolated(bufferFactory, layerExtent, this.windowExtent, bands);
|
|
116 | 116 |
} |
117 | 117 |
rasterBuf = (RasterBuffer)bufferFactory.getRasterBuf(); |
118 | 118 |
writer = new GridWriter(layerExtent, dataType, rasterBuf); |
Also available in: Unified diff