aggregation
stac_fastapi.extensions.core.aggregation.aggregation ¶
Aggregation Extension.
AggregationConformanceClasses ¶
Conformance classes for the Aggregation extension.
See stac-api-extensions/aggregation
Source code in stac_fastapi/extensions/core/aggregation/aggregation.py
16 17 18 19 20 21 22 23 |
|
AggregationExtension ¶
Bases: ApiExtension
Aggregation Extension.
The purpose of the Aggregation Extension is to provide an endpoint similar to the Search endpoint (/search), but which will provide aggregated information on matching Items rather than the Items themselves. This is highly influenced by the Elasticsearch and OpenSearch aggregation endpoint, but with a more regular structure for responses.
The Aggregation extension adds several endpoints which allow the retrieval of available aggregation fields and aggregation buckets based on a seearch query: GET /aggregations POST /aggregations GET /collections/{collection_id}/aggregations POST /collections/{collection_id}/aggregations GET /aggregate POST /aggregate GET /collections/{collection_id}/aggregate POST /collections/{collection_id}/aggregate
github.com/stac-api-extensions/aggregation/blob/main/README.md
Attributes:
Source code in stac_fastapi/extensions/core/aggregation/aggregation.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
|
register ¶
register(app: FastAPI) -> None
Register the extension with a FastAPI application.
Parameters:
-
app
(FastAPI
) –target FastAPI application.
Returns:
-
None
–None
Source code in stac_fastapi/extensions/core/aggregation/aggregation.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
|