Skip to content

Commit

Permalink
Read lerc_zstd
Browse files Browse the repository at this point in the history
  • Loading branch information
ghidalgo3 committed Mar 28, 2024
1 parent f8d1e83 commit dc260b5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pctiler/tests/test_asset_read.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import planetary_computer as pc
import rasterio
from titiler.core import utils as titiler_utils

def test_rasterio_lerc_decompression() -> None:
# Read a LERC file from Planetary Computer
url = "https://usgslidareuwest.blob.core.windows.net/usgs-3dep-cogs/usgs-cogs/USGS_LPC_VA_Fairfax_County_2018/hag/USGS_LPC_VA_Fairfax_County_2018-hag-2m-3-1.tif"
signed_url = pc.sign(url)
with rasterio.open(signed_url) as src:
compression = src.profile.get('compress')
assert compression == 'lerc_zstd'

0 comments on commit dc260b5

Please sign in to comment.