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).
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.