Skip to content

mosaic metadata minzoom/maxzoom for stac collections #272

@underchemist

Description

@underchemist

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions