Opened 11 years ago

Last modified 11 years ago

#4902 closed enhancement

[PATCH] add information on subdataset support to gdal driver metadata — at Version 2

Reported by: etourigny Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc:

Description (last modified by etourigny)

The following patch implements the DMD_SUBDATASETS metadata item for any driver which supports subdatasets. This information is printed when gdalinfo --frmt <driver> is called.

Just submitting this for review - also would it make sense to apply to 1.9 ?

I have searched for drivers supporting subdatasets with the following command, and rapid inspection of each driver - it might not be 100% accurate.

I have also updated the docs to show that information on the formats list page.

example with hdf4:

$ gdalinfo --format hdf4
Format Details:
  Short Name: HDF4
  Long Name: Hierarchical Data Format Release 4
  Extension: hdf
  Help Topic: frmt_hdf4.html
  Supports: Subdatasets

Change History (4)

by etourigny, 11 years ago

Attachment: patch-subdataset.txt added

comment:1 by etourigny, 11 years ago

command used to search for subdataset support:

grep SUBDATASETS frmts/*/*.cpp

comment:2 by etourigny, 11 years ago

Description: modified (diff)

by etourigny, 11 years ago

Attachment: patch-subdataset2.txt added

second patch with changes suggested be Even, removing changes to formats_list.html and adding output to --formats commandline option

Note: See TracTickets for help on using tickets.