Opened 13 years ago

Closed 12 years ago

Last modified 12 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

Description

Building overviews fails on HDF4 images with or without subdatasets.

Change History (6)

comment:1 Changed 13 years ago by antonio

Cc: antonio added

comment:2 Changed 13 years ago by rprinceley

Cc: rprinceley added

Adding myself to CC.

comment:3 Changed 13 years ago by gaopeng

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.

comment:4 in reply to:  3 Changed 13 years ago by antonio

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 Changed 12 years ago by warmerdam

Keywords: overviews added
Milestone: 1.6.11.7.0
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 hdf5.py 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 Changed 12 years ago by warmerdam

Migrated to 1.6-esri branch as part of r17187.

Note: See TracTickets for help on using tickets.