<div dir="ltr">Please upload your file to the ticket (or just a small subset if the file is sensitive, or a way to generate a similar file, or send it to me). <div><br></div><div>It is probably because of the color table which I have not tested for.</div>
<div><br></div><div style>Etienne</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 8, 2013 at 3:17 AM, John Twilley <span dir="ltr"><<a href="mailto:mathuin@gmail.com" target="_blank">mathuin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you, Etienne, for writing this code. I greatly appreciate it!<div><br></div><div>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:</div>
<div><br></div><div>jmt@nala:~/git/mathuin/TopoMC$ /home/jmt/svn/gdal/apps/.libs/gdalwarp --debug -multi -tr 6 6 -te 2087232 2395968 2104512 2410176 -r mode regions/Provincetown/Datasets/L1L.tif L1L-new.tif<br>
</div><div><div>Copying color table from regions/Provincetown/Datasets/L1L.tif to new file.</div><div>Creating output file that is 2880P x 2368L.</div><div>Processing input file regions/Provincetown/Datasets/L1L.tif.</div>
<div>Warning: Input file regions/Provincetown/Datasets/L1L.tif has a color table, which will likely lead to bad results when using a resampling method other than nearest neighbour. Converting the dataset prior to 24/32 bit is advised.</div>
<div>ERROR 5: GDALWarpOptions.Validate()</div><div> eResampleArg=6 is not a supported value.</div><div>jmt@nala:~/git/mathuin/TopoMC$ </div><div><br></div><div>Let me know if I can provide any additional information to help you out!</div>
<div><br></div><div>Jack.</div></div></div><div class="gmail_extra"><div class="im"><br clear="all"><div>-- <br>mathuin at gmail dot com</div>
<br><br></div><div><div class="h5"><div class="gmail_quote">On Sun, Apr 7, 2013 at 1:19 PM, Etienne Tourigny <span dir="ltr"><<a href="mailto:etourigny.dev@gmail.com" target="_blank">etourigny.dev@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>I have implemented mode and average warping algorithms, based on those used in overview creation. </div><div><br></div><div><div><a href="http://trac.osgeo.org/gdal/ticket/5049" target="_blank">http://trac.osgeo.org/gdal/ticket/5049</a></div>
</div><div><br></div><div>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, various projections). </div><div><br>
</div><div>Any feedback and testing would be appreciated.</div><div><br></div><div>Cheers</div><span><font color="#888888"><div>Etienne</div></font></span></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Mar 27, 2013 at 6:13 PM, John Twilley <span dir="ltr"><<a href="mailto:mathuin@gmail.com" target="_blank">mathuin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm interested in this feature request as well. Adding the mode resampling algorithm to gdalwarp would be very beneficial to my projects, right up there with being able to access the warp API from Python. Is this at all possible? Should I submit a feature request on Trac, or what? Just let me know!<div>
<br></div><div>Jack.</div></div><div class="gmail_extra"><br clear="all"><div>-- <br>mathuin at gmail dot com</div>
<br><br><div class="gmail_quote"><div><div>On Mon, Feb 18, 2013 at 8:17 AM, Jan Hartmann <span dir="ltr"><<a href="mailto:j.l.h.hartmann@uva.nl" target="_blank">j.l.h.hartmann@uva.nl</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div text="#000000" bgcolor="#FFFFFF">
<br>
<div>
<font face="Times New Roman, Times, serif">Hi devs,<br>
<br>
Would it be possible to add gauss and other interpolations to
gdalwarp? At the moment I georeference large scans to 2000*2000
tiles at the most detailed scale, and then create 2000*2000
tiles at resolutions of 2, 4 6 etc times the original scale,
using gdaladdo and gauss or other interpolations. It would help
immensely if I could do that directly with gdalwarp.<div><br>
<br>
Funding would probably no problem. The question is: can and
should it be done?<br>
<br>
Jan <br>
</div></font> <br>
</div>
<br>
</div>
<br></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>