Skip to content

types

stac_fastapi.extensions.core.aggregation.types

Aggregation Extension types.

Aggregation

Bases: TypedDict

A STAC aggregation.

Source code in stac_fastapi/extensions/core/aggregation/types.py
22
23
24
25
26
27
28
29
class Aggregation(TypedDict):
    """A STAC aggregation."""

    name: str
    data_type: str
    buckets: NotRequired[List[Bucket]]
    overflow: NotRequired[int]
    value: NotRequired[Union[str, int, DateTimeType]]

AggregationCollection

Bases: TypedDict

STAC Item Aggregation Collection.

Source code in stac_fastapi/extensions/core/aggregation/types.py
32
33
34
35
36
37
class AggregationCollection(TypedDict):
    """STAC Item Aggregation Collection."""

    type: Literal["AggregationCollection"]
    aggregations: List[Aggregation]
    links: List[Dict[str, Any]]