Opened 6 years ago

Closed 6 years ago

#4044 closed defect (fixed)

Error running gdaladdo on images with an internal overview

Reported by: brushtyler Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description (last modified by brushtyler)

I get an error running gdaladdo on a geotiff with an internal overview.

I'm trying to create an external overview (-ro option) for the file but I get the following error:

ERROR 4: `../001.tif.ovr' does not exist in the file system,
and is not recognised as a supported dataset name.

Obviously 001.tif.ovr doesn't exist as 001.tif has an internal overview.

The same problem using as input a .img file with an internal overview, so I can suppose it's a general problem not related to the tiff format.

Change History (3)

comment:1 Changed 6 years ago by brushtyler

Description: modified (diff)
Summary: Error running gdaladdo on GeoTIFFs with an internal overviewError running gdaladdo on images with an internal overview

comment:2 Changed 6 years ago by Even Rouault

I'm not sure what was your expectation from this experiment...

Are you just reporting that the error message is misleading (this should likely be fixed), or do you expect the GTiff and HFA drivers to be abloe to mix external overviews and internal overviews ?

The current behaviour is that the GTiff driver will only return internal overviews if they exist, and ignore completely the .tif.ovr file (the same applies for HFA driver)

comment:3 Changed 6 years ago by Even Rouault

Milestone: 1.9.0
Resolution: fixed
Status: newclosed

r22318 /trunk/gdal/frmts/ (gtiff/geotiff.cpp hfa/hfadataset.cpp): HFA and GTiff: add explicit error message when trying to add external overviews when there are already internal overviews (#4044)

Note: See TracTickets for help on using tickets.