Skip to content

Commit f639f93

Browse files
committed
Fix numpy error
1 parent 5dc9727 commit f639f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samgeo/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def draw_tile(
647647
gtiff.SetGeoTransform((min(xp0, xp1), pwidth, 0, max(yp0, yp1), 0, -pheight))
648648
gtiff.SetProjection(WKT_3857)
649649
for band in range(imgbands):
650-
array = numpy.array(img.getdata(band), dtype="u8")
650+
array = np.array(img.getdata(band), dtype="u8")
651651
array = array.reshape((img.size[1], img.size[0]))
652652
band = gtiff.GetRasterBand(band + 1)
653653
band.WriteArray(array)

0 commit comments

Comments
 (0)