[gdal-dev] An error in building overviews for

Chaitanya kumar CH chaitanya.ch at gmail.com
Thu Nov 11 10:41:37 EST 2010


Zhenyu,

Even says that HFA driver supports overview creation. Try the gdaladdo
utility like he said.
http://www.gdal.org/gdaladdo.html

On Thu, Nov 11, 2010 at 8:45 PM, Zhenyu Lu <luzhenyu1981 at gmail.com> wrote:

> Hi, Chaitanya:
>
> Thanks for the answers!
> It's really helpful. So suppose there is .img file, it has overviews been
> created using other software. We can use it anyway?
> Like we can directly use band=band.GetOverview(overview), even the syntax
> that dataset.BuildOverviews doesn't work?
>
>
>
> 2010/11/11 Chaitanya kumar CH <chaitanya.ch at gmail.com>
>
> Zhenyu,
>>
>> GDAL's HFA driver doesn't support creation of overviews. It can only read
>> them.
>>
>>   On Thu, Nov 11, 2010 at 9:16 AM, Zhenyu Lu <luzhenyu1981 at gmail.com>wrote:
>>
>>>
>>> Hi, all:
>>> I'm having an error while using function Dataset.BuildOverviews in my
>>> code.
>>> The error message is "BuildOverviews() not supported for this dataset".
>>> However, when I used the ".tif" file the BuildOverviews worked just fine.
>>> The
>>> code is:
>>> int[] pOverviewList = { overView*2};
>>> int[] pBandList = new int[dataset.RasterCount];
>>> int err = dataset.BuildOverviews("NEAREST", pOverviewList);
>>> if (err != (int)CPLErr.CE_None)
>>>       return null;
>>> I'm using GDAL1.5.2 and C#2.0. Is it because the HFA driver doesn't
>>> support
>>> overview? Or is it a bug? Can anyone pointed out where is my problem?
>>> Thanks a
>>> lot!
>>> --
>>> Zhenyu Lu
>>> SUNY-ESF
>>>
>>>
>>> _______________________________________________
>>> gdal-dev mailing list
>>> gdal-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>>
>>
>>
>>
>> --
>> Best regards,
>> Chaitanya kumar CH.
>> /tʃaɪθənjə/ /kʊmɑr/
>> +91-9494447584
>> 17.2416N 80.1426E
>>
>
>
>
> --
> Zhenyu Lu
> SUNY-ESF
>
>


-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20101111/512ae389/attachment.html


More information about the gdal-dev mailing list