Skip to content

Commit d49e02e

Browse files
authored
feat: Support for band-interleaved data (#80)
* edit conftest * fix types * Add test with band-interleaved data * bump version * separate image list without overviews
1 parent 4b5360e commit d49e02e

File tree

5 files changed

+35
-25
lines changed

5 files changed

+35
-25
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ classifiers = [
2222
keywords = ["geotiff", "tiff", "async", "cog", "raster", "gis"]
2323
dependencies = [
2424
"affine>=2.4.0",
25-
"async-tiff>=0.6.0-beta.1",
25+
"async-tiff>=0.6.0-beta.2",
2626
"numpy>=2.0",
2727
"pyproj>=3.3.0",
2828
]

tests/image_list.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
ALL_DATA_IMAGES: list[tuple[str, str]] = [
3+
ALL_COG_IMAGES: list[tuple[str, str]] = [
44
("nlcd", "nlcd_landcover"),
55
("rasterio", "float32_1band_lerc_block32"),
66
("rasterio", "float32_1band_lerc_deflate_block32"),
@@ -13,6 +13,12 @@
1313
("rasterio", "uint8_rgba_webp_block64_cog"),
1414
("umbra", "sydney_airport_GEC"),
1515
]
16+
"""All fixtures that have overviews where the data can be compared with rasterio."""
17+
18+
ALL_DATA_IMAGES: list[tuple[str, str]] = [
19+
*ALL_COG_IMAGES,
20+
("eox", "eox_cloudless"),
21+
]
1622
"""All fixtures where the data can be compared with rasterio."""
1723

1824

tests/test_fetch.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
import pytest
99
from rasterio.windows import Window
1010

11-
from .image_list import ALL_DATA_IMAGES, ALL_MASKED_IMAGES
11+
from .image_list import (
12+
ALL_COG_IMAGES,
13+
ALL_DATA_IMAGES,
14+
ALL_MASKED_IMAGES,
15+
)
1216

1317
if TYPE_CHECKING:
1418
from .conftest import LoadGeoTIFF, LoadRasterio
@@ -40,7 +44,7 @@ async def test_fetch(
4044
@pytest.mark.asyncio
4145
@pytest.mark.parametrize(
4246
("variant", "file_name"),
43-
ALL_DATA_IMAGES,
47+
ALL_COG_IMAGES,
4448
)
4549
async def test_fetch_overview(
4650
load_geotiff: LoadGeoTIFF,

tests/test_read.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import async_geotiff
1212
from async_geotiff.exceptions import WindowError
1313

14-
from .image_list import ALL_DATA_IMAGES
14+
from .image_list import ALL_COG_IMAGES, ALL_DATA_IMAGES
1515

1616
if TYPE_CHECKING:
1717
from .conftest import LoadGeoTIFF, LoadRasterio
@@ -94,7 +94,7 @@ async def test_read_spanning_tiles(
9494
@pytest.mark.asyncio
9595
@pytest.mark.parametrize(
9696
("variant", "file_name"),
97-
ALL_DATA_IMAGES,
97+
ALL_COG_IMAGES,
9898
)
9999
async def test_read_overview(
100100
load_geotiff: LoadGeoTIFF,

uv.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)