Skip to content

Commit

Permalink
Fix numpy error
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Oct 14, 2024
1 parent 5dc9727 commit f639f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samgeo/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ def draw_tile(
gtiff.SetGeoTransform((min(xp0, xp1), pwidth, 0, max(yp0, yp1), 0, -pheight))
gtiff.SetProjection(WKT_3857)
for band in range(imgbands):
array = numpy.array(img.getdata(band), dtype="u8")
array = np.array(img.getdata(band), dtype="u8")
array = array.reshape((img.size[1], img.size[0]))
band = gtiff.GetRasterBand(band + 1)
band.WriteArray(array)
Expand Down

0 comments on commit f639f93

Please sign in to comment.