-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify arguments used only when producing "web-optimized" COGs #277
Comments
👋 Bonjour @alexismanin Thanks for starting this discussion. Yes, I'm sorry about this. I think what happened is that when I started working on the I think we could do:
|
Just a side-note: If I understand well, no reprojection is configurable except through the tms argument, but the warp may still make sense if user has specified In any case, I will give a try to your suggestion. |
@alexismanin, the VRT is used also when
but yeah the
I hope not 😅 , I can also see that we didn't add tests for the |
I think we are good to close this 🙏 @alexismanin |
Hi,
It looks like some arguments to
cogeo.cog_translate
function are only applied ifweb_optimized
argument is set toTrue
, liketms
,zoom_level
, etc.I failed to see them as "specialized" arguments on first look, and I had to look at the function source code for a better understanding.
Therefore, I see two possible improvements:
web_optimized
could become a structure (pydantic setting or model) that holds all intended arguments, instead of them being scattered as direct function argument. In such case, we could aim for retro-compatibility by letting current arguments as they are, but deprecate them, and defineweb_optimized
as the following UnionType:bool|str|TileMatrixSet|WebOptimizationSettings
. When specified as:bool
, it would conserve the current behaviour. At term, when a breaking change would be possible or wanted, it could be restricted to the meaning "default WebMercatorQuad matrix set, with no zoom level configuration"str
: identifier or the path to a TileMatrixSet specTileMatrixSet
: The tile matrix set to useWebOptimizationSettings
: a Pydantic setting holding any related configuration (tms, zoom level or zoom level strategy, etc.).If any of the above suggestion looks good to you, I offer to submit a PR for it.
The text was updated successfully, but these errors were encountered: