John,<br><br>You are right. gdaladdo is not for creating higher resolution images. I thought you needed the opposite.<br>I assume your landcover data is a classified raster. Classified data is usually zoomed in with nearest neighbor interpolation. Unless you fiddle with the interpolation window, the majority algorithm is pretty much the nearest neighbor while zooming in.<br>
<br>If you want, you can convert the image into an RGB using pct2rgb.py and work with the RGB image.<br><br><div class="gmail_quote">On Fri, Jan 27, 2012 at 11:30 PM, John Twilley <span dir="ltr">&lt;<a href="mailto:mathuin@gmail.com">mathuin@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;ve never seen gdaladdo -- neat command!  Alas, the overviews are the<br>
wrong way &#39;round -- I don&#39;t need to zoom out, I need to zoom in.<br>
gdaladdo doesn&#39;t handle fractional scale values well, so I can&#39;t make<br>
something bigger out of something smaller like I can with gdalwarp.<br>
<br>
Jack.<br>
<div class="im HOEnZb">--<br>
mathuin at gmail dot com<br>
<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">On Thu, Jan 26, 2012 at 20:01, Chaitanya kumar CH<br>
&lt;<a href="mailto:chaitanya.ch@gmail.com">chaitanya.ch@gmail.com</a>&gt; wrote:<br>
&gt; John,<br>
&gt;<br>
&gt; Try gdaladdo [1] with the resampling algo set to &#39;mode&#39;. If you use the -ro<br>
&gt; option, it will create an external overview. Check your output with<br>
&gt; different combinations of levels.<br>
&gt;<br>
&gt; [1]: <a href="http://www.gdal.org/gdaladdo.html" target="_blank">http://www.gdal.org/gdaladdo.html</a><br>
&gt;<br>
&gt; On Fri, Jan 27, 2012 at 5:09 AM, John Twilley &lt;<a href="mailto:mathuin@gmail.com">mathuin@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I am working with elevation and landcover data downloaded from the<br>
&gt;&gt; USGS.  I use gdalwarp to convert the data to a much smaller pixel. The<br>
&gt;&gt; elevation data works very nicely with cubic resampling, but the only<br>
&gt;&gt; resampling that works at all for the landcover data is<br>
&gt;&gt; nearest-neighbor and that&#39;s very blocky.  When I last worked with<br>
&gt;&gt; landcover data, I used a majority algorithm which produced smoother<br>
&gt;&gt; output -- but that algorithm is not implemented in gdalwarp.<br>
&gt;&gt; I am looking over the source to gdalwarp to see how hard it is to add<br>
&gt;&gt; a new algorithm.  Other than that, though, what options are available<br>
&gt;&gt; to me?  Thanks in advance!<br>
&gt;&gt; Jack.--<br>
&gt;&gt; mathuin at gmail dot com<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; gdal-dev mailing list<br>
&gt;&gt; <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Best regards,<br>
&gt; Chaitanya kumar CH.<br>
&gt;<br>
&gt; <a href="tel:%2B91-9494447584" value="+919494447584">+91-9494447584</a><br>
&gt; 17.2416N 80.1426E<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>