Skip to content

Clip endpoint for MosaicJSON #555

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

You must be logged in to vote

ahhhhhh I deleted my original answer 😭 😭 😭

First thanks for the question.

Create a custom endpoint for titiler that takes a bbox, finds all tiles that overlap with the bbox, clip them individually, then merge them

We don't have /crop endpoint because for MosaicJSON it could result in opening a LOT of files and thus the requests might take too much time.

We added a /statistics endpoint in titiler-pgstac because by using pgstac we can reduce the number of files needed to be open (/statistics use a custom Backend().feature method which is close to a part() method you would need)

https://github.com/stac-utils/titiler-pgstac/blob/master/titiler/pgstac/mosaic.py#L321-L384
https://github.com/s…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@vincentsarago
Comment options

@dvd3v
Comment options

@vincentsarago
Comment options

@dvd3v
Comment options

@vincentsarago
Comment options

Answer selected by dchirst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants