Skip to content

Commit

Permalink
feat: add docs to GdalInfoBandColorTable
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Jacombs committed Jul 12, 2023
1 parent ccd758c commit 75b73f0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/gdal/gdalinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,23 @@

class GdalInfoBandColorTable(TypedDict):
palette: str
"""Colour palette type
Example: "RGB" """
count: int
"""Count of entries in the colour palette
Example: 256"""
entries: List[List[int]]
"""List of colour palette entries. Each is a list of colour channel values
Example:
[
[255,255,255,255],
[254,254,254,255],
[253,253,253,255],
[252,252,252,255],
[251,251,251,255],
[250,250,250,255]
...
]"""


class GdalInfoBand(TypedDict):
Expand Down

0 comments on commit 75b73f0

Please sign in to comment.