Selon atubar <atu...@126.com>:

> Here is my local code and result, is there something wrong?

No, its's fine.

>
> char ** SUBDATASETS = GDALGetMetadata( (GDALDatasetH)m_pSrcDataset,
> "SUBDATASETS" );
>
> After anterior code, for GTiff dataset, it return a NULL result.
> So I am puzzled that whether  SUBDATASETS shared for GTiff?

For the vast majority of TIFF files, getting NULL is indeed the expected result.
GDAL will only expose data in the SUBDATASETS domain if you have several IFD
(Image File Directory) in the TIFF, and if they are not pyramids or transparency
masks.



_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to