Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#2719 closed defect (fixed)

Can't build overviews for HDF4 and HDF5 with or without subdatasets

Reported by: gaopeng Owned by: warmerdam
Priority: normal Milestone: 1.7.0
Component: GDAL_Raster Version: 1.6.0
Severity: normal Keywords: overviews
Cc: antonio, rprinceley


Building overviews fails on HDF4 images with or without subdatasets.

Change History (6)

comment:1 by antonio, 14 years ago

Cc: antonio added

comment:2 by rprinceley, 14 years ago

Cc: rprinceley added

Adding myself to CC.

comment:3 by gaopeng, 14 years ago

Summary: Can't build overviews for HDF4 with or without subdatasetsCan't build overviews for HDF4 and HDF5 with or without subdatasets

The same problem exits for HDF5.

in reply to:  3 comment:4 by antonio, 14 years ago

Replying to gaopeng:

The same problem exits for HDF5.

Please provide more info:

  • platform, GDAL version (confirm 1.6.0?)
  • can you provide the output of
    $ gdalinfo --formats
  • are you trying to build overviews programmatically or via gdaladdo?
  • can you provide a test dataset to reproduce the issue?
  • can you provide a sample code/command line to reproduce the issue?

But for the known issue with old libtiff versions I can build overviews on HDF5 files without problems with GDAL >= 1.5.2.

comment:5 by warmerdam, 13 years ago

Keywords: overviews added
Resolution: fixed
Status: newclosed

I have implemented (r16731) core support for overviews on subdatasets (in GDALDefaultOverviews, and GDALPamDataset) and made adjustments to the NITF, HDF4, HDF5, and NetCDF drivers to utilize this. The key is to ensure the physical and subdataset names are properly set on the GDALPamDataset, and to call oOvManager.Initialize() *after* TryLoadXML(), and to pass ":::VIRTUAL:::" in place of the filename. The overview file name is stored in metadata (same as for proxy overviews), and an overview filename is allocated as needed when overviews are built.

A small test of this capability has been added to the test script (r16732).

All changes are currently in trunk. I do not think these changes are suitable to retrofit into the 1.6 branch.

A significant portion of the work on the listed drivers was just to get subdataset metadata support working properly.

comment:6 by warmerdam, 13 years ago

Migrated to 1.6-esri branch as part of r17187.

Note: See TracTickets for help on using tickets.