hyriver / pygeohydro

A part of HyRiver software stack for accessing hydrology data through web services
https://docs.hyriver.io
Other
68 stars 23 forks source link

The tree canopy layer name has changed #106

Closed cheginit closed 1 year ago

cheginit commented 1 year ago

What happened?

The MRLC web service has changed the layer names of the tree canopy layers.

What did you expect to happen?

Requesting for canopy shouldn't fail.

Minimal Complete Verifiable Example

from pygeoogc import WMS, ServiceURL

wms = WMS(
    ServiceURL().wms.mrlc,
    layers="NLCD_2011_Tree_Canopy_L48",
    outformat="image/geotiff",
    crs=4326,
    validation=False,
)
wms_resp = wms.getmap_bybox(
    (-69.77, 45.07, -69.31, 45.45),
    1e3,
)

MVCE confirmation

Relevant log output

No response

Anything else we need to know?

No response

Environment

SYS INFO -------- commit: None python: 3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:07:22) [Clang 14.0.6 ] python-bits: 64 OS: Darwin OS-release: 22.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: None LOCALE: en_US.UTF-8 libhdf5: 1.14.0 libnetcdf: 4.9.2 PACKAGE VERSION ------------------------------- aiodns 3.0.0 aiohttp 3.8.4 aiohttp-client-cache 0.8.1 aiosqlite 0.19.0 async-retriever 0.15.0 bottleneck 1.3.7 brotli 1.0.9 click 8.0.3 cytoolz 0.12.0 dask 2023.5.1 defusedxml 0.7.1 folium 0.14.0 geopandas 0.13.0 h5netcdf 1.2.0 hydrosignatures 0.15.1.dev3+gfaa6354 lxml 4.9.2 matplotlib 3.7.1 netCDF4 1.6.3 networkx 3.1 numba 0.57.0 numpy 1.24.3 owslib 0.29.2 pandas 2.0.2 py3dep 0.14.1.dev30+g4eb740f pyarrow 12.0.0 pydaymet 0.14.1.dev20+g9aa0d8b pygeohydro 0.15.1.dev1+g1c902b0.d20230523 pygeoogc 0.14.1.dev31+g0c6d4f1 pygeos N/A pygeoutils 0.14.1.dev22+gf377c19 pynhd 0.14.1.dev38+g7d12f75 pynldas2 0.14.1.dev27+g8d2f7cb pyproj 3.5.0 pytest 7.3.1 pytest-cov 4.1.0 rasterio 1.3.7 requests 2.31.0 requests-cache 1.0.1 richdem N/A rioxarray 0.14.1 scipy 1.10.1 shapely 2.0.1 tables 3.8.0 ujson 5.7.0 urllib3 2.0.2 xarray 2023.5.0 xdist N/A yaml N/A -------------------------------