Skip to content

TilerFactory::tile breakup? #141

Closed
@fredliporace

Description

Salut!

I'm working on a custom tiler based on titiler that use tensorflow inference to generate a classification based on a STAC item's assets. Will include a reference to the repo as soon as it is stable.

The custom tiler uses TilerFactory and needs to re-implement the /tiles/* endpoints to return the classification result instead of assets' raster data. So I'm defining a new tile() function for my custom tiler.

Problem is since I also need the /tilejson endpoint and these are registered within tile() I also need to define the /tilejson/* routes in my tile() function, even though the implementation at the base class could be used as they are defined right now. I'm currently simply copying the tile()::tilejson() to my custom tiler.

One way I see to deal with this is to break the tile() function in TileFactory in two. Does that make sense? If yes I can work on a PR.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions