Skip to content

Setting Default TMS ID #1075

Discussion options

You must be logged in to vote

Hi @judsoncrouch-eog

Sorry for the disagreement, we needed to remove the default TMS Id to match the OGC specification 🙁

You could create custom endpoint that redirect to the correct URL, but you'll need to write your own application. This could also be in a Middleware maybe.

from attrs import define

from typing import Annotated
from fastapi import Path
from fastapi.responses import RedirectResponse
from pydantic import Field
from titiler.core.factory import img_endpoint_params, TilerFactory
from titiler.core.resources.enums import ImageType


@define(kw_only=True)
class CustomFactory(TilerFactory):

    def register_routes(self):
        super().register_routes()

        @self.router.get(

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@judsoncrouch-eog
Comment options

Answer selected by judsoncrouch-eog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants