Replies: 2 comments 2 replies
-
👋 @carderne, in titiler-pgstac you can add a Sadly for STAC we can't know what's the minzoom for the datasource in advance. The mosaic metadata is only retrieved in the tilejson endpoint because we wanted to avoid unnecessary database request on each tile request |
Beta Was this translation helpful? Give feedback.
-
Thanks @vincentsarago 😊! I think I’d mostly figured that out, good to understand the reasoning. Our users include ArcGIS users, who I don’t think can consume tilejson (more research needed here) so need a plain XYZ endpoint. So the problem with my solution is clearly that the zoom level is hardcoded into the paths. I might add some end vars or something if we need a different |
Beta Was this translation helpful? Give feedback.
-
(Preface: I think it's quite likely that I've misunderstood something!)
We're using titiler (via titiler-pgstac) with source data at 10 m/pixel (z~=14) with four overviews down to z~=10.
Tiles at lower zoom levels are very slow, and tiles below z=5 or so would probably take minutes or hours to generate - jamming up the machine for no reason.
As far as I can tell, there's no built-in way to ignore requests below a certain zoom level? (Something analogous to
tilejson
'sminzoom
.)Currently I'm wrapping the functions with something like the code below. Happy to work on a PR if this would be useful for anyone, otherwise keen to just understand titiler better!
Beta Was this translation helpful? Give feedback.
All reactions