Skip to content

Commit ed7987e

Browse files
committed
Address Copilot review feedback
- tests/test_common.py: pass an explicit CRS and from_origin transform to rasterio.open() when creating the synthetic multi-band GeoTIFF so the test is portable across rasterio versions and does not trigger NotGeoreferencedWarning.
1 parent 4f91a19 commit ed7987e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import numpy as np
1010
import rasterio
11+
from rasterio.transform import from_origin
1112

1213
from samgeo import common
1314

@@ -64,6 +65,8 @@ def test_read_image_for_sam_multiband_geotiff(self):
6465
width=data.shape[2],
6566
count=data.shape[0],
6667
dtype=data.dtype,
68+
crs="EPSG:4326",
69+
transform=from_origin(-180, 90, 1, 1),
6770
) as dst:
6871
dst.write(data)
6972

0 commit comments

Comments
 (0)