You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PySTAC 1.9.0 introduced the .ext accessor for STAC item extensions. STACReader uses the accessor when computing the minzoom and maxzoom for an Item, and if it doesn't find the extension then it uses the TMS default. Previously the reader was using the Asset information to compute the minzoom, maxzoom which was different because the author of the STAC item may not have included the proj extension.
Consider the following situation:
Someone is using rio-tiler with a version of pySTAC before 1.9.0 (i.e, pystac.Item does not have a ext accessor).
They want to call info() and get the asset's minzoom maxzoon. The STAC item may have the proj extension but because the extension accessor call is gated behind a hasattr check then STACReader will never read the extension properties and the minzoom/maxzoom will be the TMS default.
I think rio-tiler should increase the minimum version of pySTAC supported so that you can properly check for the presence of the proj extension. Otherwise, the current pySTAC version constraint allows some combinations of pySTAC and rio-tiler to always default to the TMS minzoom, maxzoom which is a regression from previous behavior.
The specific versions I'm using:
rio-tiler==7.3.1
pystac==1.8.3
The text was updated successfully, but these errors were encountered:
PySTAC 1.9.0 introduced the
.ext
accessor for STAC item extensions.STACReader
uses the accessor when computing theminzoom
andmaxzoom
for an Item, and if it doesn't find the extension then it uses the TMS default. Previously the reader was using the Asset information to compute theminzoom
,maxzoom
which was different because the author of the STAC item may not have included the proj extension.Consider the following situation:
rio-tiler
with a version ofpySTAC
before 1.9.0 (i.e,pystac.Item
does not have aext
accessor).info()
and get the asset's minzoom maxzoon. The STAC item may have the proj extension but because the extension accessor call is gated behind ahasattr
check thenSTACReader
will never read the extension properties and theminzoom
/maxzoom
will be the TMS default.I think rio-tiler should increase the minimum version of
pySTAC
supported so that you can properly check for the presence of theproj
extension. Otherwise, the currentpySTAC
version constraint allows some combinations ofpySTAC
andrio-tiler
to always default to the TMS minzoom, maxzoom which is a regression from previous behavior.The specific versions I'm using:
rio-tiler==7.3.1
pystac==1.8.3
The text was updated successfully, but these errors were encountered: