Skip to content

Commit

Permalink
Python utilities: fix GDALTypeCodeAndNumericTypeCodeFromDataSet() (ma…
Browse files Browse the repository at this point in the history
…ster only)
  • Loading branch information
rouault committed Mar 11, 2023
1 parent 4c94eec commit 3c77f0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions swig/python/gdal-utils/osgeo_utils/auxiliary/numpy_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def GDALTypeCodeToNumericTypeCodeEx(buf_type, signed_byte, default=None):
def GDALTypeCodeAndNumericTypeCodeFromDataSet(ds):
band = ds.GetRasterBand(1)
buf_type = band.DataType
signed_byte = False
if buf_type == gdal.GDT_Byte:
band._EnablePixelTypeSignedByteWarning(False)
signed_byte = (
Expand Down

0 comments on commit 3c77f0c

Please sign in to comment.