Skip to content

Conversation

@vincentsarago
Copy link
Member

ref: developmentseed/titiler#1279

Huge refactor, will need proper documentation



@attr.s
class CustomSTACReader(MultiBaseReader):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved and renamed to titiler.stacapi.reader.SimpleSTACReader

"""Post Init."""
self.input = self.url
if bbox := self.input.get("bbox"):
self.bounds = tuple(bbox)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having search in the backend construction enable bounds definition for the mosaic

retry_config = RetrySettings()


def accept_media_type(accept: str, mediatypes: List[MediaType]) -> Optional[MediaType]:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now in titiler.core

datetime=datetime,
filter_expr=filter_expr,
filter_lang=filter_lang,
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a lot of code duplication between SearchParams and CollectionSearch because we don't support sub-dependencies in get_dependant_params` 😬

"media_type": tile_format.mediatype,
},
media_type="application/xml",
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 in titiler-mosaic now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants