factory
titiler.pgstac.factory ¶
Custom MosaicTiler Factory for PgSTAC Mosaic Backend.
MosaicTilerFactory ¶
_first_value ¶
Return the first not None value.
add_search_list_route ¶
Add PgSTAC Search (of type mosaic) listing route.
add_search_register_route ¶
add_search_register_route(app: FastAPI, *, prefix: str = '', search_dependency: Callable[..., Tuple[PgSTACSearch, Metadata]] = SearchParams, tile_dependencies: Optional[List[Callable]] = None, tags: Optional[List[str]] = None)
add /register route
check_query_params ¶
Check QueryParams for Query dependency.
get_dependantis used to get the query-parameters required by thecallable- we use
request_params_to_argsto construct arguments needed to call thecallable - we call the
callableand catch any errors
Important: We assume the callable in not a co-routine