Thank you, Etienne, for writing this code. I greatly appreciate it!
I updated my svn checkout, then applied your patch with no errors. I tried
to warp my landcover files which use color tables (which is why mode is so
important to me) and they did not work. Here is the output:
jmt@nala:~/git/m
I have gdal 1.9.2. I have copied in the 3 SDE dlls. I have copied
OGR_SDE and GDAL_SDE dlls in the plugins 1.9 area and I have got around
the requests for debug MS dlls. At the end of all that, I still get:
Unable to open datasource `SDE: etc' with the following drivers.
-> ESRI Shapefile
I have implemented mode and average warping algorithms, based on those used
in overview creation.
http://trac.osgeo.org/gdal/ticket/5049
This code has been tested on a few datasets (see attachments) with all
datatypes (Byte, Int, Float) but not all cases have been looked into (e.g.
color tables,