Skip to content

factory

titiler.pgstac.factory

Custom MosaicTiler Factory for PgSTAC Mosaic Backend.

MosaicTilerFactory

Bases: MosaicTilerFactory

Custom MosaicTiler for PgSTAC Mosaic Backend.

part

part()

Register /bbox and /feature endpoint.

register_routes

register_routes() -> None

This Method register routes to the router.

statistics

statistics()

Register /statistics endpoint.

tilejson

tilejson() -> None

register tiles routes.

wmts

wmts()

Add wmts endpoint.

_first_value

_first_value(values: List[Any], default: Any = None)

Return the first not None value.

add_search_list_route

add_search_list_route(app: FastAPI, *, prefix: str = '', tags: Optional[List[str]] = None)

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