Closed TomAugspurger closed 2 years ago
@TomAugspurger Thanks for reporting. This bug has been fixed in the new release v0.9.3
Thanks! I'll get the leafmap version used on the Planetary Computer updated once it's available through conda-forge.
It should be available in an hour or two. https://github.com/conda-forge/leafmap-feedstock/pull/45
Available on conda-forge now.
Environment Information
Description
Use
add_stac_layer
with a STAC item from the Planetary Computer.What I Did
Here's
stats[s]
:It seems that the structure of the
stats
object changed with this release. https://github.com/microsoft/planetary-computer-apis/blob/174db793bfe9f572fff13b04e13bac1005d212fc/pctiler/setup.py#L13-L14 has the TiTiler versions we're using (if that's the relevant library that changed).The fix seems pretty simple, to just use
stats[s]["precentile_2"]
. But I suspect that would break clients working with older versions of TiTiler.End-users can work around this by providing an
expression
orrescale
.