Skip to content

factory

titiler.mosaic.factory

TiTiler.mosaic Router factories.

MosaicTilerFactory dataclass

Bases: BaseTilerFactory

MosaicTiler Factory.

The main difference with titiler.endpoint.factory.TilerFactory is that this factory needs the reader to be of cogeo_mosaic.backends.BaseBackend type (e.g MosaicBackend) and a dataset_reader (BaseReader).

assets

assets()

Register /assets endpoint.

bounds

bounds()

Register /bounds endpoint.

info

info()

Register /info endpoint

map_viewer

map_viewer()

Register /map endpoint.

point

point()

Register /point endpoint.

read

read()

Register / (Get) Read endpoint.

register_routes

register_routes()

This Method register routes to the router.

Because we wrap the endpoints in a class we cannot define the routes as methods (because of the self argument). The HACK is to define routes inside the class method and register them after the class initialization.

tile

tile()

Register /tiles endpoints.

tilejson

tilejson()

Add tilejson endpoint.

validate

validate()

Register /validate endpoint.

wmts

wmts()

Add wmts endpoint.

PixelSelectionParams

PixelSelectionParams(
    pixel_selection: Annotated[
        Literal[tuple([name for e in PixelSelectionMethod])],
        Query(description="Pixel selection method."),
    ] = "first"
) -> MosaicMethodBase

Returns the mosaic method used to combine datasets together.