This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from fastapi.responses import ORJSONResponse | |
from stac_fastapi.api.app import StacApi | |
from stac_fastapi.api.models import ( | |
EmptyRequest, | |
ItemCollectionUri, | |
create_get_request_model, | |
create_post_request_model, | |
create_request_model, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
You'll need to download https://github.com/RemotePixel/poster-py/tree/master/poster/assets first | |
""" | |
import os | |
from math import ceil | |
from typing import Callable, Literal, Optional | |
from dataclasses import dataclass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /collections/{collection_id}/time/{date}/tiles/{tileMatrixSetId}/{x}/{y}/{z}.png | |
def DatasetPathParams( | |
collection_id: Annotated[str, Path(description="collection_id")], | |
time_dimension: Annotated[str, Path(description="date", alias="date")], | |
) -> str: | |
""""Here you can use collection_id and time_dimension to get the COG url.""" | |
... | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import click | |
from rasterio.rio import options | |
from rio_tiler.io import Reader | |
import morecantile | |
@click.command() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder