Zhenyu,<br><br>GDAL's HFA driver doesn't support creation of overviews. It can only read them.<br><br><div class="gmail_quote">On Thu, Nov 11, 2010 at 9:16 AM, Zhenyu Lu <span dir="ltr"><<a href="mailto:luzhenyu1981@gmail.com">luzhenyu1981@gmail.com</a>></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;"><br clear="all">Hi, all:<br>I'm having an error while using function Dataset.BuildOverviews in my code.<br>
The error message is "BuildOverviews() not supported for this dataset".<br>However, when I used the ".tif" 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("NEAREST", pOverviewList);<br>if (err != (int)CPLErr.CE_None)<br> return null;<br>
I'm using GDAL1.5.2 and C#2.0. Is it because the HFA driver doesn'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>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">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><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>