Re: [gdal-dev] An error in building overviews for

2010-11-12 Thread Frank Warmerdam
Zhenyu Lu wrote: Hi, Even: I have used the tool you mentioned. There is a gdaladdo utility in GDAL1.5.2. But still it didn't work with the .img file in my computer. Then I realized that since I've used these .img files in ArcGIS and Erdas before. These software must automatically create the .

Re: [gdal-dev] An error in building overviews for

2010-11-11 Thread Zhenyu Lu
Hi, Even: I have used the tool you mentioned. There is a gdaladdo utility in GDAL1.5.2. But still it didn't work with the .img file in my computer. Then I realized that since I've used these .img files in ArcGIS and Erdas before. These software must automatically create the .rrd files. That explai

Re: [gdal-dev] An error in building overviews for

2010-11-11 Thread Even Rouault
Zhenyu, gdaladdo is not a function. It is a command line utility that you should find with the other GDAL utilities. Le jeudi 11 novembre 2010 19:05:23, Zhenyu Lu a écrit : > Hi, Even: > > Thanks for the information. I double checked the GDAL-1.5.2 compiled .net > dll. But I can't find the fun

Re: [gdal-dev] An error in building overviews for

2010-11-11 Thread Zhenyu Lu
Hi, Even: Thanks for the information. I double checked the GDAL-1.5.2 compiled .net dll. But I can't find the function named as gdaladdo. What I can only find is three BuildOverviews function. So I am confused whether there is such a function in GDAL-1.5.2. I will try to test with GDAL-1.6 to see

Re: [gdal-dev] An error in building overviews for

2010-11-11 Thread Chaitanya kumar CH
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 wrote: > Hi, Chaitanya: > > Thanks for the answers! > It's really helpful. So suppose there is .img file, it has over

Re: [gdal-dev] An error in building overviews for

2010-11-11 Thread Even Rouault
Actually, the HFA driver *does* support overviews. It isn't obvious why it does not work for you. Perhaps you should consider upgrading to a newer GDAL version, but I don't think this is an issue with GDAL 1.5.2. Does gdaladdo work on the dataset ? If so, then it must be rather related to someth

Re: [gdal-dev] An error in building overviews for

2010-11-10 Thread Chaitanya kumar CH
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 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 da

[gdal-dev] An error in building overviews for

2010-11-10 Thread Zhenyu Lu
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 =