Skip to content

backend

titiler.pgstac.backend

TiTiler.PgSTAC custom Mosaic Backend and Custom STACReader.

PGSTACBackend

Bases: BaseBackend

PgSTAC Mosaic Backend.

bounds property

bounds: BBox

Return mosaic BBox.

maxzoom property

maxzoom: int

Return maxzoom.

minzoom property

minzoom: int

Return minzoom.

asset_name

asset_name(asset: dict) -> str

Get asset name.

assets_for_bbox

assets_for_bbox(xmin: float, ymin: float, xmax: float, ymax: float, coord_crs: CRS = WGS84_CRS, **kwargs: Any) -> list[dict]

Retrieve assets for bbox.

assets_for_point

assets_for_point(lng: float, lat: float, coord_crs: CRS = WGS84_CRS, **kwargs: Any) -> list[dict]

Retrieve assets for point.

assets_for_tile

assets_for_tile(x: int, y: int, z: int, **kwargs: Any) -> list[dict]

Retrieve assets for tile.

get_assets

get_assets(geom: Geometry, fields: dict[str, Any] | None = None, scan_limit: int | None = None, items_limit: int | None = None, time_limit: int | None = None, exitwhenfull: bool | None = None, skipcovered: bool | None = None) -> list[dict]

Find assets.

info

info() -> Search

Custom pgSTAC Mosaic info.

_first_value

_first_value(values: list[Any], default: Any = None)

Return the first not None value.