Skip to content

Cropped Tiles #376

Answered by vincentsarago
DanSchoppe asked this question in Q&A
Sep 29, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

👋 @DanSchoppe
As you said this is not really part of standard Tile Service.

While I'm not really sure we want to support this directly in TiTiler, I think it will be pretty basic to do it on your own.

here is how you could do it:

Let's first assume you have the geometry up front stored in a db or a local file (you could add an endpoint for a user to add its own geometry 🤷‍♂️)

"""routes.

app/routes.py
"""
from dataclasses import dataclass
from typing import Callable, Dict, Type
from urllib.parse import urlencode

from fastapi import Depends, Path
from starlette.requests import Request
from starlette.responses import Response

from morecantile import TileMatrixSet
from rio_tiler.io import B…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@DanSchoppe
Comment options

@edeo2021
Comment options

Answer selected by vincentsarago
Comment options

You must be logged in to vote
1 reply
@vincentsarago
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants