Revision 8788 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.legend/org.gvsig.raster.lib.legend.impl/src/main/java/org/gvsig/raster/lib/legend/impl/DefaultRasterLegend.java
DefaultRasterLegend.java | ||
---|---|---|
200 | 200 |
|
201 | 201 |
interpolated = |
202 | 202 |
clip.createInterpolated((int) Math.floor(heightPixel), (int) Math.floor(widthPixel), |
203 |
Buffer.INTERPOLATION_NearestNeighbour, taskStatus);
|
|
203 |
Buffer.INTERPOLATION_Bilinear, taskStatus);
|
|
204 | 204 |
// Convert interpolated clipped buffer |
205 | 205 |
converted = interpolated.convert(invertedCoordTrans, taskStatus); |
206 | 206 |
|
... | ... | |
209 | 209 |
|
210 | 210 |
interpolated2 = |
211 | 211 |
converted.createInterpolated((int) Math.floor(heightPixel), (int) Math.floor(widthPixel), |
212 |
Buffer.INTERPOLATION_NearestNeighbour, taskStatus);
|
|
212 |
Buffer.INTERPOLATION_Bilinear, taskStatus);
|
|
213 | 213 |
|
214 | 214 |
bufferToDraw = interpolated2; |
215 | 215 |
|
... | ... | |
237 | 237 |
|
238 | 238 |
interpolated = |
239 | 239 |
bufferToDraw.createInterpolated((int) Math.floor(heightPixel), |
240 |
(int) Math.floor(widthPixel), Buffer.INTERPOLATION_NearestNeighbour, taskStatus);
|
|
240 |
(int) Math.floor(widthPixel), Buffer.INTERPOLATION_BicubicSpline, taskStatus);
|
|
241 | 241 |
bufferToDraw = interpolated; |
242 | 242 |
} catch (BufferException e) { |
243 | 243 |
LOG.warn( |
244 | 244 |
"Buffer can not be interpolated with [rows: {} , columns: {}, method: {}]", |
245 | 245 |
new String[] { String.valueOf((int) Math.floor(heightPixel)), |
246 | 246 |
String.valueOf((int) Math.floor(widthPixel)), |
247 |
String.valueOf(Buffer.INTERPOLATION_NearestNeighbour) });
|
|
247 |
String.valueOf(Buffer.INTERPOLATION_BicubicSpline) });
|
|
248 | 248 |
taskStatus.abort(); |
249 | 249 |
return; |
250 | 250 |
} |
Also available in: Unified diff