Skip to content

stac

stac_fastapi.types.stac

STAC types.

Catalog

Bases: TypedDict

STAC Catalog.

Source code in stac_fastapi/types/stac.py
11
12
13
14
15
16
17
18
19
20
class Catalog(TypedDict):
    """STAC Catalog."""

    type: str
    stac_version: str
    stac_extensions: NotRequired[List[str]]
    id: str
    title: NotRequired[str]
    description: str
    links: List[Dict[str, Any]]

Collection

Bases: Catalog

STAC Collection.

Source code in stac_fastapi/types/stac.py
35
36
37
38
39
40
41
42
43
class Collection(Catalog):
    """STAC Collection."""

    keywords: List[str]
    license: str
    providers: List[Dict[str, Any]]
    extent: Dict[str, Any]
    summaries: Dict[str, Any]
    assets: Dict[str, Any]

Collections

Bases: TypedDict

All collections endpoint. github.com/radiantearth/stac-api-spec/tree/master/collections

Source code in stac_fastapi/types/stac.py
71
72
73
74
75
76
77
78
79
class Collections(TypedDict):
    """All collections endpoint.
    https://github.com/radiantearth/stac-api-spec/tree/master/collections
    """

    collections: List[Collection]
    links: List[Dict[str, Any]]
    numberMatched: NotRequired[int]
    numberReturned: NotRequired[int]

Conformance

Bases: TypedDict

STAC Conformance Classes.

Source code in stac_fastapi/types/stac.py
29
30
31
32
class Conformance(TypedDict):
    """STAC Conformance Classes."""

    conformsTo: List[str]

Item

Bases: TypedDict

STAC Item.

Source code in stac_fastapi/types/stac.py
46
47
48
49
50
51
52
53
54
55
56
57
58
class Item(TypedDict):
    """STAC Item."""

    type: Literal["Feature"]
    stac_version: str
    stac_extensions: NotRequired[List[str]]
    id: str
    geometry: Dict[str, Any]
    bbox: BBox
    properties: Dict[str, Any]
    links: List[Dict[str, Any]]
    assets: Dict[str, Any]
    collection: str

ItemCollection

Bases: TypedDict

STAC Item Collection.

Source code in stac_fastapi/types/stac.py
61
62
63
64
65
66
67
68
class ItemCollection(TypedDict):
    """STAC Item Collection."""

    type: Literal["FeatureCollection"]
    features: List[Item]
    links: List[Dict[str, Any]]
    numberMatched: NotRequired[int]
    numberReturned: NotRequired[int]

LandingPage

Bases: Catalog

STAC Landing Page.

Source code in stac_fastapi/types/stac.py
23
24
25
26
class LandingPage(Catalog):
    """STAC Landing Page."""

    conformsTo: List[str]