Skip to content

Commit 14cb1a0

Browse files
committed
Add LERC support
1 parent 800d9af commit 14cb1a0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Fast, async GeoTIFF and [Cloud-Optimized GeoTIFF][cogeo] (COG) reader for Python
2828
- Lightweight with **no GDAL dependency**.
2929
- Access data from AWS S3, Google Cloud Storage, and Azure Storage via **integration with [obstore]**.
3030
- **Full type hinting** for all operations.
31-
- **Broad decompression support**: Deflate, LZMA, LZW, JPEG, JPEG2000, WebP, ZSTD.
31+
- **Broad decompression support**: Deflate, JPEG, JPEG2000, LERC, LERC_DEFLATE, LERC_ZSTD, LZMA, LZW, WebP, ZSTD.
3232
- Support for **any arbitrary backend** via [obspec] protocols.
3333

3434
[Affine]: https://affine.readthedocs.io/en/latest/

tests/image_list.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
from tests.conftest import Variant
77

88
ALL_DATA_IMAGES: list[tuple[str, Variant]] = [
9+
("float32_1band_lerc_block32", "rasterio"),
10+
("float32_1band_lerc_deflate_block32", "rasterio"),
11+
("float32_1band_lerc_zstd_block32", "rasterio"),
12+
("nlcd_landcover", "nlcd"),
913
("uint16_1band_lzw_block128_predictor2", "rasterio"),
1014
("uint8_1band_deflate_block128_unaligned", "rasterio"),
11-
("uint8_rgb_deflate_block64_cog", "rasterio"),
1215
("uint8_1band_lzma_block64", "rasterio"),
16+
("uint8_rgb_deflate_block64_cog", "rasterio"),
1317
("uint8_rgb_webp_block64_cog", "rasterio"),
1418
("uint8_rgba_webp_block64_cog", "rasterio"),
15-
("nlcd_landcover", "nlcd"),
1619
]
1720
"""All fixtures where the data can be compared with rasterio."""
1821

@@ -21,8 +24,6 @@
2124
*ALL_DATA_IMAGES,
2225
# YCbCr is auto-decompressed by rasterio
2326
("maxar_opendata_yellowstone_visual", "vantor"),
24-
# we don't support LERC yet
25-
("float32_1band_lerc_block32", "rasterio"),
2627
]
2728
"""All fixtures where we test metadata parsing."""
2829

0 commit comments

Comments
 (0)