Skip to content

Commit

Permalink
Use 1-based indexing in infoSet (GDAL source only)
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Dec 20, 2023
1 parent 12b1b1f commit ad70cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/gdal/large_image_source_gdal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad70cac

Please sign in to comment.