MOSAIC_STRICT_ZOOM=TRUE implies that tile requests for zoom levels outside those defined by mosaic metadata minzoom/maxzoom values. In practice, a request to
GET /collections/stac-collections/WMTSCapabilities.xml
for a collection with a render object e.g. "renders": {"viz": {"assets": ["cog"], "minmax_zoom": [15, 20]}}... titiler.pgstac will correctly produce XYZ tile urls with minzoom and maxzoom parameters. However the MosaicTilerFactory.tile from titiler.mosaic.factory only checks against the minzoom/maxzoom values in the backend https://github.com/developmentseed/titiler/blob/9fe66665a43f05267107307ae9a0fa54bc3ece80/src/titiler/mosaic/titiler/mosaic/factory.py#L624, defaulting to the TMS minzoom/maxzoom if not set (specifically for titiler.pgstac
|
def minzoom(self) -> int: # type: ignore [override] |
).
I would expect that the /tiles endpoint would use any minzoom or maxzoom to override any values defined in the mosaic metadata. If that's not intended, how should I handle the case where I want to restrict tile requests for a stac collection? It's not clear to me how update the mosaic metadata for the registered mosaic id for a stac collection.
MOSAIC_STRICT_ZOOM=TRUEimplies that tile requests for zoom levels outside those defined by mosaic metadata minzoom/maxzoom values. In practice, a request tofor a collection with a render object e.g.
"renders": {"viz": {"assets": ["cog"], "minmax_zoom": [15, 20]}}...titiler.pgstac will correctly produce XYZ tile urls with minzoom and maxzoom parameters. However theMosaicTilerFactory.tilefromtitiler.mosaic.factoryonly checks against the minzoom/maxzoom values in the backend https://github.com/developmentseed/titiler/blob/9fe66665a43f05267107307ae9a0fa54bc3ece80/src/titiler/mosaic/titiler/mosaic/factory.py#L624, defaulting to the TMS minzoom/maxzoom if not set (specifically for titiler.pgstactitiler-pgstac/titiler/pgstac/backend.py
Line 66 in 97861a4
I would expect that the
/tilesendpoint would use anyminzoomormaxzoomto override any values defined in the mosaic metadata. If that's not intended, how should I handle the case where I want to restrict tile requests for a stac collection? It's not clear to me how update the mosaic metadata for the registered mosaic id for a stac collection.