Zhenyu,<br><br>Even says that HFA driver supports overview creation. Try the gdaladdo utility like he said.<br><a href="http://www.gdal.org/gdaladdo.html">http://www.gdal.org/gdaladdo.html</a><br><br><div class="gmail_quote">
On Thu, Nov 11, 2010 at 8:45 PM, Zhenyu Lu <span dir="ltr">&lt;<a href="mailto:luzhenyu1981@gmail.com">luzhenyu1981@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>Hi, Chaitanya: </div>
<div> </div>
<div>Thanks for the answers!</div>
<div>It&#39;s really helpful. So suppose there is .img file, it has overviews been created using other software. We can use it anyway?</div>
<div>Like we can directly use band=band.GetOverview(overview), even the syntax that dataset.BuildOverviews doesn&#39;t work?</div>
<div><br><br> </div>
<div class="gmail_quote">2010/11/11 Chaitanya kumar CH <span dir="ltr">&lt;<a href="http://chaitanya.ch/" target="_blank">chaitanya.ch</a>@<a href="http://gmail.com/" target="_blank">gmail.com</a>&gt;</span><div><div></div>
<div class="h5"><br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">Zhenyu,<br><br>GDAL&#39;s HFA driver doesn&#39;t support creation of overviews. It can only read them.<br>

<br>
<div class="gmail_quote">
<div>
<div></div>
<div>On Thu, Nov 11, 2010 at 9:16 AM, Zhenyu Lu <span dir="ltr">&lt;<a href="mailto:luzhenyu1981@gmail.com" target="_blank">luzhenyu1981@gmail.com</a>&gt;</span> wrote:<br></div></div>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div>
<div></div>
<div><br clear="all">Hi, all:<br>I&#39;m having an error while using function Dataset.BuildOverviews in my code.<br>The error message is &quot;BuildOverviews() not supported for this dataset&quot;.<br>However, when I used the &quot;.tif&quot; file the BuildOverviews worked just fine. The<br>

code is:<br>int[] pOverviewList = { overView*2};<br>int[] pBandList = new int[dataset.RasterCount];<br>int err = dataset.BuildOverviews(&quot;NEAREST&quot;, pOverviewList);<br>if (err != (int)CPLErr.CE_None)<br>      return null;<br>

I&#39;m using GDAL1.5.2 and C#2.0. Is it because the HFA driver doesn&#39;t support<br>overview? Or is it a bug? Can anyone pointed out where is my problem? Thanks a<br>lot!<br><font color="#888888">-- <br>
<div>Zhenyu Lu</div>
<div>SUNY-ESF</div><br></font><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><font color="#888888"><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br></font></blockquote></div></div></div><font color="#888888"><br>
<br clear="all">
<br>-- <br>
<div>Zhenyu Lu</div>
<div>SUNY-ESF</div><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>