Skip to content

How to use custom TMS/projection with 'Mosaic from COG urls' example #591

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

You must be logged in to vote

👋 Hi @Shane98c

😬 This turns out to be pretty complex. The Mosaic Factory use BaseBackend as a reference class. Because in BaseBackend the TMS is set with init=False (meaning that user shouldn't pass the tms as input parameter) the MosaicTilerFactory's tiles endpoint do not use TMS as a reader input

with self.reader(
src_path,
reader=self.dataset_reader,
reader_options={**reader_params},
**backend_params,
) as src_dst:

This is one of the reason we had to re-write most of the factory for titiler-pgstac https://github.com/stac-utils/titiler-pgstac/blob/master/titiler/pg…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Shane98c
Comment options

@vincentsarago
Comment options

@vincentsarago
Comment options

@Shane98c
Comment options

Answer selected by Shane98c
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