@@ -1970,7 +1970,7 @@ void msWCSApplyDatasetMetadataAsCreationOptions(layerObj *lp,
19701970 int nDstBand = i + 1 ;
19711971 GDALRasterBandH hBand = GDALGetRasterBand (hDS, nSrcBand);
19721972 if (hBand) {
1973- char ** papszMD = GDALGetMetadata (hBand, NULL );
1973+ CSLConstList papszMD = GDALGetMetadata (hBand, NULL );
19741974 const char *pszMDI = CSLFetchNameValue (papszMD, " GRIB_IDS" );
19751975 // Make sure it is a GRIB2 band
19761976 if (pszMDI) {
@@ -2307,9 +2307,9 @@ void msWCSApplySourceDatasetMetadata(layerObj *lp, outputFormatObj *format,
23072307 }
23082308
23092309 {
2310- char ** papszMD = GDALGetMetadata (hDS, NULL );
2310+ CSLConstList papszMD = GDALGetMetadata (hDS, NULL );
23112311 if (papszMD) {
2312- for (char ** papszIter = papszMD; *papszIter; ++papszIter) {
2312+ for (CSLConstList papszIter = papszMD; *papszIter; ++papszIter) {
23132313 // Copy netCDF global attributes, as well as the ones
23142314 // of the extra dimension for 3D netCDF files
23152315 if (STARTS_WITH (*papszIter, " NC_GLOBAL#" ) ||
@@ -2334,9 +2334,9 @@ void msWCSApplySourceDatasetMetadata(layerObj *lp, outputFormatObj *format,
23342334 int nDstBand = i + 1 ;
23352335 GDALRasterBandH hBand = GDALGetRasterBand (hDS, nSrcBand);
23362336 if (hBand) {
2337- char ** papszMD = GDALGetMetadata (hBand, NULL );
2337+ CSLConstList papszMD = GDALGetMetadata (hBand, NULL );
23382338 if (papszMD) {
2339- for (char ** papszIter = papszMD; *papszIter; ++papszIter) {
2339+ for (CSLConstList papszIter = papszMD; *papszIter; ++papszIter) {
23402340 char *pszKey = nullptr ;
23412341 const char *pszValue = CPLParseNameValue (*papszIter, &pszKey);
23422342 if (pszKey && pszValue && !EQUAL (pszKey, " grid_name" ) &&
0 commit comments