diff --git a/sources/gdal/large_image_source_gdal/__init__.py b/sources/gdal/large_image_source_gdal/__init__.py index 865c2f91e..52061d60a 100644 --- a/sources/gdal/large_image_source_gdal/__init__.py +++ b/sources/gdal/large_image_source_gdal/__init__.py @@ -561,7 +561,7 @@ def getBandInformation(self, statistics=True, dataset=None, **kwargs): if band.GetMaskBand(): info['maskband'] = band.GetMaskBand().GetBand() or None # Only keep values that aren't None or the empty string - infoSet[i] = { + infoSet[i + 1] = { k: v for k, v in info.items() if v not in (None, '') and not ( isinstance(v, float) and