I see the usage of the gdalinfo for the gpkg with multiple tile source as
Subdataset,
I also saw the source code of gdalinfo getting the subdataset





*Q1: Can I get a list of tiles source name (table_name) in gpkg_contents
data_type as tiles?Is there any API call*
*or only by the following code ?*

char **papszSubdatasets = GDALGetMetadata( hDataset, "SUBDATASETS" );
        int nSubdatasets = CSLCount( papszSubdatasets );

char szKeyName[1024];
            char *pszSubdatasetName;

            snprintf( szKeyName, sizeof(szKeyName),
                      "SUBDATASET_%d_NAME", psOptionsForBinary->nSubdataset
);
            szKeyName[sizeof(szKeyName) - 1] = '\0';
            pszSubdatasetName =
                CPLStrdup( CSLFetchNameValue( papszSubdatasets, szKeyName )
);

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

Reply via email to