[Gdal-dev] Re: Creating overviews for a HFA file opened as read-only

Daniel daniel112b at gmail.com
Fri Mar 9 10:28:12 EST 2007


If i open an Erdas .img file in read-only mode i can't create any
overviews. The .ovr overview support was removed from the HFA driver a
while ago and before that a .ovr file was created when a .img files
was opened as read-only but no i just get "BuildOverviews() not
supported for this dataset"

HFADataset::IBuildOverviews calls GDALDataset::IBuildOverviews if
opened as read-only but that does not work anymore since the
initialization of the ovrManager was removed (Changeset 8358)

if( GetAccess() == GA_ReadOnly )
        return GDALDataset::IBuildOverviews(

Is this the desired behavior?

   Daniel Bäck

More information about the Gdal-dev mailing list