gwaldron/osgearth — pull request #249 by aurelien35 (2012-10-09 12:28:17+00:00)
Title: Added an option on TileSource to select the GDAL interpolation method during reprojection : Nearest or Bilinear

I've added this option to solve this issue :

Under some circumstances, one may want to get exact pixel values, without any interpolation (for eaxmple to display computation results as ground texture or to display Digital Land Use color codes as ground texture)

There is an option to change the GPU texture interpolation method (NEAREST / LINEAR) as a terrain opton, but if a tile source needs to be mosaiced or reprojected, there is also an interpolation done on CPU using GDAL.

This option allow to select the interpolation method used by GDAL.

The default behaviour remains unchanged.

There is several files modified, so here are some explanations on what I've done :

1/ Modified "reprojectImage" GeoData.cpp to get one more boolean parameter : "useBilinearInterpolation" which switch between "nearest" and "bilinear"

2/ Modifed TileSource options class to add the new boolean option

3/ Modified all calls to "reprojectImage" within the different tile source class to use the new tile source option parameter