[gdal-dev] which formats support subdatasets?

Even Rouault even.rouault at mines-paris.org
Fri Jan 11 05:03:26 PST 2013


Selon Etienne Tourigny <etourigny.dev at gmail.com>:

> Hi,
>
> I'd just like to point out a patch I have submitted to report which
> raster drivers support subdatasets, using the DMD_SUBDATASETS metadata
> item.
> I have also modified gdalinfo and format docs.
>
> http://trac.osgeo.org/gdal/ticket/4902
>
> For example:
>
> $ gdalinfo --format hdf4
> Format Details:
>   Short Name: HDF4
>   Long Name: Hierarchical Data Format Release 4
>   Extension: hdf
>   Help Topic: frmt_hdf4.html
>   Supports: Subdatasets
>

I've looked at the patch and it seems good. I'm not sure I would have added a
new column in the table, but if you think it is usefull, keep it. It would
perhaps be good to mention in gdal_datamodel.dox, in the SUBDATASETS section,
that drivers that support them advertize the DMD_SUBDATASETS capability. And I
think that swig/include/gdalconst.i should also be edited to add the new
constant. After that please commit.

I'm not sure it is appropriate to backport in 1.9 however (new feature, output
of gdalinfo --format modified). 1.10 should be out soon hopefully.

>
> Regards,
> Etienne
>
> On Tue, Nov 20, 2012 at 10:43 AM, Etienne Tourigny
> <etourigny.dev at gmail.com> wrote:
> > Hi
> >
> > I'd like to be able to identify which raster and vector formats
> > support subdatasets (or multipl layers).
> >
> > A quick grep search (grep SUBDATASETS frmts/*/*.cpp) showed which GDAL
> > drivers can report subdatasets.
> > Am I missing something?
> >
> > I think it would be nice to include this info in the driver summary
> > page - should I just edit the html or is there some other file to
> > edit?
> >
> > I was wondering how to find that out for OGR drivers - or do all
> > drivers support multiple layers in one datasource?
> >
> >
> > Regards,
> > Etienne
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>




















More information about the gdal-dev mailing list