Skip to content

Clarification and Verification Needed for 'max_size' Parameter in /cog Endpoint #798

Closed Answered by vincentsarago
kbae1230 asked this question in Q&A
Discussion options

You must be logged in to vote

🤔 can you share the titiler version you are using, and also the full API call you are doing?

I assumed you were using the /statistics [GET] endpoint but maybe you are using the /statistics [POST] with a GeoJSON feature, for which we don't have a default max_size set (https://github.com/developmentseed/titiler/blob/main/src/titiler/core/titiler/core/dependencies.py#L351-L362).

Additionally, could we delve a bit deeper into the unit of max_size and what values it represents?

The unit is in pixel/cells, it represent the maximum size (height or width) in which we wan to read the data into. This is to avoid having to fetch the full file. This is up to the user to set in the POST endpoint bec…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@kbae1230
Comment options

@vincentsarago
Comment options

Answer selected by kbae1230
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants